Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::TextureFormatInfo Struct Reference

Basic texture format description. More...

#include <GraphicsTypes.h>

Inheritance diagram for Diligent::TextureFormatInfo:
Diligent::TextureFormatAttribs Diligent::TextureFormatInfoExt

Public Attributes

Bool Supported = false
 Indicates if the format is supported by the device.
 
- Public Attributes inherited from Diligent::TextureFormatAttribs
const Char * Name = "TEX_FORMAT_UNKNOWN"
 
TEXTURE_FORMAT Format = TEX_FORMAT_UNKNOWN
 Texture format, see Diligent::TEXTURE_FORMAT for a list of supported texture formats.
 
Uint8 ComponentSize = 0
 
Uint8 NumComponents = 0
 Number of components.
 
COMPONENT_TYPE ComponentType = COMPONENT_TYPE_UNDEFINED
 Component type, see Diligent::COMPONENT_TYPE for details.
 
Bool IsTypeless = false
 Bool flag indicating if the format is a typeless format.
 
Uint8 BlockWidth = 0
 For block-compressed formats, compression block width.
 
Uint8 BlockHeight = 0
 For block-compressed formats, compression block height.
 

Additional Inherited Members

- Public Member Functions inherited from Diligent::TextureFormatAttribs
Uint32 GetElementSize () const
 
constexpr TextureFormatAttribs (const Char *_Name, TEXTURE_FORMAT _Format, Uint8 _ComponentSize, Uint8 _NumComponents, COMPONENT_TYPE _ComponentType, bool _IsTypeless, Uint8 _BlockWidth, Uint8 _BlockHeight) noexcept
 Initializes the structure.
 

Detailed Description

Basic texture format description.

This structure is returned by IRenderDevice::GetTextureFormatInfo()