SDL_CalculateGPUTextureFormatSize - Calculate the size in bytes of a texture format with dimensions.
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.20 SDL_CalculateGPUTextureFormatSize(3)
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.
Name
SDL_CalculateGPUTextureFormatSize - Calculate the size in bytes of a texture format with dimensions.
Return Value
Returns the size of a texture with this format and dimensions.
Synopsis
#include<SDL3/SDL_gpu.h>Uint32SDL_CalculateGPUTextureFormatSize(SDL_GPUTextureFormatformat,Uint32width,Uint32height,Uint32depth_or_layer_count);
