Function SDL_CreateGPUDeviceWithProperties

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

Creates a GPU context.

These are the supported properties:

These are the current shader format properties:

With the D3D12 renderer:

§Parameters

  • props: the properties to use.

§Return value

Returns a GPU context on success or NULL on failure; call [SDL_GetError()] for more information.

§Availability

This function is available since SDL 3.2.0.

§See also