Merge pull request #246 from Susko3/update-bindings

Update bindings with fix for startup crash on Android
This commit is contained in:
Dan Balasescu 2025-08-28 20:43:21 +09:00 committed by GitHub
commit ecd3c1d004
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 7 deletions

2
External/SDL vendored

@ -1 +1 @@
Subproject commit 1fbed16cb0512e08651b99f7b0a6c1db4b0b61c6
Subproject commit 5d9b170a3d5cf7a5d15c3385d07c0f4eb00ae548

2
External/SDL_mixer vendored

@ -1 +1 @@
Subproject commit 7bd8237b55e3c4d76f80968e17205f67a76320c1
Subproject commit beed06a8c9cd482699f37060431d6a9dcd2210d5

View File

@ -82,6 +82,10 @@ namespace SDL
[return: NativeTypeName("Uint32")]
public static extern uint SDL_GetAtomicU32(SDL_AtomicU32* a);
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
[return: NativeTypeName("Uint32")]
public static extern uint SDL_AddAtomicU32(SDL_AtomicU32* a, int v);
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
[return: NativeTypeName("bool")]
public static extern SDLBool SDL_CompareAndSwapAtomicPointer([NativeTypeName("void **")] IntPtr* a, [NativeTypeName("void*")] IntPtr oldval, [NativeTypeName("void*")] IntPtr newval);

View File

@ -76,11 +76,8 @@ namespace SDL
public int refcount;
}
public unsafe partial struct SDL_GPURenderStateDesc
public unsafe partial struct SDL_GPURenderStateCreateInfo
{
[NativeTypeName("Uint32")]
public uint version;
public SDL_GPUShader* fragment_shader;
[NativeTypeName("Sint32")]
@ -100,6 +97,8 @@ namespace SDL
[NativeTypeName("SDL_GPUBuffer *const *")]
public SDL_GPUBuffer** storage_buffers;
public SDL_PropertiesID props;
}
public partial struct SDL_GPURenderState
@ -471,7 +470,7 @@ namespace SDL
public static extern SDLBool SDL_GetDefaultTextureScaleMode(SDL_Renderer* renderer, SDL_ScaleMode* scale_mode);
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern SDL_GPURenderState* SDL_CreateGPURenderState(SDL_Renderer* renderer, SDL_GPURenderStateDesc* desc);
public static extern SDL_GPURenderState* SDL_CreateGPURenderState(SDL_Renderer* renderer, SDL_GPURenderStateCreateInfo* createinfo);
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
[return: NativeTypeName("bool")]

View File

@ -41,6 +41,7 @@ namespace SDL
SDL_FLIP_NONE,
SDL_FLIP_HORIZONTAL,
SDL_FLIP_VERTICAL,
SDL_FLIP_HORIZONTAL_AND_VERTICAL = (SDL_FLIP_HORIZONTAL | SDL_FLIP_VERTICAL),
}
public partial struct SDL_Surface