ezEngine  Release 25.03
ezTexture2DResourceDescriptor Struct Reference

Use this descriptor in calls to ezResourceManager::CreateResource<ezTexture2DResource> to create textures from data in memory. More...

#include <Texture2DResource.h>

Public Attributes

ezGALTextureCreationDescription m_DescGAL
 Describes the texture format, etc.
 
ezGALSamplerStateCreationDescription m_SamplerDesc
 
ezUInt8 m_uiQualityLevelsDiscardable = 0
 How many quality levels can be discarded and reloaded. For created textures this can currently only be 0 or 1.
 
ezUInt8 m_uiQualityLevelsLoadable = 0
 How many additional quality levels can be loaded (typically from file).
 
ezArrayPtr< ezGALSystemMemoryDescriptionm_InitialContent
 

Detailed Description

Use this descriptor in calls to ezResourceManager::CreateResource<ezTexture2DResource> to create textures from data in memory.

Member Data Documentation

◆ m_InitialContent

ezArrayPtr<ezGALSystemMemoryDescription> ezTexture2DResourceDescriptor::m_InitialContent

One memory desc per (array * faces * mipmap) (in that order) (array is outer loop, mipmap is inner loop). Can be empty to not initialize data.


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