Diligent::TextureFormatInfoExt struct

Extended texture format information.

Contents

This structure is returned by IRenderDevice::GetTextureFormatInfoExt()

Base classes

struct TextureFormatInfo
Basic texture format description.

Public variables

BIND_FLAGS BindFlags
Allowed bind flags for this format.
RESOURCE_DIMENSION_SUPPORT Dimensions
A bitmask specifying all the supported resource dimensions for this texture format, see Diligent::RESOURCE_DIMENSION_SUPPORT.
Uint32 SampleCounts
A bitmask specifying all the supported sample counts for this texture format. If the format supports n samples, then (SampleCounts & n) != 0.
Bool Filterable
Indicates if the format can be filtered in the shader.

Variable documentation

RESOURCE_DIMENSION_SUPPORT Diligent::TextureFormatInfoExt::Dimensions

A bitmask specifying all the supported resource dimensions for this texture format, see Diligent::RESOURCE_DIMENSION_SUPPORT.

For every supported resource dimension in RESOURCE_DIMENSION enum, the corresponding bit in the mask will be set to 1. For example, support for Texture2D resource dimension can be checked as follows:

(Dimensions & RESOURCE_DIMENSION_SUPPORT_TEX_2D) != 0