SDL_GPUTextureFormatTexelBlockSize - Man Page

Obtains the texel block size for a texture format.

Header File

Defined in SDL3/SDL_gpu.h

Synopsis

#include "SDL3/SDL.h"

Uint32 SDL_GPUTextureFormatTexelBlockSize(
    SDL_GPUTextureFormat format);

Function Parameters

format

the texture format you want to know the texel size of.

Return Value

( Uint32 ) Returns the texel block size of the texture format.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_UploadToGPUTexture(3)

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS