Function SDL_GetGPUShaderFormats

pub unsafe extern "C" fn SDL_GetGPUShaderFormats(
    device: *mut SDL_GPUDevice,
) -> u32 
Available on crate feature dep_sdl3 only.
Expand description

Returns the supported shader formats for this GPU context.

§Parameters

  • device: a GPU context to query.

§Return value

Returns a bitflag indicating which shader formats the driver is able to consume.

§Availability

This function is available since SDL 3.2.0.