Extended texture format information. More...
#include <GraphicsTypes.h>
Public Attributes | |
| BIND_FLAGS | BindFlags = BIND_NONE |
| Allowed bind flags for this format. | |
| RESOURCE_DIMENSION_SUPPORT | Dimensions = RESOURCE_DIMENSION_SUPPORT_NONE |
| SAMPLE_COUNT | SampleCounts = SAMPLE_COUNT_NONE |
| A bitmask specifying all the supported sample counts for this texture format. | |
| Bool | Filterable = False |
| Indicates if the format can be filtered in the shader. | |
Public Attributes inherited from Diligent::TextureFormatInfo | |
| 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. | |
Extended texture format information.
This structure is returned by IRenderDevice::GetTextureFormatInfoExt()
| RESOURCE_DIMENSION_SUPPORT Diligent::TextureFormatInfoExt::Dimensions = RESOURCE_DIMENSION_SUPPORT_NONE |
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
| SAMPLE_COUNT Diligent::TextureFormatInfoExt::SampleCounts = SAMPLE_COUNT_NONE |
A bitmask specifying all the supported sample counts for this texture format.
If the format supports n samples, then (SampleCounts & n) != 0