![]() |
LLGL 0.05 Beta
|
Format attribute flags enumeration. More...
#include <Format.h>
Public Types | |
| enum | { HasDepth = (1 << 0) , HasStencil = (1 << 1) , IsColorSpace_sRGB = (1 << 2) , IsCompressed = (1 << 3) , IsNormalized = (1 << 4) , IsInteger = (1 << 5) , IsUnsigned = (1 << 6) , IsPacked = (1 << 7) , SupportsRenderTarget = (1 << 8) , SupportsMips = (1 << 9) , SupportsGenerateMips = (1 << 10) , SupportsTexture1D = (1 << 11) , SupportsTexture2D = (1 << 12) , SupportsTexture3D = (1 << 13) , SupportsTextureCube = (1 << 14) , SupportsVertex = (1 << 15) , IsUnsignedInteger = (IsUnsigned | IsInteger) , HasDepthStencil = (HasDepth | HasStencil) } |
Format attribute flags enumeration.
| anonymous enum |
| Enumerator | |
|---|---|
| HasDepth | Specifies whether the format has a depth component (e.g. Format::D16UNorm or Format::D24UNormS8UInt). |
| HasStencil | Specifies whether the format has a stencil component (e.g. Format::D24UNormS8UInt). |
| IsColorSpace_sRGB | Specifies whether the format is in non-linear sRGB color space (e.g. Format::RGBA8UNorm_sRGB or Format::BC1UNorm_sRGB). |
| IsCompressed | Specifies whether the format is compressed (e.g. Format::BC1UNorm or Format::BC5SNorm). |
| IsNormalized | Specifies whether the format has normalized integer components (e.g. Format::R8UNorm or Format::R8SNorm). |
| IsInteger | Specifies whether the format is an integer format (e.g. Format::R8UNorm or Format::R8SInt). |
| IsUnsigned | Specifies whether the format is an unsigned format (e.g. Format::R8UInt or Format::RG11B10Float). |
| IsPacked | Specifies whether the format is packed (e.g. Format::RGB10A2UNorm or Format::RGB9E5Float). |
| SupportsRenderTarget | Specifies whether the format can be used for render targets or rather depth-stencil or color attachments. |
| SupportsMips | Specifies whether the format can have more than one MIP-map.
|
| SupportsGenerateMips | Specifies whether the format supports to automatically generate MIP-maps.
|
| SupportsTexture1D | Specifies whether the format can be used for 1D and 1D-array textures.
|
| SupportsTexture2D | Specifies whether the format can be used for 2D and 2D-array textures (both regular and multisampled). |
| SupportsTexture3D | Specifies whether the format can be used for 3D textures.
|
| SupportsTextureCube | Specifies whether the format can be used for cube and cube-array textures. |
| SupportsVertex | Specifies whether the format can be used for vertex attributes.
|
| IsUnsignedInteger | Combines the format flags |
| HasDepthStencil | Combines the format flags |