| SDL_CalculateGPUTextureFormatSize(3) | SDL3 FUNCTIONS | SDL_CalculateGPUTextureFormatSize(3) |
SDL_CalculateGPUTextureFormatSize - Calculate the size in bytes of a texture format with dimensions.
Defined in SDL3/SDL_gpu.h
#include "SDL3/SDL.h"
Uint32 SDL_CalculateGPUTextureFormatSize(
SDL_GPUTextureFormat format,
Uint32 width,
Uint32 height,
Uint32 depth_or_layer_count);
( Uint32 ) Returns the size of a texture with this format and dimensions.
This function is available since SDL 3.2.0.
| SDL 3.2.10 | Simple Directmedia Layer |