SDL_GPUTextureSupportsSampleCount - Man Page

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

Header File

Defined in SDL3/SDL_gpu.h

Synopsis

#include "SDL3/SDL.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 a hardware-specific version of min(preferred, possible).

Availability

This function is available since SDL 3.2.0.

Referenced By

SDL_GPUSampleCount.3type(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS