sdlDestroyGpuRenderState function render

void sdlDestroyGpuRenderState(
  1. Pointer<SdlGpuRenderState> state
)

Destroy custom GPU render state.

\param state the state to destroy.

\threadsafety This function should be called on the thread that created the renderer.

\since This function is available since SDL 3.4.0.

\sa SDL_CreateGPURenderState

extern SDL_DECLSPEC void SDLCALL SDL_DestroyGPURenderState(SDL_GPURenderState *state)

Implementation

void sdlDestroyGpuRenderState(Pointer<SdlGpuRenderState> state) {
  final sdlDestroyGpuRenderStateLookupFunction = _libSdl
      .lookupFunction<
        Void Function(Pointer<SdlGpuRenderState> state),
        void Function(Pointer<SdlGpuRenderState> state)
      >('SDL_DestroyGPURenderState');
  return sdlDestroyGpuRenderStateLookupFunction(state);
}