DynamicTextureAtlasCreateInfo struct
Dynamic texture atlas create information.
Contents
- Reference
Public variables
- TextureDesc Desc
- Texture description.
- Uint32 TextureGranularity
- Texture region allocation granularity.
- Uint32 ExtraSliceCount
- The number of extra slices.
- Uint32 MaxSliceCount
- Maximum number of slices in texture array.
- Uint32 SuballocationObjAllocationGranularity
- Allocation granularity for ITextureAtlasSuballocation objects.
Variable documentation
TextureDesc Diligent:: DynamicTextureAtlasCreateInfo:: Desc
Texture description.
Texture type must be 2D or 2D array. When the type is texture 2D, resizes will be disabled.
Uint32 Diligent:: DynamicTextureAtlasCreateInfo:: TextureGranularity
Texture region allocation granularity.
The width and height of the texture region will be aligned to the TextureGranularity value. Texture granularity must be power of two.
Uint32 Diligent:: DynamicTextureAtlasCreateInfo:: ExtraSliceCount
The number of extra slices.
When non-zero, the array will be expanded by the specified number of slices every time there is insufficient space. If zero, the array size will be doubled when more space is needed.
Uint32 Diligent:: DynamicTextureAtlasCreateInfo:: SuballocationObjAllocationGranularity
Allocation granularity for ITextureAtlasSuballocation objects.
Texture atlas uses FixedBlockMemoryAllocator to allocate instances of ITextureAtlasSuballocation implementation class. This memeber defines the number of objects in one page.