Function SDL_GetGPUDeviceDriver

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

Returns the name of the backend used to create this GPU context.

§Parameters

  • device: a GPU context to query.

§Return value

Returns the name of the device’s driver, or NULL on error.

§Availability

This function is available since SDL 3.2.0.