SDL_CalculateGPUTextureFormatSize

Calculate the size in bytes of a texture format with dimensions.

extern (C) nothrow @nogc extern
SDL_CalculateGPUTextureFormatSize

Parameters

format SDL_GPUTextureFormat

a texture format.

width Uint32

width in pixels.

height Uint32

height in pixels.

depth_or_layer_count Uint32

depth for 3D textures or layer count otherwise.

Return Value

Type: Uint32

the size of a texture with this format and dimensions.

Meta