table of contents
other versions
- testing 3.2.10+ds-1
- unstable 3.2.10+ds-1
- experimental 3.3~git20250806+ds-1
SDL_CalculateGPUTextureFormatSize(3) | SDL3 FUNCTIONS | SDL_CalculateGPUTextureFormatSize(3) |
NAME¶
SDL_CalculateGPUTextureFormatSize - Calculate the size in bytes of a texture format with dimensions.
HEADER FILE¶
Defined in SDL3/SDL_gpu.h
SYNOPSIS¶
#include "SDL3/SDL.h"
Uint32 SDL_CalculateGPUTextureFormatSize( SDL_GPUTextureFormat format, Uint32 width, Uint32 height, Uint32 depth_or_layer_count);
FUNCTION PARAMETERS¶
- format
- a texture format.
- width
- width in pixels.
- height
- height in pixels.
- depth_or_layer_count
- depth for 3D textures or layer count otherwise.
RETURN VALUE¶
( Uint32 ) Returns the size of a texture with this format and dimensions.
AVAILABILITY¶
This function is available since SDL 3.2.0.
SDL 3.2.10 | Simple Directmedia Layer |