ezEngine Release 26.9
Loading...
Searching...
No Matches
ezGALTextureCreationDescription Struct Reference
Inheritance diagram for ezGALTextureCreationDescription:

Public Member Functions

void SetAsRenderTarget (ezUInt32 uiWidth, ezUInt32 uiHeight, ezGALResourceFormat::Enum format, ezGALMSAASampleCount::Enum sampleCount=ezGALMSAASampleCount::None)
 
void SetAsRenderTarget (ezUInt32 uiWidth, ezUInt32 uiHeight, ezUInt32 uiArraySize, ezGALResourceFormat::Enum format, ezGALMSAASampleCount::Enum sampleCount=ezGALMSAASampleCount::None)
 
ezResult Validate (ezGALDevice *pDevice, ezArrayPtr< ezGALSystemMemoryDescription > initialData={}) const
 
ezUInt32 GetNumberOfSlices () const
 
ezVec3U32 GetMipMapSize (ezUInt32 uiMipLevel) const
 
ezBitflags< ezGALResourceStateGetDefaultState () const
 Returns the most appropriate default resource state based on the texture's allowed views and format.
 
- Public Member Functions inherited from ezHashableStruct< ezGALTextureCreationDescription >
 ezHashableStruct (const ezHashableStruct< ezGALTextureCreationDescription > &other)
 
void operator= (const ezHashableStruct< ezGALTextureCreationDescription > &other)
 
bool operator== (const ezHashableStruct< ezGALTextureCreationDescription > &other) const
 
bool operator!= (const ezHashableStruct< ezGALTextureCreationDescription > &other) const
 
bool operator< (const ezHashableStruct< ezGALTextureCreationDescription > &other) const
 
ezUInt32 CalculateHash () const
 Calculates the 32 bit hash of the struct and returns it.
 

Public Attributes

ezUInt32 m_uiWidth = 0
 
ezUInt32 m_uiHeight = 0
 
ezUInt32 m_uiDepth = 1
 
ezUInt32 m_uiArraySize = 1
 In case of cube maps, the number of cubes instead of faces.
 
ezUInt8 m_uiMipLevelCount = 1
 
ezEnum< ezGALResourceFormatm_Format = ezGALResourceFormat::Invalid
 
ezEnum< ezGALMSAASampleCountm_SampleCount = ezGALMSAASampleCount::None
 
ezEnum< ezGALTextureTypem_Type = ezGALTextureType::Texture2D
 
ezBitflags< ezGALTextureUsageFlagsm_TextureFlags = ezGALTextureUsageFlags::ShaderResource
 
ezGALResourceAccess m_ResourceAccess
 
void * m_pExisitingNativeObject = nullptr
 Can be used to encapsulate existing native textures in objects usable by the GAL.
 

Member Function Documentation

◆ Validate()

ezResult ezGALTextureCreationDescription::Validate ( ezGALDevice pDevice,
ezArrayPtr< ezGALSystemMemoryDescription initialData = {} 
) const
Todo:
Platform independent validation (desc width & height < platform maximum, format, etc.)

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