![]() |
LLGL 0.05 Beta
|
Texture descriptor structure. More...
#include <TextureFlags.h>
Public Attributes | |
| const char * | debugName = nullptr |
| Optional name for debugging purposes. By default null. | |
| TextureType | type = TextureType::Texture2D |
| Hardware texture type. By default TextureType::Texture2D. | |
| long | bindFlags = (BindFlags::Sampled | BindFlags::ColorAttachment) |
| These flags describe to which resource slots and render target attachments the texture can be bound. By default BindFlags::Sampled and BindFlags::ColorAttachment. | |
| long | cpuAccessFlags = (CPUAccessFlags::Read | CPUAccessFlags::Write) |
| CPU read/write access flags. By default CPUAccessFlags::ReadWrite. | |
| long | miscFlags = (MiscFlags::FixedSamples | MiscFlags::GenerateMips) |
| Miscellaneous texture flags. By default MiscFlags::FixedSamples and MiscFlags::GenerateMips. | |
| Format | format = Format::RGBA8UNorm |
| Hardware texture format. By default Format::RGBA8UNorm. | |
| Extent3D | extent = { 1, 1, 1 } |
| Size of the texture (excluding the number of array layers). By default (1, 1, 1). | |
| std::uint32_t | arrayLayers = 1 |
| Number of array layers. By default 1. | |
| std::uint32_t | mipLevels = 0 |
| Number of MIP-map levels. By default 0. | |
| std::uint32_t | samples = 1 |
| Number of samples per texel. By default 1. | |
| ClearValue | clearValue |
| Specifies a clear value to initialize the texture with, if no initial image data is provided. | |
Texture descriptor structure.
| std::uint32_t LLGL::TextureDescriptor::arrayLayers = 1 |
Number of array layers. By default 1.
X+ direction has index offset 0.X- direction has index offset 1.Y+ direction has index offset 2.Y- direction has index offset 3.Z+ direction has index offset 4.Z- direction has index offset 5. | long LLGL::TextureDescriptor::bindFlags = (BindFlags::Sampled | BindFlags::ColorAttachment) |
These flags describe to which resource slots and render target attachments the texture can be bound. By default BindFlags::Sampled and BindFlags::ColorAttachment.
| ClearValue LLGL::TextureDescriptor::clearValue |
Specifies a clear value to initialize the texture with, if no initial image data is provided.
imageDesc parameter of RenderSystem::CreateTexture is null and the MiscFlags::NoInitialData bit is not set in the miscFlags attribute. In either case, this value may be used by the renderer API as a hint which clear value the resource is optimized for (especially for Direct3D 12). | long LLGL::TextureDescriptor::cpuAccessFlags = (CPUAccessFlags::Read | CPUAccessFlags::Write) |
CPU read/write access flags. By default CPUAccessFlags::ReadWrite.
| const char* LLGL::TextureDescriptor::debugName = nullptr |
Optional name for debugging purposes. By default null.
| Extent3D LLGL::TextureDescriptor::extent = { 1, 1, 1 } |
Size of the texture (excluding the number of array layers). By default (1, 1, 1).
height component is only used for 2D, 3D, and Cube textures (i.e. TextureType::Texture2D, TextureType::Texture2DArray, TextureType::Texture3D, TextureType::TextureCube, TextureType::TextureCubeArray, TextureType::Texture2DMS, and TextureType::Texture2DMSArray). depth component is only used for 3D textures (i.e. TextureType::Texture3D). width and height components must be equal for cube textures (i.e. TextureType::TextureCube and TextureType::TextureCubeArray). | Format LLGL::TextureDescriptor::format = Format::RGBA8UNorm |
Hardware texture format. By default Format::RGBA8UNorm.
| std::uint32_t LLGL::TextureDescriptor::mipLevels = 0 |
Number of MIP-map levels. By default 0.
| long LLGL::TextureDescriptor::miscFlags = (MiscFlags::FixedSamples | MiscFlags::GenerateMips) |
Miscellaneous texture flags. By default MiscFlags::FixedSamples and MiscFlags::GenerateMips.
| std::uint32_t LLGL::TextureDescriptor::samples = 1 |
Number of samples per texel. By default 1.
| TextureType LLGL::TextureDescriptor::type = TextureType::Texture2D |
Hardware texture type. By default TextureType::Texture2D.