Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
VulkanTexture.hpp
1/*
2Copyright (C) 2017-2021,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGAMES_VULKANTEXTURE_HPP
17#define AEONGAMES_VULKANTEXTURE_HPP
18#include <cstdint>
19#include <string>
20#include <vector>
21#include <vulkan/vulkan.h>
22#include <memory>
23#include "aeongames/Texture.hpp"
24
25namespace AeonGames
26{
27 class Texture;
28 class VulkanRenderer;
31 {
32 public:
33 VulkanTexture ( const VulkanRenderer& aVulkanRenderer, const Texture& aTexture );
36 VulkanTexture ( VulkanTexture&& aVulkanTexture );
37 VulkanTexture ( const VulkanTexture& ) = delete;
38 VulkanTexture& operator= ( const VulkanTexture& ) = delete;
39 VulkanTexture& operator= ( VulkanTexture&& ) = delete;
41 const VkDescriptorImageInfo& GetDescriptorImageInfo() const;
42 private:
43 const VulkanRenderer& mVulkanRenderer;
44 const Texture* mTexture{nullptr};
45 VkImage mVkImage{VK_NULL_HANDLE};
46 VkDeviceMemory mVkDeviceMemory{VK_NULL_HANDLE};
47 VkDescriptorImageInfo mVkDescriptorImageInfo{};
48 };
49}
50#endif
Represents a 2D texture image resource.
Definition Texture.hpp:33
Vulkan rendering backend implementing the Renderer interface.
VulkanTexture(const VulkanRenderer &aVulkanRenderer, const Texture &aTexture)
const VkDescriptorImageInfo & GetDescriptorImageInfo() const
Get the Vulkan descriptor image info for binding.
<- This is here just for the literals
Definition AABB.hpp:31