mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-03 19:45:32 +00:00
Added SDL_RenderGetMetal* functions
This commit is contained in:
parent
162bbe0ba4
commit
f4c767259f
14
src/SDL2.cs
14
src/SDL2.cs
|
@ -2450,6 +2450,20 @@ namespace SDL2
|
||||||
/* IntPtr refers to an SDL_Texture*, renderer to an SDL_Renderer* */
|
/* IntPtr refers to an SDL_Texture*, renderer to an SDL_Renderer* */
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr SDL_GetRenderTarget(IntPtr renderer);
|
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* */
|
/* renderer refers to an SDL_Renderer* */
|
||||||
/* Only available in 2.0.4 */
|
/* Only available in 2.0.4 */
|
||||||
|
|
Loading…
Reference in a new issue