SDL_CreateGPUDevice

Creates a GPU context.

extern (C) nothrow @nogc extern
SDL_CreateGPUDevice

Parameters

format_flags SDL_GPUShaderFormat

a bitflag indicating which shader formats the app is able to provide.

debug_mode bool

enable debug mode properties and validations.

name const(char)*

the preferred GPU driver, or NULL to let SDL pick the optimal driver.

Return Value

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

See Also

Meta