TextureFormatAttribs struct
Describes invariant texture format attributes. These attributes are intrinsic to the texture format itself and do not depend on the format support.
Contents
Derived classes
- struct TextureFormatInfo
- Basic texture format description.
Constructors, destructors, conversion operators
-
TextureFormatAttribs(const Char* _Name,
TEXTURE_
FORMAT _Format, Uint8 _ComponentSize, Uint8 _NumComponents, COMPONENT_ TYPE _ComponentType, bool _IsTypeless, Uint8 _BlockWidth, Uint8 _BlockHeight) noexcept - Initializes the structure.
Public functions
- auto GetElementSize() const -> Uint32
- For non-compressed formats, returns the texel size. For block-compressed formats, returns the block size.
Public variables
- const Char* Name
- Literal texture format name (for instance, for TEX_FORMAT_RGBA8_UNORM format, this will be "TEX_FORMAT_RGBA8_UNORM")
-
TEXTURE_
FORMAT Format - Texture format, see Diligent::
TEXTURE_FORMAT for a list of supported texture formats. - Uint8 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)
- Uint8 NumComponents
- Number of components.
-
COMPONENT_
TYPE ComponentType - Component type, see Diligent::
COMPONENT_TYPE for details. - bool IsTypeless
- Bool flag indicating if the format is a typeless format.
- Uint8 BlockWidth
- For block-compressed formats, compression block width.
- Uint8 BlockHeight
- For block-compressed formats, compression block height.