ezEngine  Release 25.03
ezGALTextureVulkan Class Reference
Inheritance diagram for ezGALTextureVulkan:

Classes

struct  SubResourceOffset
 

Public Member Functions

EZ_ALWAYS_INLINE vk::Image GetImage () const
 
EZ_ALWAYS_INLINE vk::Format GetImageFormat () const
 
EZ_ALWAYS_INLINE vk::ImageLayout GetPreferredLayout () const
 
EZ_ALWAYS_INLINE vk::ImageLayout GetPreferredLayout (vk::ImageLayout targetLayout) const
 
EZ_ALWAYS_INLINE vk::PipelineStageFlags GetUsedByPipelineStage () const
 
EZ_ALWAYS_INLINE vk::AccessFlags GetAccessMask () const
 
EZ_ALWAYS_INLINE ezVulkanAllocation GetAllocation () const
 
const EZ_ALWAYS_INLINE ezVulkanAllocationInfoGetAllocationInfo () const
 
vk::Extent3D GetMipLevelSize (ezUInt32 uiMipLevel) const
 
vk::ImageSubresourceRange GetFullRange () const
 
vk::ImageAspectFlags GetAspectMask () const
 
- Public Member Functions inherited from ezGALResource< ezGALTextureCreationDescription >
EZ_ALWAYS_INLINE ezGALResource (const ezGALTextureCreationDescription &description)
 
const EZ_ALWAYS_INLINE ezGALTextureCreationDescriptionGetDescription () const
 
- Public Member Functions inherited from ezGALResourceBase
void SetDebugName (const char *szName) const
 
virtual const ezGALResourceBaseGetParentResource () const
 
- Public Member Functions inherited from ezRefCounted
virtual ~ezRefCounted ()=default
 Adds a virtual destructor.
 
- Public Member Functions inherited from ezRefCountingImpl
 ezRefCountingImpl ()=default
 Constructor.
 
 ezRefCountingImpl (const ezRefCountingImpl &rhs)
 
void operator= (const ezRefCountingImpl &rhs)
 
ezInt32 AddRef () const
 Increments the reference counter. Returns the new reference count.
 
ezInt32 ReleaseRef () const
 Decrements the reference counter. Returns the new reference count.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
ezInt32 GetRefCount () const
 Returns the current reference count.
 

Static Public Member Functions

static vk::Format ComputeImageFormat (const ezGALDeviceVulkan *pDevice, ezEnum< ezGALResourceFormat > galFormat, vk::ImageCreateInfo &ref_createInfo, vk::ImageFormatListCreateInfo &ref_imageFormats)
 
static void ComputeCreateInfo (const ezGALDeviceVulkan *pDevice, const ezGALTextureCreationDescription &description, vk::ImageCreateInfo &ref_createInfo, vk::PipelineStageFlags &ref_stages, vk::AccessFlags &ref_access, vk::ImageLayout &ref_preferredLayout)
 
static void ComputeAllocInfo (ezVulkanAllocationCreateInfo &ref_allocInfo)
 
static ezUInt32 ComputeSubResourceOffsets (const ezGALDeviceVulkan *pDevice, const ezGALTextureCreationDescription &description, ezDynamicArray< SubResourceOffset > &subResourceSizes)
 
static vk::Extent3D GetMipLevelSize (const ezGALTextureCreationDescription &description, ezUInt32 uiMipLevel)
 

Protected Member Functions

 ezGALTextureVulkan (const ezGALTextureCreationDescription &Description)
 
virtual ezResult InitPlatform (ezGALDevice *pDevice, ezArrayPtr< ezGALSystemMemoryDescription > pInitialData) override
 
virtual ezResult DeInitPlatform (ezGALDevice *pDevice) override
 
virtual void SetDebugNamePlatform (const char *szName) const override
 
- Protected Member Functions inherited from ezGALTexture
 ezGALTexture (const ezGALTextureCreationDescription &Description)
 

Protected Attributes

vk::Image m_image = {}
 
vk::Format m_imageFormat = vk::Format::eUndefined
 
vk::ImageLayout m_preferredLayout = vk::ImageLayout::eUndefined
 
vk::PipelineStageFlags m_stages = {}
 
vk::AccessFlags m_access = {}
 
ezVulkanAllocation m_alloc = nullptr
 
ezVulkanAllocationInfo m_allocInfo
 
ezGALDeviceVulkanm_pDevice = nullptr
 
- Protected Attributes inherited from ezGALTexture
ezGALTextureResourceViewHandle m_hDefaultResourceView
 
ezGALRenderTargetViewHandle m_hDefaultRenderTargetView
 
ezHashTable< ezUInt32, ezGALTextureResourceViewHandlem_ResourceViews
 
ezHashTable< ezUInt32, ezGALRenderTargetViewHandlem_RenderTargetViews
 
ezHashTable< ezUInt32, ezGALTextureUnorderedAccessViewHandlem_UnorderedAccessViews
 
- Protected Attributes inherited from ezGALResource< ezGALTextureCreationDescription >
const ezGALTextureCreationDescription m_Description
 

Friends

class ezGALDeviceVulkan
 
class ezMemoryUtils
 

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