sdlGetGpuShaderFormats function

int sdlGetGpuShaderFormats(
  1. Pointer<SdlGpuDevice> device
)

Returns the supported shader formats for this GPU context.

\param device a GPU context to query. \returns a bitflag indicating which shader formats the driver is able to consume.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC SDL_GPUShaderFormat SDLCALL SDL_GetGPUShaderFormats(SDL_GPUDevice *device)

Implementation

int sdlGetGpuShaderFormats(Pointer<SdlGpuDevice> device) {
  final sdlGetGpuShaderFormatsLookupFunction = libSdl3.lookupFunction<
      Uint32 Function(Pointer<SdlGpuDevice> device),
      int Function(Pointer<SdlGpuDevice> device)>('SDL_GetGPUShaderFormats');
  return sdlGetGpuShaderFormatsLookupFunction(device);
}