Struct TextureFormat

Describes the format and layout of a texture.

struct TextureFormat;

Fields

NameTypeDescription
cubeFaces uintBitwise combination of CubeFaceBit members.

Properties

NameTypeDescription
channelSize[get] uintReturns the size of a single channel in bytes.
dimension[get] TextureDimensionReturns the texture dimension.
isCompressed[get] boolReturns true if the format is compressed.
isCubemap[get] boolReturns true if the format is a cubemap.
numChannels[get] uintReturns the number of channels.
pixelSize[get] uintReturns the size of a pixel in bytes.