LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::SubresourceFootprint Struct Reference

Memory footprint structure for texture subresources. More...

#include <TextureFlags.h>

Public Attributes

std::uint64_t size = 0
 Total size (in bytes) of the texture subresource.
std::uint32_t rowAlignment = 0
 Alignment (in bytes) for each row. Minimum alignment a renderer must return for a texture is 1.
std::uint32_t rowSize = 0
 Size (in bytes) of each row in the texture subresource.
std::uint32_t rowStride = 0
 Stride (in bytes) of each row in the texture subresource. This is aligned to rowAlignment.
std::uint32_t layerSize = 0
 Size (in bytes) of each layer in the texture subresource. For 3D textures, this counts as a depth layer.
std::uint32_t layerStride = 0
 Stride (in bytes) for each layer. For 3D textures, this counts as depth layer.

Detailed Description

Memory footprint structure for texture subresources.

See also
Texture::GetSubresourceFootprint

Member Data Documentation

◆ layerSize

std::uint32_t LLGL::SubresourceFootprint::layerSize = 0

Size (in bytes) of each layer in the texture subresource. For 3D textures, this counts as a depth layer.

Remarks
Not to be confused with layer stride although this value might be equal to layerStride.

◆ layerStride

std::uint32_t LLGL::SubresourceFootprint::layerStride = 0

Stride (in bytes) for each layer. For 3D textures, this counts as depth layer.

◆ rowAlignment

std::uint32_t LLGL::SubresourceFootprint::rowAlignment = 0

Alignment (in bytes) for each row. Minimum alignment a renderer must return for a texture is 1.

◆ rowSize

std::uint32_t LLGL::SubresourceFootprint::rowSize = 0

Size (in bytes) of each row in the texture subresource.

Remarks
Not to be confused with row stride although this value might be equal to rowStride.

◆ rowStride

std::uint32_t LLGL::SubresourceFootprint::rowStride = 0

Stride (in bytes) of each row in the texture subresource. This is aligned to rowAlignment.

See also
rowAlignment

◆ size

std::uint64_t LLGL::SubresourceFootprint::size = 0

Total size (in bytes) of the texture subresource.


The documentation for this struct was generated from the following file: