sdlMetalDestroyView function metal

void sdlMetalDestroyView(
  1. SdlMetalView view
)

Destroy an existing SDL_MetalView object.

This should be called before SDL_DestroyWindow, if SDL_Metal_CreateView was called after SDL_CreateWindow.

\param view the SDL_MetalView object.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.2.0.

\sa SDL_Metal_CreateView

extern SDL_DECLSPEC void SDLCALL SDL_Metal_DestroyView(SDL_MetalView view)

Implementation

void sdlMetalDestroyView(SdlMetalView view) {
  final sdlMetalDestroyViewLookupFunction = _libSdl
      .lookupFunction<
        Void Function(SdlMetalView view),
        void Function(SdlMetalView view)
      >('SDL_Metal_DestroyView');
  return sdlMetalDestroyViewLookupFunction(view);
}