mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-03 19:25:28 +00:00
Added SDL_RenderGetMetal* functions
This commit is contained in:
parent
162bbe0ba4
commit
f4c767259f
14
src/SDL2.cs
14
src/SDL2.cs
|
@ -2451,6 +2451,20 @@ namespace SDL2
|
|||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr SDL_GetRenderTarget(IntPtr renderer);
|
||||
|
||||
/* renderer refers to an SDL_Renderer* */
|
||||
/* Available in 2.0.8 or higher */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr SDL_RenderGetMetalLayer(
|
||||
IntPtr renderer
|
||||
);
|
||||
|
||||
/* renderer refers to an SDL_Renderer* */
|
||||
/* Available in 2.0.8 or higher */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr SDL_RenderGetMetalCommandEncoder(
|
||||
IntPtr renderer
|
||||
);
|
||||
|
||||
/* renderer refers to an SDL_Renderer* */
|
||||
/* Only available in 2.0.4 */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
|
|
Loading…
Reference in a new issue