UmbraTexture struct

Texture map data.

A texture can be referenced by any number of UmbraTextureDescriptor.

Public variables

UmbraTextureFormat format
Texture format.
UmbraInt2 size
Texture dimensions.
const uint8_t* data
Texture data, size of texel is determined by the format.
uint64_t dataSize
Size of the data array, in bytes.

Variable details

const uint8_t* UmbraTexture::data

Texture data, size of texel is determined by the format.

Data needs to be tightly packed.