Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
AeonGames::VulkanTexture Class Reference

Vulkan texture resource wrapper with image and descriptor management. More...

#include <C:/Code/AeonEngine/engine/renderers/vulkan/VulkanTexture.hpp>

Collaboration diagram for AeonGames::VulkanTexture:
Collaboration graph

Public Member Functions

 VulkanTexture (const VulkanRenderer &aVulkanRenderer, const Texture &aTexture)
 VulkanTexture (VulkanTexture &&aVulkanTexture)
 Move constructor.
 VulkanTexture (const VulkanTexture &)=delete
VulkanTextureoperator= (const VulkanTexture &)=delete
VulkanTextureoperator= (VulkanTexture &&)=delete
const VkDescriptorImageInfo & GetDescriptorImageInfo () const
 Get the Vulkan descriptor image info for binding.

Detailed Description

Vulkan texture resource wrapper with image and descriptor management.

Definition at line 30 of file VulkanTexture.hpp.

Constructor & Destructor Documentation

◆ VulkanTexture() [1/2]

AeonGames::VulkanTexture::VulkanTexture ( const VulkanRenderer & aVulkanRenderer,
const Texture & aTexture )

Todo
Use format and type as well as GetPixelSize()
Note
This code and the one bellow for RGB is too redundant, I do not want to have to add more and more cases for each format, specially when Vulkan is so picky about what format it supports and which one it doesn't. So, perhaps support only RGBA and let the Image class handle any conversions? We'll have to see when it comes to handling compressed and "hardware accelerated" formats.

Definition at line 32 of file VulkanTexture.cpp.

◆ ~VulkanTexture()

AeonGames::VulkanTexture::~VulkanTexture ( )

Definition at line 314 of file VulkanTexture.cpp.

◆ VulkanTexture() [2/2]

AeonGames::VulkanTexture::VulkanTexture ( VulkanTexture && aVulkanTexture)

Move constructor.

Definition at line 306 of file VulkanTexture.cpp.

Member Function Documentation

◆ GetDescriptorImageInfo()

const VkDescriptorImageInfo & AeonGames::VulkanTexture::GetDescriptorImageInfo ( ) const

Get the Vulkan descriptor image info for binding.

Definition at line 334 of file VulkanTexture.cpp.


The documentation for this class was generated from the following files: