SDL_GPUTextureSupportsSampleCount - Man Page

Determines if a sample count for a texture format is supported.

Synopsis

#include <SDL3/SDL_gpu.h>

bool SDL_GPUTextureSupportsSampleCount(
    SDL_GPUDevice *device,
    SDL_GPUTextureFormat format,
    SDL_GPUSampleCount sample_count);

Function Parameters

device

a GPU context.

format

the texture format to check.

sample_count

the sample count to check.

Return Value

Returns whether the sample count is supported for this texture format.

Availability

This function is available since SDL 3.2.0.

Referenced By

SDL_GPUSampleCount.3type(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS