Diligent Engine API Reference
Public Member Functions | Public Attributes | List of all members
Diligent::TextureFormatAttribs Struct Reference

Describes invariant texture format attributes. These attributes are intrinsic to the texture format itself and do not depend on the format support. More...

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

Public Member Functions

 TextureFormatAttribs (TEXTURE_FORMAT _Format=TEX_FORMAT_UNKNOWN, const Char *_Name="TEX_FORMAT_UNKNOWN", Uint32 _ComponentSize=0, Uint32 _NumComponents=0, COMPONENT_TYPE _ComponentType=COMPONENT_TYPE_UNDEFINED)
 Initializes the structure.
 

Public Attributes

TEXTURE_FORMAT Format
 Texture format, see Diligent::TEXTURE_FORMAT for a list of supported texture formats.
 
const Char * Name
 Literal texture format name (for instance, for TEX_FORMAT_RGBA8_UNORM format, this will be "TEX_FORMAT_RGBA8_UNORM")
 
Uint32 ComponentSize
 Size of one component in bytes (for instance, for TEX_FORMAT_RGBA8_UNORM format, this will be 1) For compressed formats, this is the block size in bytes (for TEX_FORMAT_BC1_UNORM format, this will be 8)
 
Uint32 NumComponents
 Number of components.
 
COMPONENT_TYPE ComponentType
 Component type, see Diligent::COMPONENT_TYPE for details.
 

Detailed Description

Describes invariant texture format attributes. These attributes are intrinsic to the texture format itself and do not depend on the format support.