![]() |
LLGL 0.05 Beta
|
Texture view descriptor structure. More...
#include <TextureFlags.h>
Public Attributes | |
| TextureType | type = TextureType::Texture2D |
| Hardware texture type. By default TextureType::Texture2D. | |
| Format | format = Format::RGBA8UNorm |
| Hardware texture format. By default Format::RGBA8UNorm. | |
| TextureSubresource | subresource |
| Specifies the texture subresource, i.e. MIP-map level and array layer range. By default only the first MIP-map level and first array layer is addressed. | |
| TextureSwizzleRGBA | swizzle |
| Specifies the color component mapping. Each component is mapped to its identity by default. | |
Texture view descriptor structure.
| Format LLGL::TextureViewDescriptor::format = Format::RGBA8UNorm |
Hardware texture format. By default Format::RGBA8UNorm.
| Class | Compatible texture formats |
|---|---|
| RGBA 128 Bits | Format::RGBA32UInt, Format::RGBA32SInt, Format::RGBA32Float |
| RGBA 64 Bits | Format::RGBA16UNorm, Format::RGBA16SNorm, Format::RGBA16UInt, Format::RGBA16SInt, Format::RGBA16Float |
| RG 64 Bits | Format::RG32UInt, Format::RG32SInt, Format::RG32Float |
| RGBA 32 Bits | Format::RGBA8UNorm, Format::RGBA8SNorm, Format::RGBA8UInt, Format::RGBA8SInt |
| RG 32 Bits | Format::RG16UNorm, Format::RG16SNorm, Format::RG16UInt, Format::RG16SInt, Format::RG16Float |
| R 32 Bits | Format::R32UInt, Format::R32SInt, Format::R32Float |
| RG 16 Bits | Format::RG8UNorm, Format::RG8SNorm, Format::RG8UInt, Format::RG8SInt |
| R 16 Bits | Format::R16UNorm, Format::R16SNorm, Format::R16UInt, Format::R16SInt, Format::R16Float |
| R 8 Bits | Format::R8UNorm, Format::R8SNorm, Format::R8UInt, Format::R8SInt |
| TextureSubresource LLGL::TextureViewDescriptor::subresource |
Specifies the texture subresource, i.e. MIP-map level and array layer range. By default only the first MIP-map level and first array layer is addressed.
numMipLevels must be 1. | TextureSwizzleRGBA LLGL::TextureViewDescriptor::swizzle |
Specifies the color component mapping. Each component is mapped to its identity by default.
| TextureType LLGL::TextureViewDescriptor::type = TextureType::Texture2D |
Hardware texture type. By default TextureType::Texture2D.