sdlGetGpuRendererDevice function render
Return the GPU device used by a renderer.
\param renderer the rendering context. \returns the GPU device used by the renderer, or NULL if the renderer is not a GPU renderer; call SDL_GetError() for more information.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.4.0.
extern SDL_DECLSPEC SDL_GPUDevice * SDLCALL SDL_GetGPURendererDevice(SDL_Renderer *renderer)
Implementation
Pointer<SdlGpuDevice> sdlGetGpuRendererDevice(Pointer<SdlRenderer> renderer) {
final sdlGetGpuRendererDeviceLookupFunction = _libSdl
.lookupFunction<
Pointer<SdlGpuDevice> Function(Pointer<SdlRenderer> renderer),
Pointer<SdlGpuDevice> Function(Pointer<SdlRenderer> renderer)
>('SDL_GetGPURendererDevice');
return sdlGetGpuRendererDeviceLookupFunction(renderer);
}