diff --git a/.silktouch/91c9aa14a031651f.stout b/.silktouch/91c9aa14a031651f.stout index 45049cd1a2..09581e3291 100644 Binary files a/.silktouch/91c9aa14a031651f.stout and b/.silktouch/91c9aa14a031651f.stout differ diff --git a/eng/submodules/sdl b/eng/submodules/sdl index 78cc5c1734..b5c3eab6b4 160000 --- a/eng/submodules/sdl +++ b/eng/submodules/sdl @@ -1 +1 @@ -Subproject commit 78cc5c173404488d80751af226d1eaf67033bcc4 +Subproject commit b5c3eab6b447111d3c7879bb547b80fb4abd9063 diff --git a/sources/SDL/Native/android/SDL3.jar b/sources/SDL/Native/android/SDL3.jar index f19ae15904..9e919660df 100644 Binary files a/sources/SDL/Native/android/SDL3.jar and b/sources/SDL/Native/android/SDL3.jar differ diff --git a/sources/SDL/Native/android/proguard.txt b/sources/SDL/Native/android/proguard.txt index fc0a4f5c92..1eeb90e2c3 100644 --- a/sources/SDL/Native/android/proguard.txt +++ b/sources/SDL/Native/android/proguard.txt @@ -36,6 +36,7 @@ int messageboxShowMessageBox(int, java.lang.String, java.lang.String, int[], int[], java.lang.String[], int[]); void minimizeWindow(); boolean openURL(java.lang.String); + void onNativePen(int, int, int , float , float , float); void requestPermission(java.lang.String, int); boolean showToast(java.lang.String, int, int, int, int); boolean sendMessage(int, int); diff --git a/sources/SDL/Native/build-android.sh b/sources/SDL/Native/build-android.sh index 7b2714e6c8..d7b6a3348e 100755 --- a/sources/SDL/Native/build-android.sh +++ b/sources/SDL/Native/build-android.sh @@ -9,6 +9,8 @@ if [ ! -z "$GITHUB_ACTIONS" ]; then # NDK already installed: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md sdkmanager=( /usr/local/lib/android/sdk/cmdline-tools/*/bin/sdkmanager ) ${sdkmanager[-1]} --install "platforms;android-19" + sudo add-apt-repository ppa:deadsnakes/ppa + sudo apt update sudo apt install python3.11 ninja-build python="python3.11" fi diff --git a/sources/SDL/Native/runtimes/android-arm/native/libSDL3.so b/sources/SDL/Native/runtimes/android-arm/native/libSDL3.so index cdf3cf8634..2972801a45 100644 Binary files a/sources/SDL/Native/runtimes/android-arm/native/libSDL3.so and b/sources/SDL/Native/runtimes/android-arm/native/libSDL3.so differ diff --git a/sources/SDL/Native/runtimes/android-arm64/native/libSDL3.so b/sources/SDL/Native/runtimes/android-arm64/native/libSDL3.so index 9f47629afd..49e66d723b 100644 Binary files a/sources/SDL/Native/runtimes/android-arm64/native/libSDL3.so and b/sources/SDL/Native/runtimes/android-arm64/native/libSDL3.so differ diff --git a/sources/SDL/Native/runtimes/android-x64/native/libSDL3.so b/sources/SDL/Native/runtimes/android-x64/native/libSDL3.so index 99f3b3ff3d..85e114e3a9 100644 Binary files a/sources/SDL/Native/runtimes/android-x64/native/libSDL3.so and b/sources/SDL/Native/runtimes/android-x64/native/libSDL3.so differ diff --git a/sources/SDL/Native/runtimes/android-x86/native/libSDL3.so b/sources/SDL/Native/runtimes/android-x86/native/libSDL3.so index 554284b093..042a5abf07 100644 Binary files a/sources/SDL/Native/runtimes/android-x86/native/libSDL3.so and b/sources/SDL/Native/runtimes/android-x86/native/libSDL3.so differ diff --git a/sources/SDL/Native/runtimes/ios/native/libSDL3.a b/sources/SDL/Native/runtimes/ios/native/libSDL3.a index 2c93825e6c..f615acbd92 100644 Binary files a/sources/SDL/Native/runtimes/ios/native/libSDL3.a and b/sources/SDL/Native/runtimes/ios/native/libSDL3.a differ diff --git a/sources/SDL/Native/runtimes/iossimulator/native/libSDL3.a b/sources/SDL/Native/runtimes/iossimulator/native/libSDL3.a index ecdeb60db7..73c93128fb 100644 Binary files a/sources/SDL/Native/runtimes/iossimulator/native/libSDL3.a and b/sources/SDL/Native/runtimes/iossimulator/native/libSDL3.a differ diff --git a/sources/SDL/Native/runtimes/linux-arm/native/libSDL3.so b/sources/SDL/Native/runtimes/linux-arm/native/libSDL3.so index 7f3fc0a6da..bd42c139f7 100644 Binary files a/sources/SDL/Native/runtimes/linux-arm/native/libSDL3.so and b/sources/SDL/Native/runtimes/linux-arm/native/libSDL3.so differ diff --git a/sources/SDL/Native/runtimes/linux-arm64/native/libSDL3.so b/sources/SDL/Native/runtimes/linux-arm64/native/libSDL3.so index bea6391bff..599051aed0 100644 Binary files a/sources/SDL/Native/runtimes/linux-arm64/native/libSDL3.so and b/sources/SDL/Native/runtimes/linux-arm64/native/libSDL3.so differ diff --git a/sources/SDL/Native/runtimes/linux-x64/native/libSDL3.so b/sources/SDL/Native/runtimes/linux-x64/native/libSDL3.so index 2501d0cdc5..fb30435e01 100644 Binary files a/sources/SDL/Native/runtimes/linux-x64/native/libSDL3.so and b/sources/SDL/Native/runtimes/linux-x64/native/libSDL3.so differ diff --git a/sources/SDL/Native/runtimes/osx/native/libSDL3.dylib b/sources/SDL/Native/runtimes/osx/native/libSDL3.dylib index 561f1abb2b..0e9ce3105e 100644 Binary files a/sources/SDL/Native/runtimes/osx/native/libSDL3.dylib and b/sources/SDL/Native/runtimes/osx/native/libSDL3.dylib differ diff --git a/sources/SDL/Native/runtimes/tvos/native/libSDL3.a b/sources/SDL/Native/runtimes/tvos/native/libSDL3.a index 46b2f4f9e8..6549808d0a 100644 Binary files a/sources/SDL/Native/runtimes/tvos/native/libSDL3.a and b/sources/SDL/Native/runtimes/tvos/native/libSDL3.a differ diff --git a/sources/SDL/Native/runtimes/win-arm64/native/SDL3.dll b/sources/SDL/Native/runtimes/win-arm64/native/SDL3.dll index e65f0e40e5..2e1b8e27c4 100644 Binary files a/sources/SDL/Native/runtimes/win-arm64/native/SDL3.dll and b/sources/SDL/Native/runtimes/win-arm64/native/SDL3.dll differ diff --git a/sources/SDL/Native/runtimes/win-x64/native/SDL3.dll b/sources/SDL/Native/runtimes/win-x64/native/SDL3.dll index 809595df2d..68d451f222 100644 Binary files a/sources/SDL/Native/runtimes/win-x64/native/SDL3.dll and b/sources/SDL/Native/runtimes/win-x64/native/SDL3.dll differ diff --git a/sources/SDL/Native/version.txt b/sources/SDL/Native/version.txt index e5924268c2..351227fca3 100644 --- a/sources/SDL/Native/version.txt +++ b/sources/SDL/Native/version.txt @@ -1,2 +1 @@ -3.1.6-preview - +3.2.4 diff --git a/sources/SDL/SDL/SDL3/BlendMode.gen.cs b/sources/SDL/SDL/SDL3/BlendMode.gen.cs index 4809b83665..799a030be6 100644 --- a/sources/SDL/SDL/SDL3/BlendMode.gen.cs +++ b/sources/SDL/SDL/SDL3/BlendMode.gen.cs @@ -17,5 +17,5 @@ public enum BlendMode : uint AddPremultiplied = 0x00000020U, Mod = 0x00000004U, Mul = 0x00000008U, - Invalid = 0x7FFFFFFFU + Invalid = 0x7FFFFFFFU, } diff --git a/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs b/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs index 7027c784ff..858cf29858 100644 --- a/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs @@ -21,7 +21,7 @@ public unsafe partial struct ClipboardEvent public byte Owner; [NativeTypeName("Sint32")] - public int NMimeTypes; + public int NumMimeTypes; [NativeTypeName("const char **")] public sbyte** MimeTypes; diff --git a/sources/SDL/SDL/SDL3/Event.gen.cs b/sources/SDL/SDL/SDL3/Event.gen.cs index 1da971d07b..b4c372884c 100644 --- a/sources/SDL/SDL/SDL3/Event.gen.cs +++ b/sources/SDL/SDL/SDL3/Event.gen.cs @@ -116,6 +116,9 @@ public partial struct Event [FieldOffset(0)] public PenAxisEvent Paxis; + [FieldOffset(0)] + public RenderEvent Render; + [FieldOffset(0)] public DropEvent Drop; diff --git a/sources/SDL/SDL/SDL3/EventType.gen.cs b/sources/SDL/SDL/SDL3/EventType.gen.cs index c972017c2a..eb68bf0d99 100644 --- a/sources/SDL/SDL/SDL3/EventType.gen.cs +++ b/sources/SDL/SDL/SDL3/EventType.gen.cs @@ -94,6 +94,7 @@ public enum EventType : uint FingerDown = 0x700, FingerUp, FingerMotion, + FingerCanceled, ClipboardUpdate = 0x900, DropFile = 0x1000, DropText, diff --git a/sources/SDL/SDL/SDL3/FileDialogType.gen.cs b/sources/SDL/SDL/SDL3/FileDialogType.gen.cs new file mode 100644 index 0000000000..58f5c453d1 --- /dev/null +++ b/sources/SDL/SDL/SDL3/FileDialogType.gen.cs @@ -0,0 +1,16 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum FileDialogType : uint +{ + Openfile, + Savefile, + Openfolder, +} diff --git a/sources/SDL/SDL/SDL3/GPUSwapchainComposition.gen.cs b/sources/SDL/SDL/SDL3/GPUSwapchainComposition.gen.cs index 7c0626e8c3..dc8b5ea8d2 100644 --- a/sources/SDL/SDL/SDL3/GPUSwapchainComposition.gen.cs +++ b/sources/SDL/SDL/SDL3/GPUSwapchainComposition.gen.cs @@ -13,5 +13,5 @@ public enum GPUSwapchainComposition : uint Sdr, SdrLinear, HdrExtendedLinear, - Hdr10St2048, + Hdr10St2084, } diff --git a/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs b/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs index 40a5b666ed..f0236b86af 100644 --- a/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs @@ -11,10 +11,10 @@ public partial struct GamepadBinding { public GamepadBindingType InputType; - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L247_C5")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L265_C5")] public GamepadBindingInput Input; public GamepadBindingType OutputType; - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L267_C5")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L285_C5")] public GamepadBindingOutput Output; } diff --git a/sources/SDL/SDL/SDL3/GamepadBindingInput.gen.cs b/sources/SDL/SDL/SDL3/GamepadBindingInput.gen.cs index ea17ae03b4..cfb484ed1c 100644 --- a/sources/SDL/SDL/SDL3/GamepadBindingInput.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadBindingInput.gen.cs @@ -15,10 +15,10 @@ public partial struct GamepadBindingInput public int Button; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L251_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L269_C9")] public GamepadBindingInputAxis Axis; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L258_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L276_C9")] public GamepadBindingInputHat Hat; } diff --git a/sources/SDL/SDL/SDL3/GamepadBindingOutput.gen.cs b/sources/SDL/SDL/SDL3/GamepadBindingOutput.gen.cs index a329809c01..66d898bef3 100644 --- a/sources/SDL/SDL/SDL3/GamepadBindingOutput.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadBindingOutput.gen.cs @@ -15,6 +15,6 @@ public partial struct GamepadBindingOutput public GamepadButton Button; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L271_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L289_C9")] public GamepadBindingOutputAxis Axis; } diff --git a/sources/SDL/SDL/SDL3/ISdl.gen.cs b/sources/SDL/SDL/SDL3/ISdl.gen.cs index 2787295289..0c53ad703f 100644 --- a/sources/SDL/SDL/SDL3/ISdl.gen.cs +++ b/sources/SDL/SDL/SDL3/ISdl.gen.cs @@ -262,12 +262,21 @@ static abstract uint AttachVirtualJoystick( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] static abstract MaybeBool AudioDevicePaused( - [NativeTypeName("SDL_AudioDeviceID")] uint dev + [NativeTypeName("SDL_AudioDeviceID")] uint devid ); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - static abstract byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + static abstract byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + static abstract MaybeBool AudioStreamDevicePaused(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + static abstract byte AudioStreamDevicePausedRaw(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_BeginGPUComputePass")] static abstract GPUComputePassHandle BeginGPUComputePass( @@ -335,7 +344,7 @@ AudioStreamHandle stream [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] static abstract byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, int num_streams ); @@ -344,7 +353,7 @@ int num_streams [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] static abstract MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, int num_streams ); @@ -2256,6 +2265,9 @@ SensorType type [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] static abstract byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + [NativeFunction("SDL3", EntryPoint = "SDL_GDKSuspendComplete")] + static abstract void GDKSuspendComplete(); + [NativeFunction("SDL3", EntryPoint = "SDL_GenerateMipmapsForGPUTexture")] static abstract void GenerateMipmapsForGPUTexture( GPUCommandBufferHandle command_buffer, @@ -2540,14 +2552,14 @@ static abstract CameraPosition GetCameraPosition( [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] static abstract CameraSpec** GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, int* count ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] static abstract Ptr2D GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, Ref count ); @@ -2594,7 +2606,7 @@ static abstract byte GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] byte include_high_density_modes, - DisplayMode* mode + DisplayMode* closest ); [return: NativeTypeName("bool")] @@ -2606,7 +2618,7 @@ static abstract MaybeBool GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] MaybeBool include_high_density_modes, - Ref mode + Ref closest ); [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCacheLineSize")] @@ -2630,6 +2642,15 @@ Ref mode [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] static abstract sbyte* GetCurrentCameraDriverRaw(); + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + static abstract Ptr GetCurrentDirectory(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + static abstract sbyte* GetCurrentDirectoryRaw(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] @@ -4871,6 +4892,9 @@ Ref h [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadName")] static abstract sbyte* GetThreadNameRaw(ThreadHandle thread); + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadState")] + static abstract ThreadState GetThreadState(ThreadHandle thread); + [return: NativeTypeName("Uint64")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTicks")] static abstract ulong GetTicks(); @@ -6145,6 +6169,32 @@ static abstract nuint IOvprintf( [NativeFunction("SDL3", EntryPoint = "SDL_isalpha")] static abstract int Isalpha(int x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + static abstract MaybeBool IsAudioDevicePhysical( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + static abstract byte IsAudioDevicePhysicalRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + static abstract MaybeBool IsAudioDevicePlayback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + static abstract byte IsAudioDevicePlaybackRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + [NativeFunction("SDL3", EntryPoint = "SDL_isblank")] static abstract int Isblank(int x); @@ -6199,6 +6249,15 @@ static abstract byte IsJoystickVirtualRaw( [NativeFunction("SDL3", EntryPoint = "SDL_islower")] static abstract int Islower(int x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + static abstract MaybeBool IsMainThread(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + static abstract byte IsMainThreadRaw(); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] @@ -6974,12 +7033,12 @@ static abstract StorageHandle OpenUserStorage( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] static abstract MaybeBool PauseAudioDevice( - [NativeTypeName("SDL_AudioDeviceID")] uint dev + [NativeTypeName("SDL_AudioDeviceID")] uint devid ); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] - static abstract byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + static abstract byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); [return: NativeTypeName("bool")] [Transformed] @@ -8094,6 +8153,29 @@ static abstract MaybeBool RenderTexture9Grid( [NativeTypeName("const SDL_FRect *")] Ref dstrect ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + static abstract byte RenderTextureAffine( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FPoint *")] FPoint* origin, + [NativeTypeName("const SDL_FPoint *")] FPoint* right, + [NativeTypeName("const SDL_FPoint *")] FPoint* down + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + static abstract MaybeBool RenderTextureAffine( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FPoint *")] Ref origin, + [NativeTypeName("const SDL_FPoint *")] Ref right, + [NativeTypeName("const SDL_FPoint *")] Ref down + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] static abstract byte RenderTextureRotated( @@ -8200,12 +8282,12 @@ int line [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] static abstract MaybeBool ResumeAudioDevice( - [NativeTypeName("SDL_AudioDeviceID")] uint dev + [NativeTypeName("SDL_AudioDeviceID")] uint devid ); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] - static abstract byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + static abstract byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); [return: NativeTypeName("bool")] [Transformed] @@ -8341,6 +8423,23 @@ static abstract byte RunHapticEffectRaw( [NativeTypeName("Uint32")] uint iterations ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + static abstract byte RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + void* userdata, + [NativeTypeName("bool")] byte wait_complete + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + static abstract MaybeBool RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + Ref userdata, + [NativeTypeName("bool")] MaybeBool wait_complete + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] static abstract byte SaveBMP( @@ -8373,6 +8472,42 @@ static abstract MaybeBool SaveBMPIO( [NativeTypeName("bool")] MaybeBool closeio ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + static abstract byte SaveFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + static abstract MaybeBool SaveFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + static abstract byte SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] byte closeio + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + static abstract MaybeBool SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] MaybeBool closeio + ); + [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] static abstract double Scalbn(double x, int n); @@ -8914,6 +9049,21 @@ static abstract MaybeBool SetGamepadSensorEnabled( [NativeTypeName("bool")] MaybeBool enabled ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + static abstract MaybeBool SetGPUAllowedFramesInFlight( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + static abstract byte SetGPUAllowedFramesInFlightRaw( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUBlendConstants")] static abstract void SetGPUBlendConstants( GPURenderPassHandle render_pass, @@ -10089,6 +10239,23 @@ static abstract MaybeBool SetWindowTitle( [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] static abstract byte ShowCursorRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + static abstract void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + void* userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + static abstract void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + Ref userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] static abstract byte ShowMessageBox( @@ -10383,6 +10550,27 @@ static abstract int Strcmp( [NativeFunction("SDL3", EntryPoint = "SDL_strdup")] static abstract Ptr Strdup([NativeTypeName("const char *")] Ref str); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + static abstract byte StretchSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + static abstract MaybeBool StretchSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ); + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] static abstract Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID); @@ -10583,8 +10771,8 @@ static abstract double Strtod( [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_strtok_r")] static abstract sbyte* StrtokR( - [NativeTypeName("char *")] sbyte* s1, - [NativeTypeName("const char *")] sbyte* s2, + [NativeTypeName("char *")] sbyte* str, + [NativeTypeName("const char *")] sbyte* delim, [NativeTypeName("char **")] sbyte** saveptr ); @@ -10592,8 +10780,8 @@ static abstract double Strtod( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_strtok_r")] static abstract Ptr StrtokR( - [NativeTypeName("char *")] Ref s1, - [NativeTypeName("const char *")] Ref s2, + [NativeTypeName("char *")] Ref str, + [NativeTypeName("const char *")] Ref delim, [NativeTypeName("char **")] Ref2D saveptr ); @@ -10913,11 +11101,17 @@ int radix static abstract void UnbindAudioStream(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] - static abstract void UnbindAudioStreams(AudioStreamHandle* streams, int num_streams); + static abstract void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, + int num_streams + ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] - static abstract void UnbindAudioStreams(Ref streams, int num_streams); + static abstract void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, + int num_streams + ); [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] static abstract void UnloadObject(SharedObjectHandle handle); @@ -11337,6 +11531,27 @@ static abstract MaybeBool VulkanLoadLibrary( [NativeFunction("SDL3", EntryPoint = "SDL_Vulkan_UnloadLibrary")] static abstract void VulkanUnloadLibrary(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + static abstract byte WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + GPUTextureHandle* swapchain_texture, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_width, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_height + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + static abstract MaybeBool WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + Ref swapchain_texture, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_width, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_height + ); + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] static abstract void WaitCondition(ConditionHandle cond, MutexHandle mutex); @@ -11409,6 +11624,18 @@ static abstract MaybeBool WaitForGPUFences( [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUIdle")] static abstract byte WaitForGPUIdleRaw(GPUDeviceHandle device); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + static abstract MaybeBool WaitForGPUSwapchain( + GPUDeviceHandle device, + WindowHandle window + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + static abstract byte WaitForGPUSwapchainRaw(GPUDeviceHandle device, WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitProcess")] static abstract byte WaitProcess( @@ -12209,11 +12436,20 @@ uint AttachVirtualJoystick( [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev); + MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + MaybeBool AudioStreamDevicePaused(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + byte AudioStreamDevicePausedRaw(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_BeginGPUComputePass")] GPUComputePassHandle BeginGPUComputePass( @@ -12280,7 +12516,7 @@ AudioStreamHandle stream [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, int num_streams ); @@ -12289,7 +12525,7 @@ int num_streams [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, int num_streams ); @@ -14112,6 +14348,9 @@ void FlushEvents( [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + [NativeFunction("SDL3", EntryPoint = "SDL_GDKSuspendComplete")] + void GDKSuspendComplete(); + [NativeFunction("SDL3", EntryPoint = "SDL_GenerateMipmapsForGPUTexture")] void GenerateMipmapsForGPUTexture( GPUCommandBufferHandle command_buffer, @@ -14374,12 +14613,15 @@ MaybeBool GetBooleanProperty( Ptr GetCameras(Ref count); [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] - CameraSpec** GetCameraSupportedFormats([NativeTypeName("SDL_CameraID")] uint devid, int* count); + CameraSpec** GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint instance_id, + int* count + ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] Ptr2D GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, Ref count ); @@ -14422,7 +14664,7 @@ byte GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] byte include_high_density_modes, - DisplayMode* mode + DisplayMode* closest ); [return: NativeTypeName("bool")] @@ -14434,7 +14676,7 @@ MaybeBool GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] MaybeBool include_high_density_modes, - Ref mode + Ref closest ); [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCacheLineSize")] @@ -14458,6 +14700,15 @@ Ref mode [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] sbyte* GetCurrentCameraDriverRaw(); + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + Ptr GetCurrentDirectory(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + sbyte* GetCurrentDirectoryRaw(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] @@ -16489,6 +16740,9 @@ Ref b [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadName")] sbyte* GetThreadNameRaw(ThreadHandle thread); + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadState")] + ThreadState GetThreadState(ThreadHandle thread); + [return: NativeTypeName("Uint64")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTicks")] ulong GetTicks(); @@ -17689,6 +17943,24 @@ nuint IOvprintf( [NativeFunction("SDL3", EntryPoint = "SDL_isalpha")] int Isalpha(int x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + MaybeBool IsAudioDevicePhysical([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + byte IsAudioDevicePhysicalRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + MaybeBool IsAudioDevicePlayback([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + byte IsAudioDevicePlaybackRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); + [NativeFunction("SDL3", EntryPoint = "SDL_isblank")] int Isblank(int x); @@ -17737,6 +18009,15 @@ nuint IOvprintf( [NativeFunction("SDL3", EntryPoint = "SDL_islower")] int Islower(int x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + MaybeBool IsMainThread(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + byte IsMainThreadRaw(); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] @@ -18486,11 +18767,11 @@ StorageHandle OpenUserStorage( [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] - MaybeBool PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + MaybeBool PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] - byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); [return: NativeTypeName("bool")] [Transformed] @@ -19481,6 +19762,29 @@ MaybeBool RenderTexture9Grid( [NativeTypeName("const SDL_FRect *")] Ref dstrect ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + byte RenderTextureAffine( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FPoint *")] FPoint* origin, + [NativeTypeName("const SDL_FPoint *")] FPoint* right, + [NativeTypeName("const SDL_FPoint *")] FPoint* down + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + MaybeBool RenderTextureAffine( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FPoint *")] Ref origin, + [NativeTypeName("const SDL_FPoint *")] Ref right, + [NativeTypeName("const SDL_FPoint *")] Ref down + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] byte RenderTextureRotated( @@ -19586,11 +19890,11 @@ int line [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] - MaybeBool ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + MaybeBool ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] - byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); [return: NativeTypeName("bool")] [Transformed] @@ -19726,6 +20030,23 @@ byte RunHapticEffectRaw( [NativeTypeName("Uint32")] uint iterations ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + byte RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + void* userdata, + [NativeTypeName("bool")] byte wait_complete + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + MaybeBool RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + Ref userdata, + [NativeTypeName("bool")] MaybeBool wait_complete + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] byte SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file); @@ -19748,6 +20069,42 @@ MaybeBool SaveBMPIO( [NativeTypeName("bool")] MaybeBool closeio ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + byte SaveFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + MaybeBool SaveFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + byte SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] byte closeio + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + MaybeBool SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] MaybeBool closeio + ); + [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] double Scalbn(double x, int n); @@ -20256,6 +20613,21 @@ MaybeBool SetGamepadSensorEnabled( [NativeTypeName("bool")] MaybeBool enabled ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + MaybeBool SetGPUAllowedFramesInFlight( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + byte SetGPUAllowedFramesInFlightRaw( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUBlendConstants")] void SetGPUBlendConstants(GPURenderPassHandle render_pass, FColor blend_constants); @@ -21318,6 +21690,23 @@ MaybeBool SetWindowTitle( [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] byte ShowCursorRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + void* userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + Ref userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] byte ShowMessageBox( @@ -21612,6 +22001,27 @@ int Strcmp( [NativeFunction("SDL3", EntryPoint = "SDL_strdup")] Ptr Strdup([NativeTypeName("const char *")] Ref str); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + byte StretchSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + MaybeBool StretchSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ); + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID); @@ -21812,8 +22222,8 @@ double Strtod( [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_strtok_r")] sbyte* StrtokR( - [NativeTypeName("char *")] sbyte* s1, - [NativeTypeName("const char *")] sbyte* s2, + [NativeTypeName("char *")] sbyte* str, + [NativeTypeName("const char *")] sbyte* delim, [NativeTypeName("char **")] sbyte** saveptr ); @@ -21821,8 +22231,8 @@ double Strtod( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_strtok_r")] Ptr StrtokR( - [NativeTypeName("char *")] Ref s1, - [NativeTypeName("const char *")] Ref s2, + [NativeTypeName("char *")] Ref str, + [NativeTypeName("const char *")] Ref delim, [NativeTypeName("char **")] Ref2D saveptr ); @@ -22136,11 +22546,17 @@ int radix void UnbindAudioStream(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] - void UnbindAudioStreams(AudioStreamHandle* streams, int num_streams); + void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, + int num_streams + ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] - void UnbindAudioStreams(Ref streams, int num_streams); + void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, + int num_streams + ); [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] void UnloadObject(SharedObjectHandle handle); @@ -22549,6 +22965,27 @@ MaybeBool VulkanGetPresentationSupport( [NativeFunction("SDL3", EntryPoint = "SDL_Vulkan_UnloadLibrary")] void VulkanUnloadLibrary(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + byte WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + GPUTextureHandle* swapchain_texture, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_width, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_height + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + MaybeBool WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + Ref swapchain_texture, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_width, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_height + ); + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] void WaitCondition(ConditionHandle cond, MutexHandle mutex); @@ -22615,6 +23052,15 @@ MaybeBool WaitForGPUFences( [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUIdle")] byte WaitForGPUIdleRaw(GPUDeviceHandle device); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + MaybeBool WaitForGPUSwapchain(GPUDeviceHandle device, WindowHandle window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + byte WaitForGPUSwapchainRaw(GPUDeviceHandle device, WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitProcess")] byte WaitProcess(ProcessHandle process, [NativeTypeName("bool")] byte block, int* exitcode); diff --git a/sources/SDL/SDL/SDL3/MainThreadCallback.gen.cs b/sources/SDL/SDL/SDL3/MainThreadCallback.gen.cs new file mode 100644 index 0000000000..c03d73ae03 --- /dev/null +++ b/sources/SDL/SDL/SDL3/MainThreadCallback.gen.cs @@ -0,0 +1,28 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +public readonly unsafe struct MainThreadCallback : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + + public MainThreadCallback(delegate* unmanaged ptr) => Pointer = ptr; + + public MainThreadCallback(MainThreadCallbackDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator MainThreadCallback(delegate* unmanaged pfn) => + new(pfn); + + public static implicit operator delegate* unmanaged(MainThreadCallback pfn) => + (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/MainThreadCallbackDelegate.gen.cs b/sources/SDL/SDL/SDL3/MainThreadCallbackDelegate.gen.cs new file mode 100644 index 0000000000..2a96a18293 --- /dev/null +++ b/sources/SDL/SDL/SDL3/MainThreadCallbackDelegate.gen.cs @@ -0,0 +1,11 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +public unsafe delegate void MainThreadCallbackDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/RenderEvent.gen.cs b/sources/SDL/SDL/SDL3/RenderEvent.gen.cs new file mode 100644 index 0000000000..55524c6bb6 --- /dev/null +++ b/sources/SDL/SDL/SDL3/RenderEvent.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +public partial struct RenderEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; +} diff --git a/sources/SDL/SDL/SDL3/Sdl.gen.cs b/sources/SDL/SDL/SDL3/Sdl.gen.cs index c9a13b8573..8e4f91f4ea 100644 --- a/sources/SDL/SDL/SDL3/Sdl.gen.cs +++ b/sources/SDL/SDL/SDL3/Sdl.gen.cs @@ -409,15 +409,25 @@ public static uint AttachVirtualJoystick( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] public static MaybeBool AudioDevicePaused( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => (MaybeBool)(byte)AudioDevicePausedRaw(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => (MaybeBool)(byte)AudioDevicePausedRaw(devid); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AudioDevicePaused")] [return: NativeTypeName("bool")] public static extern byte AudioDevicePausedRaw( - [NativeTypeName("SDL_AudioDeviceID")] uint dev + [NativeTypeName("SDL_AudioDeviceID")] uint devid ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + public static MaybeBool AudioStreamDevicePaused(AudioStreamHandle stream) => + (MaybeBool)(byte)AudioStreamDevicePausedRaw(stream); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AudioStreamDevicePaused")] + [return: NativeTypeName("bool")] + public static extern byte AudioStreamDevicePausedRaw(AudioStreamHandle stream); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BeginGPUComputePass")] public static extern GPUComputePassHandle BeginGPUComputePass( GPUCommandBufferHandle command_buffer, @@ -526,7 +536,7 @@ AudioStreamHandle stream [return: NativeTypeName("bool")] public static extern byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, int num_streams ); @@ -538,7 +548,7 @@ int num_streams )] public static MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, int num_streams ) { @@ -3453,6 +3463,9 @@ SensorType type [return: NativeTypeName("bool")] public static extern byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GDKSuspendComplete")] + public static extern void GDKSuspendComplete(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GenerateMipmapsForGPUTexture")] public static extern void GenerateMipmapsForGPUTexture( GPUCommandBufferHandle command_buffer, @@ -3921,7 +3934,7 @@ public static Ptr GetCameras(Ref count) [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraSupportedFormats")] public static extern CameraSpec** GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, int* count ); @@ -3931,13 +3944,13 @@ public static Ptr GetCameras(Ref count) MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static Ptr2D GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, Ref count ) { fixed (int* __dsl_count = count) { - return (CameraSpec**)GetCameraSupportedFormats(devid, __dsl_count); + return (CameraSpec**)GetCameraSupportedFormats(instance_id, __dsl_count); } } @@ -4010,7 +4023,7 @@ public static extern byte GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] byte include_high_density_modes, - DisplayMode* mode + DisplayMode* closest ); [return: NativeTypeName("bool")] @@ -4025,10 +4038,10 @@ public static MaybeBool GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] MaybeBool include_high_density_modes, - Ref mode + Ref closest ) { - fixed (DisplayMode* __dsl_mode = mode) + fixed (DisplayMode* __dsl_closest = closest) { return (MaybeBool) (byte)GetClosestFullscreenDisplayMode( @@ -4037,7 +4050,7 @@ Ref mode h, refresh_rate, (byte)include_high_density_modes, - __dsl_mode + __dsl_closest ); } } @@ -4069,6 +4082,18 @@ Ref mode [return: NativeTypeName("const char *")] public static extern sbyte* GetCurrentCameraDriverRaw(); + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentDirectory() => (sbyte*)GetCurrentDirectoryRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCurrentDirectory")] + [return: NativeTypeName("char *")] + public static extern sbyte* GetCurrentDirectoryRaw(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] @@ -7535,6 +7560,9 @@ public static Ptr GetThreadName(ThreadHandle thread) => [return: NativeTypeName("const char *")] public static extern sbyte* GetThreadNameRaw(ThreadHandle thread); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetThreadState")] + public static extern ThreadState GetThreadState(ThreadHandle thread); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTicks")] [return: NativeTypeName("Uint64")] public static extern ulong GetTicks(); @@ -9362,6 +9390,32 @@ public static nuint IOvprintf( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_isalpha")] public static extern int Isalpha(int x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + public static MaybeBool IsAudioDevicePhysical( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => (MaybeBool)(byte)IsAudioDevicePhysicalRaw(devid); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsAudioDevicePhysical")] + [return: NativeTypeName("bool")] + public static extern byte IsAudioDevicePhysicalRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + public static MaybeBool IsAudioDevicePlayback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => (MaybeBool)(byte)IsAudioDevicePlaybackRaw(devid); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsAudioDevicePlayback")] + [return: NativeTypeName("bool")] + public static extern byte IsAudioDevicePlaybackRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_isblank")] public static extern int Isblank(int x); @@ -9417,6 +9471,15 @@ public static extern byte IsJoystickVirtualRaw( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_islower")] public static extern int Islower(int x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + public static MaybeBool IsMainThread() => (MaybeBool)(byte)IsMainThreadRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsMainThread")] + [return: NativeTypeName("bool")] + public static extern byte IsMainThreadRaw(); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] @@ -10609,13 +10672,13 @@ public static StorageHandle OpenUserStorage( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] public static MaybeBool PauseAudioDevice( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => (MaybeBool)(byte)PauseAudioDeviceRaw(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => (MaybeBool)(byte)PauseAudioDeviceRaw(devid); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PauseAudioDevice")] [return: NativeTypeName("bool")] public static extern byte PauseAudioDeviceRaw( - [NativeTypeName("SDL_AudioDeviceID")] uint dev + [NativeTypeName("SDL_AudioDeviceID")] uint devid ); [return: NativeTypeName("bool")] @@ -12362,6 +12425,50 @@ public static MaybeBool RenderTexture9Grid( } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderTextureAffine")] + [return: NativeTypeName("bool")] + public static extern byte RenderTextureAffine( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FPoint *")] FPoint* origin, + [NativeTypeName("const SDL_FPoint *")] FPoint* right, + [NativeTypeName("const SDL_FPoint *")] FPoint* down + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderTextureAffine( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FPoint *")] Ref origin, + [NativeTypeName("const SDL_FPoint *")] Ref right, + [NativeTypeName("const SDL_FPoint *")] Ref down + ) + { + fixed (FPoint* __dsl_down = down) + fixed (FPoint* __dsl_right = right) + fixed (FPoint* __dsl_origin = origin) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTextureAffine( + renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_origin, + __dsl_right, + __dsl_down + ); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderTextureRotated")] [return: NativeTypeName("bool")] public static extern byte RenderTextureRotated( @@ -12529,13 +12636,13 @@ public static MaybeBool RestoreWindow(WindowHandle window) => [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] public static MaybeBool ResumeAudioDevice( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => (MaybeBool)(byte)ResumeAudioDeviceRaw(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => (MaybeBool)(byte)ResumeAudioDeviceRaw(devid); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ResumeAudioDevice")] [return: NativeTypeName("bool")] public static extern byte ResumeAudioDeviceRaw( - [NativeTypeName("SDL_AudioDeviceID")] uint dev + [NativeTypeName("SDL_AudioDeviceID")] uint devid ); [return: NativeTypeName("bool")] @@ -12702,6 +12809,33 @@ public static extern byte RunHapticEffectRaw( [NativeTypeName("Uint32")] uint iterations ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RunOnMainThread")] + [return: NativeTypeName("bool")] + public static extern byte RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + void* userdata, + [NativeTypeName("bool")] byte wait_complete + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + Ref userdata, + [NativeTypeName("bool")] MaybeBool wait_complete + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (MaybeBool) + (byte)RunOnMainThread(callback, __dsl_userdata, (byte)wait_complete); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SaveBMP")] [return: NativeTypeName("bool")] public static extern byte SaveBMP( @@ -12753,6 +12887,61 @@ public static MaybeBool SaveBMPIO( } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SaveFile")] + [return: NativeTypeName("bool")] + public static extern byte SaveFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SaveFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_file = file) + { + return (MaybeBool)(byte)SaveFile(__dsl_file, __dsl_data, datasize); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SaveFile_IO")] + [return: NativeTypeName("bool")] + public static extern byte SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] byte closeio + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] MaybeBool closeio + ) + { + fixed (void* __dsl_data = data) + { + return (MaybeBool)(byte)SaveFileIO(src, __dsl_data, datasize, (byte)closeio); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_scalbn")] public static extern double Scalbn(double x, int n); @@ -13558,6 +13747,22 @@ public static MaybeBool SetGamepadSensorEnabled( [NativeTypeName("bool")] MaybeBool enabled ) => (MaybeBool)(byte)SetGamepadSensorEnabled(gamepad, type, (byte)enabled); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + public static MaybeBool SetGPUAllowedFramesInFlight( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => + (MaybeBool)(byte)SetGPUAllowedFramesInFlightRaw(device, allowed_frames_in_flight); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + [return: NativeTypeName("bool")] + public static extern byte SetGPUAllowedFramesInFlightRaw( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGPUBlendConstants")] public static extern void SetGPUBlendConstants( GPURenderPassHandle render_pass, @@ -15184,6 +15389,32 @@ public static MaybeBool ShouldQuit(Ref state) [return: NativeTypeName("bool")] public static extern byte ShowCursorRaw(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShowFileDialogWithProperties")] + public static extern void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + void* userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + Ref userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (void* __dsl_userdata = userdata) + { + ShowFileDialogWithProperties(type, callback, __dsl_userdata, props); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShowMessageBox")] [return: NativeTypeName("bool")] public static extern byte ShowMessageBox( @@ -15628,6 +15859,46 @@ public static Ptr Strdup([NativeTypeName("const char *")] Ref str) } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StretchSurface")] + [return: NativeTypeName("bool")] + public static extern byte StretchSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool StretchSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte)StretchSurface( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StringToGUID")] public static extern Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID); @@ -15971,8 +16242,8 @@ public static double Strtod( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_strtok_r")] [return: NativeTypeName("char *")] public static extern sbyte* StrtokR( - [NativeTypeName("char *")] sbyte* s1, - [NativeTypeName("const char *")] sbyte* s2, + [NativeTypeName("char *")] sbyte* str, + [NativeTypeName("const char *")] sbyte* delim, [NativeTypeName("char **")] sbyte** saveptr ); @@ -15983,16 +16254,16 @@ public static double Strtod( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static Ptr StrtokR( - [NativeTypeName("char *")] Ref s1, - [NativeTypeName("const char *")] Ref s2, + [NativeTypeName("char *")] Ref str, + [NativeTypeName("const char *")] Ref delim, [NativeTypeName("char **")] Ref2D saveptr ) { fixed (sbyte** __dsl_saveptr = saveptr) - fixed (sbyte* __dsl_s2 = s2) - fixed (sbyte* __dsl_s1 = s1) + fixed (sbyte* __dsl_delim = delim) + fixed (sbyte* __dsl_str = str) { - return (sbyte*)StrtokR(__dsl_s1, __dsl_s2, __dsl_saveptr); + return (sbyte*)StrtokR(__dsl_str, __dsl_delim, __dsl_saveptr); } } @@ -16462,14 +16733,20 @@ int radix public static extern void UnbindAudioStream(AudioStreamHandle stream); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UnbindAudioStreams")] - public static extern void UnbindAudioStreams(AudioStreamHandle* streams, int num_streams); + public static extern void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, + int num_streams + ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void UnbindAudioStreams(Ref streams, int num_streams) + public static void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, + int num_streams + ) { fixed (AudioStreamHandle* __dsl_streams = streams) { @@ -17171,6 +17448,49 @@ public static MaybeBool VulkanLoadLibrary( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_Vulkan_UnloadLibrary")] public static extern void VulkanUnloadLibrary(); + [DllImport( + "SDL3", + ExactSpelling = true, + EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture" + )] + [return: NativeTypeName("bool")] + public static extern byte WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + GPUTextureHandle* swapchain_texture, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_width, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_height + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + Ref swapchain_texture, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_width, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_height + ) + { + fixed (uint* __dsl_swapchain_texture_height = swapchain_texture_height) + fixed (uint* __dsl_swapchain_texture_width = swapchain_texture_width) + fixed (GPUTextureHandle* __dsl_swapchain_texture = swapchain_texture) + { + return (MaybeBool) + (byte)WaitAndAcquireGPUSwapchainTexture( + command_buffer, + window, + __dsl_swapchain_texture, + __dsl_swapchain_texture_width, + __dsl_swapchain_texture_height + ); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitCondition")] public static extern void WaitCondition(ConditionHandle cond, MutexHandle mutex); @@ -17272,6 +17592,21 @@ public static MaybeBool WaitForGPUIdle(GPUDeviceHandle device) => [return: NativeTypeName("bool")] public static extern byte WaitForGPUIdleRaw(GPUDeviceHandle device); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + public static MaybeBool WaitForGPUSwapchain( + GPUDeviceHandle device, + WindowHandle window + ) => (MaybeBool)(byte)WaitForGPUSwapchainRaw(device, window); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitForGPUSwapchain")] + [return: NativeTypeName("bool")] + public static extern byte WaitForGPUSwapchainRaw( + GPUDeviceHandle device, + WindowHandle window + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitProcess")] [return: NativeTypeName("bool")] public static extern byte WaitProcess( @@ -18441,16 +18776,34 @@ public uint AttachVirtualJoystick( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - T.AudioDevicePaused(dev); + public MaybeBool AudioDevicePaused( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => T.AudioDevicePaused(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - T.AudioDevicePausedRaw(dev); + public byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.AudioDevicePausedRaw(devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool AudioStreamDevicePaused(AudioStreamHandle stream) => + T.AudioStreamDevicePaused(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte AudioStreamDevicePausedRaw(AudioStreamHandle stream) => + T.AudioStreamDevicePausedRaw(stream); [NativeFunction("SDL3", EntryPoint = "SDL_BeginGPUComputePass")] [MethodImpl( @@ -18569,7 +18922,7 @@ AudioStreamHandle stream )] public byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, int num_streams ) => T.BindAudioStreams(devid, streams, num_streams); @@ -18581,7 +18934,7 @@ int num_streams )] public MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, int num_streams ) => T.BindAudioStreams(devid, streams, num_streams); @@ -21538,6 +21891,12 @@ public MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType ty public byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => T.GamepadSensorEnabledRaw(gamepad, type); + [NativeFunction("SDL3", EntryPoint = "SDL_GDKSuspendComplete")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GDKSuspendComplete() => T.GDKSuspendComplete(); + [NativeFunction("SDL3", EntryPoint = "SDL_GenerateMipmapsForGPUTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -22012,9 +22371,9 @@ public CameraPosition GetCameraPosition( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public CameraSpec** GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, int* count - ) => T.GetCameraSupportedFormats(devid, count); + ) => T.GetCameraSupportedFormats(instance_id, count); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] @@ -22022,9 +22381,9 @@ public CameraPosition GetCameraPosition( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public Ptr2D GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, Ref count - ) => T.GetCameraSupportedFormats(devid, count); + ) => T.GetCameraSupportedFormats(instance_id, count); [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] [MethodImpl( @@ -22089,7 +22448,7 @@ public byte GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] byte include_high_density_modes, - DisplayMode* mode + DisplayMode* closest ) => T.GetClosestFullscreenDisplayMode( displayID, @@ -22097,7 +22456,7 @@ public byte GetClosestFullscreenDisplayMode( h, refresh_rate, include_high_density_modes, - mode + closest ); [return: NativeTypeName("bool")] @@ -22112,7 +22471,7 @@ public MaybeBool GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] MaybeBool include_high_density_modes, - Ref mode + Ref closest ) => T.GetClosestFullscreenDisplayMode( displayID, @@ -22120,7 +22479,7 @@ Ref mode h, refresh_rate, include_high_density_modes, - mode + closest ); [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCacheLineSize")] @@ -22159,6 +22518,21 @@ Ref mode )] public sbyte* GetCurrentCameraDriverRaw() => T.GetCurrentCameraDriverRaw(); + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCurrentDirectory() => T.GetCurrentDirectory(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetCurrentDirectoryRaw() => T.GetCurrentDirectoryRaw(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] @@ -25670,6 +26044,12 @@ public MaybeBool GetTextureSize(Ref texture, Ref w, Ref T.GetThreadNameRaw(thread); + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ThreadState GetThreadState(ThreadHandle thread) => T.GetThreadState(thread); + [return: NativeTypeName("Uint64")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTicks")] [MethodImpl( @@ -27652,6 +28032,42 @@ public nuint IOvprintf( )] public int Isalpha(int x) => T.Isalpha(x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsAudioDevicePhysical( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => T.IsAudioDevicePhysical(devid); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte IsAudioDevicePhysicalRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.IsAudioDevicePhysicalRaw(devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsAudioDevicePlayback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => T.IsAudioDevicePlayback(devid); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte IsAudioDevicePlaybackRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.IsAudioDevicePlaybackRaw(devid); + [NativeFunction("SDL3", EntryPoint = "SDL_isblank")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -27745,6 +28161,21 @@ public byte IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instanc )] public int Islower(int x) => T.Islower(x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsMainThread() => T.IsMainThread(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte IsMainThreadRaw() => T.IsMainThreadRaw(); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] @@ -28933,16 +29364,16 @@ public StorageHandle OpenUserStorage( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - T.PauseAudioDevice(dev); + public MaybeBool PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.PauseAudioDevice(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - T.PauseAudioDeviceRaw(dev); + public byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.PauseAudioDeviceRaw(devid); [return: NativeTypeName("bool")] [Transformed] @@ -30602,6 +31033,35 @@ public MaybeBool RenderTexture9Grid( dstrect ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RenderTextureAffine( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FPoint *")] FPoint* origin, + [NativeTypeName("const SDL_FPoint *")] FPoint* right, + [NativeTypeName("const SDL_FPoint *")] FPoint* down + ) => T.RenderTextureAffine(renderer, texture, srcrect, origin, right, down); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RenderTextureAffine( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FPoint *")] Ref origin, + [NativeTypeName("const SDL_FPoint *")] Ref right, + [NativeTypeName("const SDL_FPoint *")] Ref down + ) => T.RenderTextureAffine(renderer, texture, srcrect, origin, right, down); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] [MethodImpl( @@ -30761,16 +31221,17 @@ public MaybeBool ResetHint([NativeTypeName("const char *")] Ref nam [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - T.ResumeAudioDevice(dev); + public MaybeBool ResumeAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => T.ResumeAudioDevice(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - T.ResumeAudioDeviceRaw(dev); + public byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.ResumeAudioDeviceRaw(devid); [return: NativeTypeName("bool")] [Transformed] @@ -30963,6 +31424,29 @@ public byte RunHapticEffectRaw( [NativeTypeName("Uint32")] uint iterations ) => T.RunHapticEffectRaw(haptic, effect, iterations); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + void* userdata, + [NativeTypeName("bool")] byte wait_complete + ) => T.RunOnMainThread(callback, userdata, wait_complete); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + Ref userdata, + [NativeTypeName("bool")] MaybeBool wait_complete + ) => T.RunOnMainThread(callback, userdata, wait_complete); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl( @@ -31005,6 +31489,54 @@ public MaybeBool SaveBMPIO( [NativeTypeName("bool")] MaybeBool closeio ) => T.SaveBMPIO(surface, dst, closeio); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SaveFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize + ) => T.SaveFile(file, data, datasize); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SaveFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize + ) => T.SaveFile(file, data, datasize); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] byte closeio + ) => T.SaveFileIO(src, data, datasize, closeio); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] MaybeBool closeio + ) => T.SaveFileIO(src, data, datasize, closeio); + [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -31784,6 +32316,27 @@ public MaybeBool SetGamepadSensorEnabled( [NativeTypeName("bool")] MaybeBool enabled ) => T.SetGamepadSensorEnabled(gamepad, type, enabled); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetGPUAllowedFramesInFlight( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => T.SetGPUAllowedFramesInFlight(device, allowed_frames_in_flight); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetGPUAllowedFramesInFlightRaw( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => T.SetGPUAllowedFramesInFlightRaw(device, allowed_frames_in_flight); + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUBlendConstants")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -33468,6 +34021,29 @@ public MaybeBool SetWindowTitle( )] public byte ShowCursorRaw() => T.ShowCursorRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + void* userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.ShowFileDialogWithProperties(type, callback, userdata, props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + Ref userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.ShowFileDialogWithProperties(type, callback, userdata, props); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl( @@ -33934,6 +34510,33 @@ public int Strcmp( )] public Ptr Strdup([NativeTypeName("const char *")] Ref str) => T.Strdup(str); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte StretchSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => T.StretchSurface(src, srcrect, dst, dstrect, scaleMode); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool StretchSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ) => T.StretchSurface(src, srcrect, dst, dstrect, scaleMode); + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -34231,10 +34834,10 @@ public double Strtod( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public sbyte* StrtokR( - [NativeTypeName("char *")] sbyte* s1, - [NativeTypeName("const char *")] sbyte* s2, + [NativeTypeName("char *")] sbyte* str, + [NativeTypeName("const char *")] sbyte* delim, [NativeTypeName("char **")] sbyte** saveptr - ) => T.StrtokR(s1, s2, saveptr); + ) => T.StrtokR(str, delim, saveptr); [return: NativeTypeName("char *")] [Transformed] @@ -34243,10 +34846,10 @@ public double Strtod( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public Ptr StrtokR( - [NativeTypeName("char *")] Ref s1, - [NativeTypeName("const char *")] Ref s2, + [NativeTypeName("char *")] Ref str, + [NativeTypeName("const char *")] Ref delim, [NativeTypeName("char **")] Ref2D saveptr - ) => T.StrtokR(s1, s2, saveptr); + ) => T.StrtokR(str, delim, saveptr); [return: NativeTypeName("long")] [NativeFunction("SDL3", EntryPoint = "SDL_strtol")] @@ -34736,16 +35339,20 @@ int radix [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void UnbindAudioStreams(AudioStreamHandle* streams, int num_streams) => - T.UnbindAudioStreams(streams, num_streams); + public void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, + int num_streams + ) => T.UnbindAudioStreams(streams, num_streams); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void UnbindAudioStreams(Ref streams, int num_streams) => - T.UnbindAudioStreams(streams, num_streams); + public void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, + int num_streams + ) => T.UnbindAudioStreams(streams, num_streams); [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] [MethodImpl( @@ -35364,6 +35971,47 @@ public MaybeBool VulkanLoadLibrary( )] public void VulkanUnloadLibrary() => T.VulkanUnloadLibrary(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + GPUTextureHandle* swapchain_texture, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_width, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_height + ) => + T.WaitAndAcquireGPUSwapchainTexture( + command_buffer, + window, + swapchain_texture, + swapchain_texture_width, + swapchain_texture_height + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + Ref swapchain_texture, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_width, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_height + ) => + T.WaitAndAcquireGPUSwapchainTexture( + command_buffer, + window, + swapchain_texture, + swapchain_texture_width, + swapchain_texture_height + ); + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -35468,6 +36116,23 @@ public MaybeBool WaitForGPUFences( )] public byte WaitForGPUIdleRaw(GPUDeviceHandle device) => T.WaitForGPUIdleRaw(device); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WaitForGPUSwapchain(GPUDeviceHandle device, WindowHandle window) => + T.WaitForGPUSwapchain(device, window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte WaitForGPUSwapchainRaw(GPUDeviceHandle device, WindowHandle window) => + T.WaitForGPUSwapchainRaw(device, window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitProcess")] [MethodImpl( @@ -36746,16 +37411,33 @@ public static uint AttachVirtualJoystick( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static MaybeBool AudioDevicePaused( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => Underlying.Value!.AudioDevicePaused(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.AudioDevicePaused(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - Underlying.Value!.AudioDevicePausedRaw(dev); + public static byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + Underlying.Value!.AudioDevicePausedRaw(devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool AudioStreamDevicePaused(AudioStreamHandle stream) => + Underlying.Value!.AudioStreamDevicePaused(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte AudioStreamDevicePausedRaw(AudioStreamHandle stream) => + Underlying.Value!.AudioStreamDevicePausedRaw(stream); [NativeFunction("SDL3", EntryPoint = "SDL_BeginGPUComputePass")] [MethodImpl( @@ -36895,7 +37577,7 @@ AudioStreamHandle stream )] public static byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, int num_streams ) => Underlying.Value!.BindAudioStreams(devid, streams, num_streams); @@ -36907,7 +37589,7 @@ int num_streams )] public static MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, int num_streams ) { @@ -40669,6 +41351,12 @@ SensorType type public static byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => Underlying.Value!.GamepadSensorEnabledRaw(gamepad, type); + [NativeFunction("SDL3", EntryPoint = "SDL_GDKSuspendComplete")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GDKSuspendComplete() => Underlying.Value!.GDKSuspendComplete(); + [NativeFunction("SDL3", EntryPoint = "SDL_GenerateMipmapsForGPUTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -41259,9 +41947,9 @@ public static Ptr GetCameras(Ref count) MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static CameraSpec** GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, int* count - ) => Underlying.Value!.GetCameraSupportedFormats(devid, count); + ) => Underlying.Value!.GetCameraSupportedFormats(instance_id, count); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] @@ -41269,13 +41957,13 @@ public static Ptr GetCameras(Ref count) MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static Ptr2D GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, Ref count ) { fixed (int* __dsl_count = count) { - return (CameraSpec**)GetCameraSupportedFormats(devid, __dsl_count); + return (CameraSpec**)GetCameraSupportedFormats(instance_id, __dsl_count); } } @@ -41356,7 +42044,7 @@ public static byte GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] byte include_high_density_modes, - DisplayMode* mode + DisplayMode* closest ) => Underlying.Value!.GetClosestFullscreenDisplayMode( displayID, @@ -41364,7 +42052,7 @@ public static byte GetClosestFullscreenDisplayMode( h, refresh_rate, include_high_density_modes, - mode + closest ); [return: NativeTypeName("bool")] @@ -41379,10 +42067,10 @@ public static MaybeBool GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] MaybeBool include_high_density_modes, - Ref mode + Ref closest ) { - fixed (DisplayMode* __dsl_mode = mode) + fixed (DisplayMode* __dsl_closest = closest) { return (MaybeBool) (byte)GetClosestFullscreenDisplayMode( @@ -41391,7 +42079,7 @@ Ref mode h, refresh_rate, (byte)include_high_density_modes, - __dsl_mode + __dsl_closest ); } } @@ -41436,6 +42124,21 @@ public static Ptr GetCurrentCameraDriver() => public static sbyte* GetCurrentCameraDriverRaw() => Underlying.Value!.GetCurrentCameraDriverRaw(); + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentDirectory() => Underlying.Value!.GetCurrentDirectory(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetCurrentDirectoryRaw() => Underlying.Value!.GetCurrentDirectoryRaw(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] @@ -45804,6 +46507,13 @@ public static Ptr GetThreadName(ThreadHandle thread) => public static sbyte* GetThreadNameRaw(ThreadHandle thread) => Underlying.Value!.GetThreadNameRaw(thread); + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ThreadState GetThreadState(ThreadHandle thread) => + Underlying.Value!.GetThreadState(thread); + [return: NativeTypeName("Uint64")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTicks")] [MethodImpl( @@ -48186,6 +48896,44 @@ public static nuint IOvprintf( )] public static int Isalpha(int x) => Underlying.Value!.Isalpha(x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsAudioDevicePhysical( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.IsAudioDevicePhysical(devid); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte IsAudioDevicePhysicalRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.IsAudioDevicePhysicalRaw(devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsAudioDevicePlayback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.IsAudioDevicePlayback(devid); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte IsAudioDevicePlaybackRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.IsAudioDevicePlaybackRaw(devid); + [NativeFunction("SDL3", EntryPoint = "SDL_isblank")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -48282,6 +49030,21 @@ public static byte IsJoystickVirtualRaw( )] public static int Islower(int x) => Underlying.Value!.Islower(x); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsMainThread() => Underlying.Value!.IsMainThread(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte IsMainThreadRaw() => Underlying.Value!.IsMainThreadRaw(); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] @@ -49758,16 +50521,16 @@ public static StorageHandle OpenUserStorage( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static MaybeBool PauseAudioDevice( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => Underlying.Value!.PauseAudioDevice(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.PauseAudioDevice(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - Underlying.Value!.PauseAudioDeviceRaw(dev); + public static byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + Underlying.Value!.PauseAudioDeviceRaw(devid); [return: NativeTypeName("bool")] [Transformed] @@ -51867,6 +52630,53 @@ public static MaybeBool RenderTexture9Grid( } } + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RenderTextureAffine( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FPoint *")] FPoint* origin, + [NativeTypeName("const SDL_FPoint *")] FPoint* right, + [NativeTypeName("const SDL_FPoint *")] FPoint* down + ) => Underlying.Value!.RenderTextureAffine(renderer, texture, srcrect, origin, right, down); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderTextureAffine( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FPoint *")] Ref origin, + [NativeTypeName("const SDL_FPoint *")] Ref right, + [NativeTypeName("const SDL_FPoint *")] Ref down + ) + { + fixed (FPoint* __dsl_down = down) + fixed (FPoint* __dsl_right = right) + fixed (FPoint* __dsl_origin = origin) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTextureAffine( + renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_origin, + __dsl_right, + __dsl_down + ); + } + } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] [MethodImpl( @@ -52085,16 +52895,16 @@ public static byte RestoreWindowRaw(WindowHandle window) => MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static MaybeBool ResumeAudioDevice( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => Underlying.Value!.ResumeAudioDevice(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.ResumeAudioDevice(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - Underlying.Value!.ResumeAudioDeviceRaw(dev); + public static byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + Underlying.Value!.ResumeAudioDeviceRaw(devid); [return: NativeTypeName("bool")] [Transformed] @@ -52343,6 +53153,36 @@ public static byte RunHapticEffectRaw( [NativeTypeName("Uint32")] uint iterations ) => Underlying.Value!.RunHapticEffectRaw(haptic, effect, iterations); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + void* userdata, + [NativeTypeName("bool")] byte wait_complete + ) => Underlying.Value!.RunOnMainThread(callback, userdata, wait_complete); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + Ref userdata, + [NativeTypeName("bool")] MaybeBool wait_complete + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (MaybeBool) + (byte)RunOnMainThread(callback, __dsl_userdata, (byte)wait_complete); + } + } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl( @@ -52400,6 +53240,67 @@ public static MaybeBool SaveBMPIO( } } + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SaveFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize + ) => Underlying.Value!.SaveFile(file, data, datasize); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SaveFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_file = file) + { + return (MaybeBool)(byte)SaveFile(__dsl_file, __dsl_data, datasize); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] byte closeio + ) => Underlying.Value!.SaveFileIO(src, data, datasize, closeio); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] MaybeBool closeio + ) + { + fixed (void* __dsl_data = data) + { + return (MaybeBool)(byte)SaveFileIO(src, __dsl_data, datasize, (byte)closeio); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -53382,6 +54283,27 @@ public static MaybeBool SetGamepadSensorEnabled( [NativeTypeName("bool")] MaybeBool enabled ) => Underlying.Value!.SetGamepadSensorEnabled(gamepad, type, enabled); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetGPUAllowedFramesInFlight( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => Underlying.Value!.SetGPUAllowedFramesInFlight(device, allowed_frames_in_flight); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetGPUAllowedFramesInFlightRaw( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => Underlying.Value!.SetGPUAllowedFramesInFlightRaw(device, allowed_frames_in_flight); + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUBlendConstants")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -55397,6 +56319,35 @@ public static MaybeBool ShouldQuit(Ref state) )] public static byte ShowCursorRaw() => Underlying.Value!.ShowCursorRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + void* userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.ShowFileDialogWithProperties(type, callback, userdata, props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + Ref userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (void* __dsl_userdata = userdata) + { + ShowFileDialogWithProperties(type, callback, __dsl_userdata, props); + } + } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl( @@ -55989,6 +56940,49 @@ public static Ptr Strdup([NativeTypeName("const char *")] Ref str) } } + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte StretchSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => Underlying.Value!.StretchSurface(src, srcrect, dst, dstrect, scaleMode); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool StretchSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte)StretchSurface( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -56385,10 +57379,10 @@ public static double Strtod( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static sbyte* StrtokR( - [NativeTypeName("char *")] sbyte* s1, - [NativeTypeName("const char *")] sbyte* s2, + [NativeTypeName("char *")] sbyte* str, + [NativeTypeName("const char *")] sbyte* delim, [NativeTypeName("char **")] sbyte** saveptr - ) => Underlying.Value!.StrtokR(s1, s2, saveptr); + ) => Underlying.Value!.StrtokR(str, delim, saveptr); [return: NativeTypeName("char *")] [Transformed] @@ -56397,16 +57391,16 @@ public static double Strtod( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static Ptr StrtokR( - [NativeTypeName("char *")] Ref s1, - [NativeTypeName("const char *")] Ref s2, + [NativeTypeName("char *")] Ref str, + [NativeTypeName("const char *")] Ref delim, [NativeTypeName("char **")] Ref2D saveptr ) { fixed (sbyte** __dsl_saveptr = saveptr) - fixed (sbyte* __dsl_s2 = s2) - fixed (sbyte* __dsl_s1 = s1) + fixed (sbyte* __dsl_delim = delim) + fixed (sbyte* __dsl_str = str) { - return (sbyte*)StrtokR(__dsl_s1, __dsl_s2, __dsl_saveptr); + return (sbyte*)StrtokR(__dsl_str, __dsl_delim, __dsl_saveptr); } } @@ -57005,15 +57999,20 @@ public static void UnbindAudioStream(AudioStreamHandle stream) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void UnbindAudioStreams(AudioStreamHandle* streams, int num_streams) => - Underlying.Value!.UnbindAudioStreams(streams, num_streams); + public static void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, + int num_streams + ) => Underlying.Value!.UnbindAudioStreams(streams, num_streams); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void UnbindAudioStreams(Ref streams, int num_streams) + public static void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, + int num_streams + ) { fixed (AudioStreamHandle* __dsl_streams = streams) { @@ -57855,6 +58854,55 @@ public static MaybeBool VulkanLoadLibrary( )] public static void VulkanUnloadLibrary() => Underlying.Value!.VulkanUnloadLibrary(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + GPUTextureHandle* swapchain_texture, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_width, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_height + ) => + Underlying.Value!.WaitAndAcquireGPUSwapchainTexture( + command_buffer, + window, + swapchain_texture, + swapchain_texture_width, + swapchain_texture_height + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + Ref swapchain_texture, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_width, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_height + ) + { + fixed (uint* __dsl_swapchain_texture_height = swapchain_texture_height) + fixed (uint* __dsl_swapchain_texture_width = swapchain_texture_width) + fixed (GPUTextureHandle* __dsl_swapchain_texture = swapchain_texture) + { + return (MaybeBool) + (byte)WaitAndAcquireGPUSwapchainTexture( + command_buffer, + window, + __dsl_swapchain_texture, + __dsl_swapchain_texture_width, + __dsl_swapchain_texture_height + ); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -57982,6 +59030,25 @@ public static MaybeBool WaitForGPUIdle(GPUDeviceHandle device) => public static byte WaitForGPUIdleRaw(GPUDeviceHandle device) => Underlying.Value!.WaitForGPUIdleRaw(device); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WaitForGPUSwapchain( + GPUDeviceHandle device, + WindowHandle window + ) => Underlying.Value!.WaitForGPUSwapchain(device, window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte WaitForGPUSwapchainRaw(GPUDeviceHandle device, WindowHandle window) => + Underlying.Value!.WaitForGPUSwapchainRaw(device, window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitProcess")] [MethodImpl( @@ -59548,6 +60615,11 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String PropWindowWaylandSurfacePointer => "SDL.window.wayland.surface"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_WAYLAND_VIEWPORT_POINTER \"SDL.window.wayland.viewport\"" + )] + public static Utf8String PropWindowWaylandViewportPointer => "SDL.window.wayland.viewport"u8; + [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_EGL_WINDOW_POINTER \"SDL.window.wayland.egl_window\"" )] @@ -59597,6 +60669,30 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_WINDOW_SURFACE_VSYNC_ADAPTIVE (-1)")] public const int WindowSurfaceVsyncAdaptive = (-1); + [NativeTypeName("#define SDL_PROP_FILE_DIALOG_FILTERS_POINTER \"SDL.filedialog.filters\"")] + public static Utf8String PropFileDialogFiltersPointer => "SDL.filedialog.filters"u8; + + [NativeTypeName("#define SDL_PROP_FILE_DIALOG_NFILTERS_NUMBER \"SDL.filedialog.nfilters\"")] + public static Utf8String PropFileDialogNfiltersNumber => "SDL.filedialog.nfilters"u8; + + [NativeTypeName("#define SDL_PROP_FILE_DIALOG_WINDOW_POINTER \"SDL.filedialog.window\"")] + public static Utf8String PropFileDialogWindowPointer => "SDL.filedialog.window"u8; + + [NativeTypeName("#define SDL_PROP_FILE_DIALOG_LOCATION_STRING \"SDL.filedialog.location\"")] + public static Utf8String PropFileDialogLocationString => "SDL.filedialog.location"u8; + + [NativeTypeName("#define SDL_PROP_FILE_DIALOG_MANY_BOOLEAN \"SDL.filedialog.many\"")] + public static Utf8String PropFileDialogManyBoolean => "SDL.filedialog.many"u8; + + [NativeTypeName("#define SDL_PROP_FILE_DIALOG_TITLE_STRING \"SDL.filedialog.title\"")] + public static Utf8String PropFileDialogTitleString => "SDL.filedialog.title"u8; + + [NativeTypeName("#define SDL_PROP_FILE_DIALOG_ACCEPT_STRING \"SDL.filedialog.accept\"")] + public static Utf8String PropFileDialogAcceptString => "SDL.filedialog.accept"u8; + + [NativeTypeName("#define SDL_PROP_FILE_DIALOG_CANCEL_STRING \"SDL.filedialog.cancel\"")] + public static Utf8String PropFileDialogCancelString => "SDL.filedialog.cancel"u8; + [NativeTypeName("#define SDL_STANDARD_GRAVITY 9.80665f")] public const float StandardGravity = 9.80665f; @@ -59679,7 +60775,10 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropGamepadCapTriggerRumbleBoolean => "SDL.joystick.cap.trigger_rumble"u8; - [NativeTypeName("#define SDLK_SCANCODE_MASK (1u<<30)")] + [NativeTypeName("#define SDLK_EXTENDED_MASK (1u << 29)")] + public const uint KExtendedMask = (1U << 29); + + [NativeTypeName("#define SDLK_SCANCODE_MASK (1u << 30)")] public const uint KScancodeMask = (1U << 30); [NativeTypeName("#define SDLK_UNKNOWN 0x00000000u")] @@ -60429,6 +61528,27 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDLK_ENDCALL 0x40000122u")] public const uint KEndcall = 0x40000122U; + [NativeTypeName("#define SDLK_LEFT_TAB 0x20000001u")] + public const uint KLeftTab = 0x20000001U; + + [NativeTypeName("#define SDLK_LEVEL5_SHIFT 0x20000002u")] + public const uint KLevel5Shift = 0x20000002U; + + [NativeTypeName("#define SDLK_MULTI_KEY_COMPOSE 0x20000003u")] + public const uint KMultiKeyCompose = 0x20000003U; + + [NativeTypeName("#define SDLK_LMETA 0x20000004u")] + public const uint KLmeta = 0x20000004U; + + [NativeTypeName("#define SDLK_RMETA 0x20000005u")] + public const uint KRmeta = 0x20000005U; + + [NativeTypeName("#define SDLK_LHYPER 0x20000006u")] + public const uint KLhyper = 0x20000006U; + + [NativeTypeName("#define SDLK_RHYPER 0x20000007u")] + public const uint KRhyper = 0x20000007U; + [NativeTypeName("#define SDL_KMOD_NONE 0x0000u")] public const uint KmodNone = 0x0000U; @@ -60438,6 +61558,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_KMOD_RSHIFT 0x0002u")] public const uint KmodRshift = 0x0002U; + [NativeTypeName("#define SDL_KMOD_LEVEL5 0x0004u")] + public const uint KmodLevel5 = 0x0004U; + [NativeTypeName("#define SDL_KMOD_LCTRL 0x0040u")] public const uint KmodLctrl = 0x0040U; @@ -60530,6 +61653,18 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_BUTTON_X2MASK SDL_BUTTON_MASK(SDL_BUTTON_X2)")] public const uint ButtonX2Mask = (1U << ((5) - 1)); + [NativeTypeName("#define SDL_TOUCH_MOUSEID ((SDL_MouseID)-1)")] + public const uint TouchMouseid = unchecked((uint)(-1)); + + [NativeTypeName("#define SDL_MOUSE_TOUCHID ((SDL_TouchID)-1)")] + public const ulong MouseTouchid = unchecked((ulong)(-1)); + + [NativeTypeName("#define SDL_PEN_MOUSEID ((SDL_MouseID)-2)")] + public const uint PenMouseid = unchecked((uint)(-2)); + + [NativeTypeName("#define SDL_PEN_TOUCHID ((SDL_TouchID)-2)")] + public const ulong PenTouchid = unchecked((ulong)(-2)); + [NativeTypeName("#define SDL_PEN_INPUT_DOWN (1u << 0)")] public const uint PenInputDown = (1U << 0); @@ -60551,12 +61686,6 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_PEN_INPUT_ERASER_TIP (1u << 30)")] public const uint PenInputEraserTip = (1U << 30); - [NativeTypeName("#define SDL_TOUCH_MOUSEID ((SDL_MouseID)-1)")] - public const uint TouchMouseid = unchecked((uint)(-1)); - - [NativeTypeName("#define SDL_MOUSE_TOUCHID ((SDL_TouchID)-1)")] - public const ulong MouseTouchid = unchecked((ulong)(-1)); - [NativeTypeName("#define SDL_GLOB_CASEINSENSITIVE (1u << 0)")] public const uint GlobCaseinsensitive = (1U << 0); @@ -60634,42 +61763,6 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_GPU_COLORCOMPONENT_A (1u << 3)")] public const uint GpuColorcomponentA = (1U << 3); - [NativeTypeName( - "#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_R_FLOAT \"SDL.gpu.createtexture.d3d12.clear.r\"" - )] - public static Utf8String PropGpuCreatetextureD3D12ClearRFloat => - "SDL.gpu.createtexture.d3d12.clear.r"u8; - - [NativeTypeName( - "#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_G_FLOAT \"SDL.gpu.createtexture.d3d12.clear.g\"" - )] - public static Utf8String PropGpuCreatetextureD3D12ClearGFloat => - "SDL.gpu.createtexture.d3d12.clear.g"u8; - - [NativeTypeName( - "#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_B_FLOAT \"SDL.gpu.createtexture.d3d12.clear.b\"" - )] - public static Utf8String PropGpuCreatetextureD3D12ClearBFloat => - "SDL.gpu.createtexture.d3d12.clear.b"u8; - - [NativeTypeName( - "#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_A_FLOAT \"SDL.gpu.createtexture.d3d12.clear.a\"" - )] - public static Utf8String PropGpuCreatetextureD3D12ClearAFloat => - "SDL.gpu.createtexture.d3d12.clear.a"u8; - - [NativeTypeName( - "#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_DEPTH_FLOAT \"SDL.gpu.createtexture.d3d12.clear.depth\"" - )] - public static Utf8String PropGpuCreatetextureD3D12ClearDepthFloat => - "SDL.gpu.createtexture.d3d12.clear.depth"u8; - - [NativeTypeName( - "#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_STENCIL_UINT8 \"SDL.gpu.createtexture.d3d12.clear.stencil\"" - )] - public static Utf8String PropGpuCreatetextureD3D12ClearStencilUint8 => - "SDL.gpu.createtexture.d3d12.clear.stencil"u8; - [NativeTypeName( "#define SDL_PROP_GPU_DEVICE_CREATE_DEBUGMODE_BOOLEAN \"SDL.gpu.device.create.debugmode\"" )] @@ -60729,6 +61822,80 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropGpuDeviceCreateD3D12SemanticNameString => "SDL.gpu.device.create.d3d12.semantic"u8; + [NativeTypeName( + "#define SDL_PROP_GPU_COMPUTEPIPELINE_CREATE_NAME_STRING \"SDL.gpu.computepipeline.create.name\"" + )] + public static Utf8String PropGpuComputepipelineCreateNameString => + "SDL.gpu.computepipeline.create.name"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_GRAPHICSPIPELINE_CREATE_NAME_STRING \"SDL.gpu.graphicspipeline.create.name\"" + )] + public static Utf8String PropGpuGraphicspipelineCreateNameString => + "SDL.gpu.graphicspipeline.create.name"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_SAMPLER_CREATE_NAME_STRING \"SDL.gpu.sampler.create.name\"" + )] + public static Utf8String PropGpuSamplerCreateNameString => "SDL.gpu.sampler.create.name"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_SHADER_CREATE_NAME_STRING \"SDL.gpu.shader.create.name\"" + )] + public static Utf8String PropGpuShaderCreateNameString => "SDL.gpu.shader.create.name"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_R_FLOAT \"SDL.gpu.texture.create.d3d12.clear.r\"" + )] + public static Utf8String PropGpuTextureCreateD3D12ClearRFloat => + "SDL.gpu.texture.create.d3d12.clear.r"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_G_FLOAT \"SDL.gpu.texture.create.d3d12.clear.g\"" + )] + public static Utf8String PropGpuTextureCreateD3D12ClearGFloat => + "SDL.gpu.texture.create.d3d12.clear.g"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_B_FLOAT \"SDL.gpu.texture.create.d3d12.clear.b\"" + )] + public static Utf8String PropGpuTextureCreateD3D12ClearBFloat => + "SDL.gpu.texture.create.d3d12.clear.b"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_A_FLOAT \"SDL.gpu.texture.create.d3d12.clear.a\"" + )] + public static Utf8String PropGpuTextureCreateD3D12ClearAFloat => + "SDL.gpu.texture.create.d3d12.clear.a"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_DEPTH_FLOAT \"SDL.gpu.texture.create.d3d12.clear.depth\"" + )] + public static Utf8String PropGpuTextureCreateD3D12ClearDepthFloat => + "SDL.gpu.texture.create.d3d12.clear.depth"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_STENCIL_UINT8 \"SDL.gpu.texture.create.d3d12.clear.stencil\"" + )] + public static Utf8String PropGpuTextureCreateD3D12ClearStencilUint8 => + "SDL.gpu.texture.create.d3d12.clear.stencil"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_TEXTURE_CREATE_NAME_STRING \"SDL.gpu.texture.create.name\"" + )] + public static Utf8String PropGpuTextureCreateNameString => "SDL.gpu.texture.create.name"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_BUFFER_CREATE_NAME_STRING \"SDL.gpu.buffer.create.name\"" + )] + public static Utf8String PropGpuBufferCreateNameString => "SDL.gpu.buffer.create.name"u8; + + [NativeTypeName( + "#define SDL_PROP_GPU_TRANSFERBUFFER_CREATE_NAME_STRING \"SDL.gpu.transferbuffer.create.name\"" + )] + public static Utf8String PropGpuTransferbufferCreateNameString => + "SDL.gpu.transferbuffer.create.name"u8; + [NativeTypeName("#define SDL_HAPTIC_CONSTANT (1u<<0)")] public const uint HapticConstant = (1U << 0); @@ -60818,6 +61985,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_ANDROID_BLOCK_ON_PAUSE \"SDL_ANDROID_BLOCK_ON_PAUSE\"")] public static Utf8String HintAndroidBlockOnPause => "SDL_ANDROID_BLOCK_ON_PAUSE"u8; + [NativeTypeName("#define SDL_HINT_ANDROID_LOW_LATENCY_AUDIO \"SDL_ANDROID_LOW_LATENCY_AUDIO\"")] + public static Utf8String HintAndroidLowLatencyAudio => "SDL_ANDROID_LOW_LATENCY_AUDIO"u8; + [NativeTypeName("#define SDL_HINT_ANDROID_TRAP_BACK_BUTTON \"SDL_ANDROID_TRAP_BACK_BUTTON\"")] public static Utf8String HintAndroidTrapBackButton => "SDL_ANDROID_TRAP_BACK_BUTTON"u8; @@ -60841,6 +62011,18 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE \"SDL_AUDIO_ALSA_DEFAULT_DEVICE\"")] public static Utf8String HintAudioAlsaDefaultDevice => "SDL_AUDIO_ALSA_DEFAULT_DEVICE"u8; + [NativeTypeName( + "#define SDL_HINT_AUDIO_ALSA_DEFAULT_PLAYBACK_DEVICE \"SDL_AUDIO_ALSA_DEFAULT_PLAYBACK_DEVICE\"" + )] + public static Utf8String HintAudioAlsaDefaultPlaybackDevice => + "SDL_AUDIO_ALSA_DEFAULT_PLAYBACK_DEVICE"u8; + + [NativeTypeName( + "#define SDL_HINT_AUDIO_ALSA_DEFAULT_RECORDING_DEVICE \"SDL_AUDIO_ALSA_DEFAULT_RECORDING_DEVICE\"" + )] + public static Utf8String HintAudioAlsaDefaultRecordingDevice => + "SDL_AUDIO_ALSA_DEFAULT_RECORDING_DEVICE"u8; + [NativeTypeName("#define SDL_HINT_AUDIO_CATEGORY \"SDL_AUDIO_CATEGORY\"")] public static Utf8String HintAudioCategory => "SDL_AUDIO_CATEGORY"u8; @@ -61040,6 +62222,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_JOYSTICK_DEVICE \"SDL_JOYSTICK_DEVICE\"")] public static Utf8String HintJoystickDevice => "SDL_JOYSTICK_DEVICE"u8; + [NativeTypeName("#define SDL_HINT_JOYSTICK_ENHANCED_REPORTS \"SDL_JOYSTICK_ENHANCED_REPORTS\"")] + public static Utf8String HintJoystickEnhancedReports => "SDL_JOYSTICK_ENHANCED_REPORTS"u8; + [NativeTypeName( "#define SDL_HINT_JOYSTICK_FLIGHTSTICK_DEVICES \"SDL_JOYSTICK_FLIGHTSTICK_DEVICES\"" )] @@ -61117,11 +62302,6 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String HintJoystickHidapiPs4ReportInterval => "SDL_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL"u8; - [NativeTypeName( - "#define SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE \"SDL_JOYSTICK_HIDAPI_PS4_RUMBLE\"" - )] - public static Utf8String HintJoystickHidapiPs4Rumble => "SDL_JOYSTICK_HIDAPI_PS4_RUMBLE"u8; - [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS5 \"SDL_JOYSTICK_HIDAPI_PS5\"")] public static Utf8String HintJoystickHidapiPs5 => "SDL_JOYSTICK_HIDAPI_PS5"u8; @@ -61131,11 +62311,6 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String HintJoystickHidapiPs5PlayerLed => "SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED"u8; - [NativeTypeName( - "#define SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE \"SDL_JOYSTICK_HIDAPI_PS5_RUMBLE\"" - )] - public static Utf8String HintJoystickHidapiPs5Rumble => "SDL_JOYSTICK_HIDAPI_PS5_RUMBLE"u8; - [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_SHIELD \"SDL_JOYSTICK_HIDAPI_SHIELD\"")] public static Utf8String HintJoystickHidapiShield => "SDL_JOYSTICK_HIDAPI_SHIELD"u8; @@ -61145,6 +62320,12 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_STEAM \"SDL_JOYSTICK_HIDAPI_STEAM\"")] public static Utf8String HintJoystickHidapiSteam => "SDL_JOYSTICK_HIDAPI_STEAM"u8; + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_STEAM_HOME_LED \"SDL_JOYSTICK_HIDAPI_STEAM_HOME_LED\"" + )] + public static Utf8String HintJoystickHidapiSteamHomeLed => + "SDL_JOYSTICK_HIDAPI_STEAM_HOME_LED"u8; + [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_STEAMDECK \"SDL_JOYSTICK_HIDAPI_STEAMDECK\"")] public static Utf8String HintJoystickHidapiSteamdeck => "SDL_JOYSTICK_HIDAPI_STEAMDECK"u8; @@ -61298,6 +62479,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH \"SDL_MAC_OPENGL_ASYNC_DISPATCH\"")] public static Utf8String HintMacOpenglAsyncDispatch => "SDL_MAC_OPENGL_ASYNC_DISPATCH"u8; + [NativeTypeName("#define SDL_HINT_MAC_OPTION_AS_ALT \"SDL_MAC_OPTION_AS_ALT\"")] + public static Utf8String HintMacOptionAsAlt => "SDL_MAC_OPTION_AS_ALT"u8; + [NativeTypeName("#define SDL_HINT_MAC_SCROLL_MOMENTUM \"SDL_MAC_SCROLL_MOMENTUM\"")] public static Utf8String HintMacScrollMomentum => "SDL_MAC_SCROLL_MOMENTUM"u8; @@ -61313,6 +62497,11 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_MOUSE_DOUBLE_CLICK_TIME \"SDL_MOUSE_DOUBLE_CLICK_TIME\"")] public static Utf8String HintMouseDoubleClickTime => "SDL_MOUSE_DOUBLE_CLICK_TIME"u8; + [NativeTypeName( + "#define SDL_HINT_MOUSE_DEFAULT_SYSTEM_CURSOR \"SDL_MOUSE_DEFAULT_SYSTEM_CURSOR\"" + )] + public static Utf8String HintMouseDefaultSystemCursor => "SDL_MOUSE_DEFAULT_SYSTEM_CURSOR"u8; + [NativeTypeName( "#define SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE \"SDL_MOUSE_EMULATE_WARP_WITH_RELATIVE\"" )] @@ -61330,9 +62519,6 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String HintMouseRelativeModeCenter => "SDL_MOUSE_RELATIVE_MODE_CENTER"u8; - [NativeTypeName("#define SDL_HINT_MOUSE_RELATIVE_MODE_WARP \"SDL_MOUSE_RELATIVE_MODE_WARP\"")] - public static Utf8String HintMouseRelativeModeWarp => "SDL_MOUSE_RELATIVE_MODE_WARP"u8; - [NativeTypeName( "#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE \"SDL_MOUSE_RELATIVE_SPEED_SCALE\"" )] @@ -61354,11 +62540,6 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String HintMouseRelativeCursorVisible => "SDL_MOUSE_RELATIVE_CURSOR_VISIBLE"u8; - [NativeTypeName( - "#define SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL \"SDL_MOUSE_RELATIVE_CLIP_INTERVAL\"" - )] - public static Utf8String HintMouseRelativeClipInterval => "SDL_MOUSE_RELATIVE_CLIP_INTERVAL"u8; - [NativeTypeName("#define SDL_HINT_MOUSE_TOUCH_EVENTS \"SDL_MOUSE_TOUCH_EVENTS\"")] public static Utf8String HintMouseTouchEvents => "SDL_MOUSE_TOUCH_EVENTS"u8; @@ -61371,6 +62552,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_OPENGL_LIBRARY \"SDL_OPENGL_LIBRARY\"")] public static Utf8String HintOpenglLibrary => "SDL_OPENGL_LIBRARY"u8; + [NativeTypeName("#define SDL_HINT_EGL_LIBRARY \"SDL_EGL_LIBRARY\"")] + public static Utf8String HintEglLibrary => "SDL_EGL_LIBRARY"u8; + [NativeTypeName("#define SDL_HINT_OPENGL_ES_DRIVER \"SDL_OPENGL_ES_DRIVER\"")] public static Utf8String HintOpenglEsDriver => "SDL_OPENGL_ES_DRIVER"u8; @@ -61498,6 +62682,12 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String HintVideoMacFullscreenSpaces => "SDL_VIDEO_MAC_FULLSCREEN_SPACES"u8; + [NativeTypeName( + "#define SDL_HINT_VIDEO_MAC_FULLSCREEN_MENU_VISIBILITY \"SDL_VIDEO_MAC_FULLSCREEN_MENU_VISIBILITY\"" + )] + public static Utf8String HintVideoMacFullscreenMenuVisibility => + "SDL_VIDEO_MAC_FULLSCREEN_MENU_VISIBILITY"u8; + [NativeTypeName( "#define SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS \"SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS\"" )] @@ -61686,6 +62876,12 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_ASSERT \"SDL_ASSERT\"")] public static Utf8String HintAssert => "SDL_ASSERT"u8; + [NativeTypeName("#define SDL_HINT_PEN_MOUSE_EVENTS \"SDL_PEN_MOUSE_EVENTS\"")] + public static Utf8String HintPenMouseEvents => "SDL_PEN_MOUSE_EVENTS"u8; + + [NativeTypeName("#define SDL_HINT_PEN_TOUCH_EVENTS \"SDL_PEN_TOUCH_EVENTS\"")] + public static Utf8String HintPenTouchEvents => "SDL_PEN_TOUCH_EVENTS"u8; + [NativeTypeName("#define SDL_INIT_AUDIO 0x00000010u")] public const uint InitAudio = 0x00000010U; @@ -61989,6 +63185,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropRendererVulkanSwapchainImageCountNumber => "SDL.renderer.vulkan.swapchain_image_count"u8; + [NativeTypeName("#define SDL_PROP_RENDERER_GPU_DEVICE_POINTER \"SDL.renderer.gpu.device\"")] + public static Utf8String PropRendererGpuDevicePointer => "SDL.renderer.gpu.device"u8; + [NativeTypeName( "#define SDL_PROP_TEXTURE_CREATE_COLORSPACE_NUMBER \"SDL.texture.create.colorspace\"" )] @@ -62255,16 +63454,16 @@ public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_MAJOR_VERSION 3")] public const int MajorVersion = 3; - [NativeTypeName("#define SDL_MINOR_VERSION 1")] - public const int MinorVersion = 1; + [NativeTypeName("#define SDL_MINOR_VERSION 2")] + public const int MinorVersion = 2; - [NativeTypeName("#define SDL_MICRO_VERSION 6")] - public const int MicroVersion = 6; + [NativeTypeName("#define SDL_MICRO_VERSION 4")] + public const int MicroVersion = 4; [NativeTypeName( "#define SDL_VERSION SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION)" )] - public const int Version = ((3) * 1000000 + (1) * 1000 + (6)); + public const int Version = ((3) * 1000000 + (2) * 1000 + (4)); public static bool PointInRect( [NativeTypeName("const SDL_Point *")] Point* p, @@ -62392,7 +63591,7 @@ public static bool RectsEqual( public static bool RectsEqualEpsilon( [NativeTypeName("const SDL_FRect *")] FRect* a, [NativeTypeName("const SDL_FRect *")] FRect* b, - [NativeTypeName("const float")] float epsilon + float epsilon ) { return ( @@ -62417,7 +63616,7 @@ public static bool RectsEqualEpsilon( public static bool RectsEqualEpsilon( [NativeTypeName("const SDL_FRect *")] Ref a, [NativeTypeName("const SDL_FRect *")] Ref b, - [NativeTypeName("const float")] float epsilon + float epsilon ) { fixed (FRect* __dsl_b = b) @@ -63373,32 +64572,59 @@ public static uint AttachVirtualJoystick( ) => DllImport.AttachVirtualJoystick(desc); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - (MaybeBool)(byte)((ISdl)this).AudioDevicePausedRaw(dev); + MaybeBool ISdl.AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + (MaybeBool)(byte)((ISdl)this).AudioDevicePausedRaw(devid); [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static MaybeBool AudioDevicePaused( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => DllImport.AudioDevicePaused(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => DllImport.AudioDevicePaused(devid); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - byte ISdl.AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + byte ISdl.AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( (delegate* unmanaged)( _slots[27] is not null and var loadedFnPtr ? loadedFnPtr : _slots[27] = nativeContext.LoadFunction("SDL_AudioDevicePaused", "SDL3") ) - )(dev); + )(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - DllImport.AudioDevicePausedRaw(dev); + public static byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.AudioDevicePausedRaw(devid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.AudioStreamDevicePaused(AudioStreamHandle stream) => + (MaybeBool)(byte)((ISdl)this).AudioStreamDevicePausedRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool AudioStreamDevicePaused(AudioStreamHandle stream) => + DllImport.AudioStreamDevicePaused(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.AudioStreamDevicePausedRaw(AudioStreamHandle stream) => + ( + (delegate* unmanaged)( + _slots[28] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[28] = nativeContext.LoadFunction("SDL_AudioStreamDevicePaused", "SDL3") + ) + )(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioStreamDevicePaused")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte AudioStreamDevicePausedRaw(AudioStreamHandle stream) => + DllImport.AudioStreamDevicePausedRaw(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GPUComputePassHandle ISdl.BeginGPUComputePass( @@ -63418,9 +64644,9 @@ GPUComputePassHandle ISdl.BeginGPUComputePass( GPUStorageBufferReadWriteBinding*, uint, GPUComputePassHandle>)( - _slots[28] is not null and var loadedFnPtr + _slots[29] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[28] = nativeContext.LoadFunction("SDL_BeginGPUComputePass", "SDL3") + : _slots[29] = nativeContext.LoadFunction("SDL_BeginGPUComputePass", "SDL3") ) )( command_buffer, @@ -63504,9 +64730,9 @@ public static GPUComputePassHandle BeginGPUComputePass( GPUCopyPassHandle ISdl.BeginGPUCopyPass(GPUCommandBufferHandle command_buffer) => ( (delegate* unmanaged)( - _slots[29] is not null and var loadedFnPtr + _slots[30] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[29] = nativeContext.LoadFunction("SDL_BeginGPUCopyPass", "SDL3") + : _slots[30] = nativeContext.LoadFunction("SDL_BeginGPUCopyPass", "SDL3") ) )(command_buffer); @@ -63530,9 +64756,9 @@ GPURenderPassHandle ISdl.BeginGPURenderPass( uint, GPUDepthStencilTargetInfo*, GPURenderPassHandle>)( - _slots[30] is not null and var loadedFnPtr + _slots[31] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[30] = nativeContext.LoadFunction("SDL_BeginGPURenderPass", "SDL3") + : _slots[31] = nativeContext.LoadFunction("SDL_BeginGPURenderPass", "SDL3") ) )(command_buffer, color_target_infos, num_color_targets, depth_stencil_target_info); @@ -63617,9 +64843,9 @@ AudioStreamHandle stream ) => ( (delegate* unmanaged)( - _slots[31] is not null and var loadedFnPtr + _slots[32] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[31] = nativeContext.LoadFunction("SDL_BindAudioStream", "SDL3") + : _slots[32] = nativeContext.LoadFunction("SDL_BindAudioStream", "SDL3") ) )(devid, stream); @@ -63634,14 +64860,14 @@ AudioStreamHandle stream [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, int num_streams ) => ( (delegate* unmanaged)( - _slots[32] is not null and var loadedFnPtr + _slots[33] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[32] = nativeContext.LoadFunction("SDL_BindAudioStreams", "SDL3") + : _slots[33] = nativeContext.LoadFunction("SDL_BindAudioStreams", "SDL3") ) )(devid, streams, num_streams); @@ -63650,14 +64876,14 @@ _slots[32] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, int num_streams ) => DllImport.BindAudioStreams(devid, streams, num_streams); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] MaybeBool ISdl.BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, int num_streams ) { @@ -63674,7 +64900,7 @@ int num_streams [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, int num_streams ) => DllImport.BindAudioStreams(devid, streams, num_streams); @@ -63685,9 +64911,9 @@ GPUComputePipelineHandle compute_pipeline ) => ( (delegate* unmanaged)( - _slots[33] is not null and var loadedFnPtr + _slots[34] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[33] = nativeContext.LoadFunction("SDL_BindGPUComputePipeline", "SDL3") + : _slots[34] = nativeContext.LoadFunction("SDL_BindGPUComputePipeline", "SDL3") ) )(compute_pass, compute_pipeline); @@ -63713,9 +64939,9 @@ void ISdl.BindGPUComputeSamplers( GPUTextureSamplerBinding*, uint, void>)( - _slots[34] is not null and var loadedFnPtr + _slots[35] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[34] = nativeContext.LoadFunction("SDL_BindGPUComputeSamplers", "SDL3") + : _slots[35] = nativeContext.LoadFunction("SDL_BindGPUComputeSamplers", "SDL3") ) )(compute_pass, first_slot, texture_sampler_bindings, num_bindings); @@ -63781,9 +65007,9 @@ void ISdl.BindGPUComputeStorageBuffers( ) => ( (delegate* unmanaged)( - _slots[35] is not null and var loadedFnPtr + _slots[36] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[35] = nativeContext.LoadFunction( + : _slots[36] = nativeContext.LoadFunction( "SDL_BindGPUComputeStorageBuffers", "SDL3" ) @@ -63849,9 +65075,9 @@ void ISdl.BindGPUComputeStorageTextures( ) => ( (delegate* unmanaged)( - _slots[36] is not null and var loadedFnPtr + _slots[37] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[36] = nativeContext.LoadFunction( + : _slots[37] = nativeContext.LoadFunction( "SDL_BindGPUComputeStorageTextures", "SDL3" ) @@ -63918,9 +65144,9 @@ void ISdl.BindGPUFragmentSamplers( ) => ( (delegate* unmanaged)( - _slots[37] is not null and var loadedFnPtr + _slots[38] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[37] = nativeContext.LoadFunction("SDL_BindGPUFragmentSamplers", "SDL3") + : _slots[38] = nativeContext.LoadFunction("SDL_BindGPUFragmentSamplers", "SDL3") ) )(render_pass, first_slot, texture_sampler_bindings, num_bindings); @@ -63986,9 +65212,9 @@ void ISdl.BindGPUFragmentStorageBuffers( ) => ( (delegate* unmanaged)( - _slots[38] is not null and var loadedFnPtr + _slots[39] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[38] = nativeContext.LoadFunction( + : _slots[39] = nativeContext.LoadFunction( "SDL_BindGPUFragmentStorageBuffers", "SDL3" ) @@ -64054,9 +65280,9 @@ void ISdl.BindGPUFragmentStorageTextures( ) => ( (delegate* unmanaged)( - _slots[39] is not null and var loadedFnPtr + _slots[40] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[39] = nativeContext.LoadFunction( + : _slots[40] = nativeContext.LoadFunction( "SDL_BindGPUFragmentStorageTextures", "SDL3" ) @@ -64120,9 +65346,9 @@ GPUGraphicsPipelineHandle graphics_pipeline ) => ( (delegate* unmanaged)( - _slots[40] is not null and var loadedFnPtr + _slots[41] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[40] = nativeContext.LoadFunction("SDL_BindGPUGraphicsPipeline", "SDL3") + : _slots[41] = nativeContext.LoadFunction("SDL_BindGPUGraphicsPipeline", "SDL3") ) )(render_pass, graphics_pipeline); @@ -64145,9 +65371,9 @@ GPUIndexElementSize index_element_size GPUBufferBinding*, GPUIndexElementSize, void>)( - _slots[41] is not null and var loadedFnPtr + _slots[42] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[41] = nativeContext.LoadFunction("SDL_BindGPUIndexBuffer", "SDL3") + : _slots[42] = nativeContext.LoadFunction("SDL_BindGPUIndexBuffer", "SDL3") ) )(render_pass, binding, index_element_size); @@ -64190,9 +65416,9 @@ void ISdl.BindGPUVertexBuffers( ) => ( (delegate* unmanaged)( - _slots[42] is not null and var loadedFnPtr + _slots[43] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[42] = nativeContext.LoadFunction("SDL_BindGPUVertexBuffers", "SDL3") + : _slots[43] = nativeContext.LoadFunction("SDL_BindGPUVertexBuffers", "SDL3") ) )(render_pass, first_slot, bindings, num_bindings); @@ -64244,9 +65470,9 @@ void ISdl.BindGPUVertexSamplers( ) => ( (delegate* unmanaged)( - _slots[43] is not null and var loadedFnPtr + _slots[44] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[43] = nativeContext.LoadFunction("SDL_BindGPUVertexSamplers", "SDL3") + : _slots[44] = nativeContext.LoadFunction("SDL_BindGPUVertexSamplers", "SDL3") ) )(render_pass, first_slot, texture_sampler_bindings, num_bindings); @@ -64312,9 +65538,9 @@ void ISdl.BindGPUVertexStorageBuffers( ) => ( (delegate* unmanaged)( - _slots[44] is not null and var loadedFnPtr + _slots[45] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[44] = nativeContext.LoadFunction( + : _slots[45] = nativeContext.LoadFunction( "SDL_BindGPUVertexStorageBuffers", "SDL3" ) @@ -64380,9 +65606,9 @@ void ISdl.BindGPUVertexStorageTextures( ) => ( (delegate* unmanaged)( - _slots[45] is not null and var loadedFnPtr + _slots[46] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[45] = nativeContext.LoadFunction( + : _slots[46] = nativeContext.LoadFunction( "SDL_BindGPUVertexStorageTextures", "SDL3" ) @@ -64446,9 +65672,9 @@ void ISdl.BlitGPUTexture( ) => ( (delegate* unmanaged)( - _slots[46] is not null and var loadedFnPtr + _slots[47] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[46] = nativeContext.LoadFunction("SDL_BlitGPUTexture", "SDL3") + : _slots[47] = nativeContext.LoadFunction("SDL_BlitGPUTexture", "SDL3") ) )(command_buffer, info); @@ -64488,9 +65714,9 @@ byte ISdl.BlitSurface( ) => ( (delegate* unmanaged)( - _slots[47] is not null and var loadedFnPtr + _slots[48] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[47] = nativeContext.LoadFunction("SDL_BlitSurface", "SDL3") + : _slots[48] = nativeContext.LoadFunction("SDL_BlitSurface", "SDL3") ) )(src, srcrect, dst, dstrect); @@ -64559,9 +65785,9 @@ byte ISdl.BlitSurface9Grid( Surface*, Rect*, byte>)( - _slots[48] is not null and var loadedFnPtr + _slots[49] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[48] = nativeContext.LoadFunction("SDL_BlitSurface9Grid", "SDL3") + : _slots[49] = nativeContext.LoadFunction("SDL_BlitSurface9Grid", "SDL3") ) )( src, @@ -64679,9 +65905,9 @@ ScaleMode scaleMode ) => ( (delegate* unmanaged)( - _slots[49] is not null and var loadedFnPtr + _slots[50] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[49] = nativeContext.LoadFunction("SDL_BlitSurfaceScaled", "SDL3") + : _slots[50] = nativeContext.LoadFunction("SDL_BlitSurfaceScaled", "SDL3") ) )(src, srcrect, dst, dstrect, scaleMode); @@ -64743,9 +65969,9 @@ byte ISdl.BlitSurfaceTiled( ) => ( (delegate* unmanaged)( - _slots[50] is not null and var loadedFnPtr + _slots[51] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[50] = nativeContext.LoadFunction("SDL_BlitSurfaceTiled", "SDL3") + : _slots[51] = nativeContext.LoadFunction("SDL_BlitSurfaceTiled", "SDL3") ) )(src, srcrect, dst, dstrect); @@ -64805,9 +66031,9 @@ byte ISdl.BlitSurfaceTiledWithScale( ) => ( (delegate* unmanaged)( - _slots[51] is not null and var loadedFnPtr + _slots[52] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[51] = nativeContext.LoadFunction( + : _slots[52] = nativeContext.LoadFunction( "SDL_BlitSurfaceTiledWithScale", "SDL3" ) @@ -64876,9 +66102,9 @@ byte ISdl.BlitSurfaceUnchecked( ) => ( (delegate* unmanaged)( - _slots[52] is not null and var loadedFnPtr + _slots[53] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[52] = nativeContext.LoadFunction("SDL_BlitSurfaceUnchecked", "SDL3") + : _slots[53] = nativeContext.LoadFunction("SDL_BlitSurfaceUnchecked", "SDL3") ) )(src, srcrect, dst, dstrect); @@ -64937,9 +66163,9 @@ ScaleMode scaleMode ) => ( (delegate* unmanaged)( - _slots[53] is not null and var loadedFnPtr + _slots[54] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[53] = nativeContext.LoadFunction( + : _slots[54] = nativeContext.LoadFunction( "SDL_BlitSurfaceUncheckedScaled", "SDL3" ) @@ -64999,9 +66225,9 @@ ScaleMode scaleMode void ISdl.BroadcastCondition(ConditionHandle cond) => ( (delegate* unmanaged)( - _slots[54] is not null and var loadedFnPtr + _slots[55] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[54] = nativeContext.LoadFunction("SDL_BroadcastCondition", "SDL3") + : _slots[55] = nativeContext.LoadFunction("SDL_BroadcastCondition", "SDL3") ) )(cond); @@ -65020,9 +66246,9 @@ public static void BroadcastCondition(ConditionHandle cond) => ) => ( (delegate* unmanaged)( - _slots[55] is not null and var loadedFnPtr + _slots[56] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[55] = nativeContext.LoadFunction("SDL_bsearch", "SDL3") + : _slots[56] = nativeContext.LoadFunction("SDL_bsearch", "SDL3") ) )(key, @base, nmemb, size, compare); @@ -65074,9 +66300,9 @@ public static Ptr Bsearch( ) => ( (delegate* unmanaged)( - _slots[56] is not null and var loadedFnPtr + _slots[57] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[56] = nativeContext.LoadFunction("SDL_bsearch_r", "SDL3") + : _slots[57] = nativeContext.LoadFunction("SDL_bsearch_r", "SDL3") ) )(key, @base, nmemb, size, compare, userdata); @@ -65131,9 +66357,9 @@ uint ISdl.CalculateGPUTextureFormatSize( ) => ( (delegate* unmanaged)( - _slots[57] is not null and var loadedFnPtr + _slots[58] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[57] = nativeContext.LoadFunction( + : _slots[58] = nativeContext.LoadFunction( "SDL_CalculateGPUTextureFormatSize", "SDL3" ) @@ -65171,9 +66397,9 @@ public static Ptr Calloc( ) => ( (delegate* unmanaged)( - _slots[58] is not null and var loadedFnPtr + _slots[59] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[58] = nativeContext.LoadFunction("SDL_calloc", "SDL3") + : _slots[59] = nativeContext.LoadFunction("SDL_calloc", "SDL3") ) )(nmemb, size); @@ -65199,9 +66425,9 @@ public static MaybeBool CancelGPUCommandBuffer(GPUCommandBufferHandle comm byte ISdl.CancelGPUCommandBufferRaw(GPUCommandBufferHandle command_buffer) => ( (delegate* unmanaged)( - _slots[59] is not null and var loadedFnPtr + _slots[60] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[59] = nativeContext.LoadFunction("SDL_CancelGPUCommandBuffer", "SDL3") + : _slots[60] = nativeContext.LoadFunction("SDL_CancelGPUCommandBuffer", "SDL3") ) )(command_buffer); @@ -65215,9 +66441,9 @@ public static byte CancelGPUCommandBufferRaw(GPUCommandBufferHandle command_buff byte ISdl.CaptureMouse([NativeTypeName("bool")] byte enabled) => ( (delegate* unmanaged)( - _slots[60] is not null and var loadedFnPtr + _slots[61] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[60] = nativeContext.LoadFunction("SDL_CaptureMouse", "SDL3") + : _slots[61] = nativeContext.LoadFunction("SDL_CaptureMouse", "SDL3") ) )(enabled); @@ -65242,9 +66468,9 @@ public static MaybeBool CaptureMouse([NativeTypeName("bool")] MaybeBool ( (delegate* unmanaged)( - _slots[61] is not null and var loadedFnPtr + _slots[62] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[61] = nativeContext.LoadFunction("SDL_ceil", "SDL3") + : _slots[62] = nativeContext.LoadFunction("SDL_ceil", "SDL3") ) )(x); @@ -65256,9 +66482,9 @@ _slots[61] is not null and var loadedFnPtr float ISdl.Ceilf(float x) => ( (delegate* unmanaged)( - _slots[62] is not null and var loadedFnPtr + _slots[63] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[62] = nativeContext.LoadFunction("SDL_ceilf", "SDL3") + : _slots[63] = nativeContext.LoadFunction("SDL_ceilf", "SDL3") ) )(x); @@ -65283,9 +66509,9 @@ WindowHandle window byte ISdl.ClaimWindowForGPUDeviceRaw(GPUDeviceHandle device, WindowHandle window) => ( (delegate* unmanaged)( - _slots[63] is not null and var loadedFnPtr + _slots[64] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[63] = nativeContext.LoadFunction("SDL_ClaimWindowForGPUDevice", "SDL3") + : _slots[64] = nativeContext.LoadFunction("SDL_ClaimWindowForGPUDevice", "SDL3") ) )(device, window); @@ -65299,9 +66525,9 @@ public static byte ClaimWindowForGPUDeviceRaw(GPUDeviceHandle device, WindowHand void ISdl.CleanupTLS() => ( (delegate* unmanaged)( - _slots[64] is not null and var loadedFnPtr + _slots[65] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[64] = nativeContext.LoadFunction("SDL_CleanupTLS", "SDL3") + : _slots[65] = nativeContext.LoadFunction("SDL_CleanupTLS", "SDL3") ) )(); @@ -65324,9 +66550,9 @@ public static MaybeBool ClearAudioStream(AudioStreamHandle stream) => byte ISdl.ClearAudioStreamRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[65] is not null and var loadedFnPtr + _slots[66] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[65] = nativeContext.LoadFunction("SDL_ClearAudioStream", "SDL3") + : _slots[66] = nativeContext.LoadFunction("SDL_ClearAudioStream", "SDL3") ) )(stream); @@ -65350,9 +66576,9 @@ MaybeBool ISdl.ClearClipboardData() => byte ISdl.ClearClipboardDataRaw() => ( (delegate* unmanaged)( - _slots[66] is not null and var loadedFnPtr + _slots[67] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[66] = nativeContext.LoadFunction("SDL_ClearClipboardData", "SDL3") + : _slots[67] = nativeContext.LoadFunction("SDL_ClearClipboardData", "SDL3") ) )(); @@ -65376,9 +66602,9 @@ public static MaybeBool ClearComposition(WindowHandle window) => byte ISdl.ClearCompositionRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[67] is not null and var loadedFnPtr + _slots[68] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[67] = nativeContext.LoadFunction("SDL_ClearComposition", "SDL3") + : _slots[68] = nativeContext.LoadFunction("SDL_ClearComposition", "SDL3") ) )(window); @@ -65401,9 +66627,9 @@ public static byte ClearCompositionRaw(WindowHandle window) => byte ISdl.ClearErrorRaw() => ( (delegate* unmanaged)( - _slots[68] is not null and var loadedFnPtr + _slots[69] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[68] = nativeContext.LoadFunction("SDL_ClearError", "SDL3") + : _slots[69] = nativeContext.LoadFunction("SDL_ClearError", "SDL3") ) )(); @@ -65419,9 +66645,9 @@ byte ISdl.ClearProperty( ) => ( (delegate* unmanaged)( - _slots[69] is not null and var loadedFnPtr + _slots[70] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[69] = nativeContext.LoadFunction("SDL_ClearProperty", "SDL3") + : _slots[70] = nativeContext.LoadFunction("SDL_ClearProperty", "SDL3") ) )(props, name); @@ -65458,9 +66684,9 @@ public static MaybeBool ClearProperty( byte ISdl.ClearSurface(Surface* surface, float r, float g, float b, float a) => ( (delegate* unmanaged)( - _slots[70] is not null and var loadedFnPtr + _slots[71] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[70] = nativeContext.LoadFunction("SDL_ClearSurface", "SDL3") + : _slots[71] = nativeContext.LoadFunction("SDL_ClearSurface", "SDL3") ) )(surface, r, g, b, a); @@ -65495,9 +66721,9 @@ float a void ISdl.CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( (delegate* unmanaged)( - _slots[71] is not null and var loadedFnPtr + _slots[72] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[71] = nativeContext.LoadFunction("SDL_CloseAudioDevice", "SDL3") + : _slots[72] = nativeContext.LoadFunction("SDL_CloseAudioDevice", "SDL3") ) )(devid); @@ -65510,9 +66736,9 @@ public static void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint d void ISdl.CloseCamera(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[72] is not null and var loadedFnPtr + _slots[73] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[72] = nativeContext.LoadFunction("SDL_CloseCamera", "SDL3") + : _slots[73] = nativeContext.LoadFunction("SDL_CloseCamera", "SDL3") ) )(camera); @@ -65524,9 +66750,9 @@ _slots[72] is not null and var loadedFnPtr void ISdl.CloseGamepad(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[73] is not null and var loadedFnPtr + _slots[74] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[73] = nativeContext.LoadFunction("SDL_CloseGamepad", "SDL3") + : _slots[74] = nativeContext.LoadFunction("SDL_CloseGamepad", "SDL3") ) )(gamepad); @@ -65538,9 +66764,9 @@ _slots[73] is not null and var loadedFnPtr void ISdl.CloseHaptic(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[74] is not null and var loadedFnPtr + _slots[75] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[74] = nativeContext.LoadFunction("SDL_CloseHaptic", "SDL3") + : _slots[75] = nativeContext.LoadFunction("SDL_CloseHaptic", "SDL3") ) )(haptic); @@ -65562,9 +66788,9 @@ MaybeBool ISdl.CloseIO(IOStreamHandle context) => byte ISdl.CloseIORaw(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[75] is not null and var loadedFnPtr + _slots[76] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[75] = nativeContext.LoadFunction("SDL_CloseIO", "SDL3") + : _slots[76] = nativeContext.LoadFunction("SDL_CloseIO", "SDL3") ) )(context); @@ -65577,9 +66803,9 @@ _slots[75] is not null and var loadedFnPtr void ISdl.CloseJoystick(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[76] is not null and var loadedFnPtr + _slots[77] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[76] = nativeContext.LoadFunction("SDL_CloseJoystick", "SDL3") + : _slots[77] = nativeContext.LoadFunction("SDL_CloseJoystick", "SDL3") ) )(joystick); @@ -65591,9 +66817,9 @@ _slots[76] is not null and var loadedFnPtr void ISdl.CloseSensor(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[77] is not null and var loadedFnPtr + _slots[78] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[77] = nativeContext.LoadFunction("SDL_CloseSensor", "SDL3") + : _slots[78] = nativeContext.LoadFunction("SDL_CloseSensor", "SDL3") ) )(sensor); @@ -65616,9 +66842,9 @@ public static MaybeBool CloseStorage(StorageHandle storage) => byte ISdl.CloseStorageRaw(StorageHandle storage) => ( (delegate* unmanaged)( - _slots[78] is not null and var loadedFnPtr + _slots[79] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[78] = nativeContext.LoadFunction("SDL_CloseStorage", "SDL3") + : _slots[79] = nativeContext.LoadFunction("SDL_CloseStorage", "SDL3") ) )(storage); @@ -65631,9 +66857,9 @@ _slots[78] is not null and var loadedFnPtr byte ISdl.CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval) => ( (delegate* unmanaged)( - _slots[79] is not null and var loadedFnPtr + _slots[80] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[79] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicInt", "SDL3") + : _slots[80] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicInt", "SDL3") ) )(a, oldval, newval); @@ -65667,9 +66893,9 @@ int newval byte ISdl.CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval) => ( (delegate* unmanaged)( - _slots[80] is not null and var loadedFnPtr + _slots[81] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[80] = nativeContext.LoadFunction( + : _slots[81] = nativeContext.LoadFunction( "SDL_CompareAndSwapAtomicPointer", "SDL3" ) @@ -65709,9 +66935,9 @@ byte ISdl.CompareAndSwapAtomicU32( ) => ( (delegate* unmanaged)( - _slots[81] is not null and var loadedFnPtr + _slots[82] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[81] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicU32", "SDL3") + : _slots[82] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicU32", "SDL3") ) )(a, oldval, newval); @@ -65766,9 +66992,9 @@ BlendOperation alphaOperation BlendFactor, BlendOperation, uint>)( - _slots[82] is not null and var loadedFnPtr + _slots[83] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[82] = nativeContext.LoadFunction("SDL_ComposeCustomBlendMode", "SDL3") + : _slots[83] = nativeContext.LoadFunction("SDL_ComposeCustomBlendMode", "SDL3") ) )( srcColorFactor, @@ -65810,9 +67036,9 @@ byte ISdl.ConvertAudioSamples( ) => ( (delegate* unmanaged)( - _slots[83] is not null and var loadedFnPtr + _slots[84] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[83] = nativeContext.LoadFunction("SDL_ConvertAudioSamples", "SDL3") + : _slots[84] = nativeContext.LoadFunction("SDL_ConvertAudioSamples", "SDL3") ) )(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); @@ -65874,9 +67100,9 @@ Ref dst_len byte ISdl.ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => ( (delegate* unmanaged)( - _slots[84] is not null and var loadedFnPtr + _slots[85] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[84] = nativeContext.LoadFunction( + : _slots[85] = nativeContext.LoadFunction( "SDL_ConvertEventToRenderCoordinates", "SDL3" ) @@ -65921,9 +67147,9 @@ int dst_pitch ) => ( (delegate* unmanaged)( - _slots[85] is not null and var loadedFnPtr + _slots[86] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[85] = nativeContext.LoadFunction("SDL_ConvertPixels", "SDL3") + : _slots[86] = nativeContext.LoadFunction("SDL_ConvertPixels", "SDL3") ) )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); @@ -66036,9 +67262,9 @@ int dst_pitch void*, int, byte>)( - _slots[86] is not null and var loadedFnPtr + _slots[87] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[86] = nativeContext.LoadFunction( + : _slots[87] = nativeContext.LoadFunction( "SDL_ConvertPixelsAndColorspace", "SDL3" ) @@ -66165,9 +67391,9 @@ int dst_pitch Surface* ISdl.ConvertSurface(Surface* surface, PixelFormat format) => ( (delegate* unmanaged)( - _slots[87] is not null and var loadedFnPtr + _slots[88] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[87] = nativeContext.LoadFunction("SDL_ConvertSurface", "SDL3") + : _slots[88] = nativeContext.LoadFunction("SDL_ConvertSurface", "SDL3") ) )(surface, format); @@ -66201,9 +67427,9 @@ public static Ptr ConvertSurface(Ref surface, PixelFormat form ) => ( (delegate* unmanaged)( - _slots[88] is not null and var loadedFnPtr + _slots[89] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[88] = nativeContext.LoadFunction( + : _slots[89] = nativeContext.LoadFunction( "SDL_ConvertSurfaceAndColorspace", "SDL3" ) @@ -66261,9 +67487,9 @@ byte ISdl.CopyFile( ) => ( (delegate* unmanaged)( - _slots[89] is not null and var loadedFnPtr + _slots[90] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[89] = nativeContext.LoadFunction("SDL_CopyFile", "SDL3") + : _slots[90] = nativeContext.LoadFunction("SDL_CopyFile", "SDL3") ) )(oldpath, newpath); @@ -66313,9 +67539,9 @@ void ISdl.CopyGPUBufferToBuffer( uint, byte, void>)( - _slots[90] is not null and var loadedFnPtr + _slots[91] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[90] = nativeContext.LoadFunction("SDL_CopyGPUBufferToBuffer", "SDL3") + : _slots[91] = nativeContext.LoadFunction("SDL_CopyGPUBufferToBuffer", "SDL3") ) )(copy_pass, source, destination, size, cycle); @@ -66382,9 +67608,9 @@ void ISdl.CopyGPUTextureToTexture( uint, byte, void>)( - _slots[91] is not null and var loadedFnPtr + _slots[92] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[91] = nativeContext.LoadFunction("SDL_CopyGPUTextureToTexture", "SDL3") + : _slots[92] = nativeContext.LoadFunction("SDL_CopyGPUTextureToTexture", "SDL3") ) )(copy_pass, source, destination, w, h, d, cycle); @@ -66461,9 +67687,9 @@ byte ISdl.CopyPropertiesRaw( ) => ( (delegate* unmanaged)( - _slots[92] is not null and var loadedFnPtr + _slots[93] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[92] = nativeContext.LoadFunction("SDL_CopyProperties", "SDL3") + : _slots[93] = nativeContext.LoadFunction("SDL_CopyProperties", "SDL3") ) )(src, dst); @@ -66479,9 +67705,9 @@ public static byte CopyPropertiesRaw( double ISdl.Copysign(double x, double y) => ( (delegate* unmanaged)( - _slots[93] is not null and var loadedFnPtr + _slots[94] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[93] = nativeContext.LoadFunction("SDL_copysign", "SDL3") + : _slots[94] = nativeContext.LoadFunction("SDL_copysign", "SDL3") ) )(x, y); @@ -66493,9 +67719,9 @@ _slots[93] is not null and var loadedFnPtr float ISdl.Copysignf(float x, float y) => ( (delegate* unmanaged)( - _slots[94] is not null and var loadedFnPtr + _slots[95] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[94] = nativeContext.LoadFunction("SDL_copysignf", "SDL3") + : _slots[95] = nativeContext.LoadFunction("SDL_copysignf", "SDL3") ) )(x, y); @@ -66511,9 +67737,9 @@ byte ISdl.CopyStorageFile( ) => ( (delegate* unmanaged)( - _slots[95] is not null and var loadedFnPtr + _slots[96] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[95] = nativeContext.LoadFunction("SDL_CopyStorageFile", "SDL3") + : _slots[96] = nativeContext.LoadFunction("SDL_CopyStorageFile", "SDL3") ) )(storage, oldpath, newpath); @@ -66555,9 +67781,9 @@ public static MaybeBool CopyStorageFile( double ISdl.Cos(double x) => ( (delegate* unmanaged)( - _slots[96] is not null and var loadedFnPtr + _slots[97] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[96] = nativeContext.LoadFunction("SDL_cos", "SDL3") + : _slots[97] = nativeContext.LoadFunction("SDL_cos", "SDL3") ) )(x); @@ -66569,9 +67795,9 @@ _slots[96] is not null and var loadedFnPtr float ISdl.Cosf(float x) => ( (delegate* unmanaged)( - _slots[97] is not null and var loadedFnPtr + _slots[98] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[97] = nativeContext.LoadFunction("SDL_cosf", "SDL3") + : _slots[98] = nativeContext.LoadFunction("SDL_cosf", "SDL3") ) )(x); @@ -66587,9 +67813,9 @@ ushort ISdl.Crc16( ) => ( (delegate* unmanaged)( - _slots[98] is not null and var loadedFnPtr + _slots[99] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[98] = nativeContext.LoadFunction("SDL_crc16", "SDL3") + : _slots[99] = nativeContext.LoadFunction("SDL_crc16", "SDL3") ) )(crc, data, len); @@ -66633,9 +67859,9 @@ uint ISdl.Crc32( ) => ( (delegate* unmanaged)( - _slots[99] is not null and var loadedFnPtr + _slots[100] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[99] = nativeContext.LoadFunction("SDL_crc32", "SDL3") + : _slots[100] = nativeContext.LoadFunction("SDL_crc32", "SDL3") ) )(crc, data, len); @@ -66678,9 +67904,9 @@ AudioStreamHandle ISdl.CreateAudioStream( ) => ( (delegate* unmanaged)( - _slots[100] is not null and var loadedFnPtr + _slots[101] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[100] = nativeContext.LoadFunction("SDL_CreateAudioStream", "SDL3") + : _slots[101] = nativeContext.LoadFunction("SDL_CreateAudioStream", "SDL3") ) )(src_spec, dst_spec); @@ -66717,9 +67943,9 @@ public static AudioStreamHandle CreateAudioStream( CursorHandle ISdl.CreateColorCursor(Surface* surface, int hot_x, int hot_y) => ( (delegate* unmanaged)( - _slots[101] is not null and var loadedFnPtr + _slots[102] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[101] = nativeContext.LoadFunction("SDL_CreateColorCursor", "SDL3") + : _slots[102] = nativeContext.LoadFunction("SDL_CreateColorCursor", "SDL3") ) )(surface, hot_x, hot_y); @@ -66747,9 +67973,9 @@ public static CursorHandle CreateColorCursor(Ref surface, int hot_x, in ConditionHandle ISdl.CreateCondition() => ( (delegate* unmanaged)( - _slots[102] is not null and var loadedFnPtr + _slots[103] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[102] = nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") + : _slots[103] = nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") ) )(); @@ -66768,9 +67994,9 @@ int hot_y ) => ( (delegate* unmanaged)( - _slots[103] is not null and var loadedFnPtr + _slots[104] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[103] = nativeContext.LoadFunction("SDL_CreateCursor", "SDL3") + : _slots[104] = nativeContext.LoadFunction("SDL_CreateCursor", "SDL3") ) )(data, mask, w, h, hot_x, hot_y); @@ -66819,9 +68045,9 @@ int hot_y byte ISdl.CreateDirectory([NativeTypeName("const char *")] sbyte* path) => ( (delegate* unmanaged)( - _slots[104] is not null and var loadedFnPtr + _slots[105] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[104] = nativeContext.LoadFunction("SDL_CreateDirectory", "SDL3") + : _slots[105] = nativeContext.LoadFunction("SDL_CreateDirectory", "SDL3") ) )(path); @@ -66852,9 +68078,9 @@ public static MaybeBool CreateDirectory( EnvironmentHandle ISdl.CreateEnvironment([NativeTypeName("bool")] byte populated) => ( (delegate* unmanaged)( - _slots[105] is not null and var loadedFnPtr + _slots[106] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[105] = nativeContext.LoadFunction("SDL_CreateEnvironment", "SDL3") + : _slots[106] = nativeContext.LoadFunction("SDL_CreateEnvironment", "SDL3") ) )(populated); @@ -66881,9 +68107,9 @@ GPUBufferHandle ISdl.CreateGPUBuffer( ) => ( (delegate* unmanaged)( - _slots[106] is not null and var loadedFnPtr + _slots[107] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[106] = nativeContext.LoadFunction("SDL_CreateGPUBuffer", "SDL3") + : _slots[107] = nativeContext.LoadFunction("SDL_CreateGPUBuffer", "SDL3") ) )(device, createinfo); @@ -66925,9 +68151,9 @@ GPUComputePipelineHandle ISdl.CreateGPUComputePipeline( GPUDeviceHandle, GPUComputePipelineCreateInfo*, GPUComputePipelineHandle>)( - _slots[107] is not null and var loadedFnPtr + _slots[108] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[107] = nativeContext.LoadFunction( + : _slots[108] = nativeContext.LoadFunction( "SDL_CreateGPUComputePipeline", "SDL3" ) @@ -66973,9 +68199,9 @@ GPUDeviceHandle ISdl.CreateGPUDevice( ) => ( (delegate* unmanaged)( - _slots[108] is not null and var loadedFnPtr + _slots[109] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[108] = nativeContext.LoadFunction("SDL_CreateGPUDevice", "SDL3") + : _slots[109] = nativeContext.LoadFunction("SDL_CreateGPUDevice", "SDL3") ) )(format_flags, debug_mode, name); @@ -67016,9 +68242,9 @@ GPUDeviceHandle ISdl.CreateGPUDeviceWithProperties( ) => ( (delegate* unmanaged)( - _slots[109] is not null and var loadedFnPtr + _slots[110] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[109] = nativeContext.LoadFunction( + : _slots[110] = nativeContext.LoadFunction( "SDL_CreateGPUDeviceWithProperties", "SDL3" ) @@ -67042,9 +68268,9 @@ GPUGraphicsPipelineHandle ISdl.CreateGPUGraphicsPipeline( GPUDeviceHandle, GPUGraphicsPipelineCreateInfo*, GPUGraphicsPipelineHandle>)( - _slots[110] is not null and var loadedFnPtr + _slots[111] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[110] = nativeContext.LoadFunction( + : _slots[111] = nativeContext.LoadFunction( "SDL_CreateGPUGraphicsPipeline", "SDL3" ) @@ -67089,9 +68315,9 @@ GPUSamplerHandle ISdl.CreateGPUSampler( ) => ( (delegate* unmanaged)( - _slots[111] is not null and var loadedFnPtr + _slots[112] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[111] = nativeContext.LoadFunction("SDL_CreateGPUSampler", "SDL3") + : _slots[112] = nativeContext.LoadFunction("SDL_CreateGPUSampler", "SDL3") ) )(device, createinfo); @@ -67129,9 +68355,9 @@ GPUShaderHandle ISdl.CreateGPUShader( ) => ( (delegate* unmanaged)( - _slots[112] is not null and var loadedFnPtr + _slots[113] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[112] = nativeContext.LoadFunction("SDL_CreateGPUShader", "SDL3") + : _slots[113] = nativeContext.LoadFunction("SDL_CreateGPUShader", "SDL3") ) )(device, createinfo); @@ -67169,9 +68395,9 @@ GPUTextureHandle ISdl.CreateGPUTexture( ) => ( (delegate* unmanaged)( - _slots[113] is not null and var loadedFnPtr + _slots[114] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[113] = nativeContext.LoadFunction("SDL_CreateGPUTexture", "SDL3") + : _slots[114] = nativeContext.LoadFunction("SDL_CreateGPUTexture", "SDL3") ) )(device, createinfo); @@ -67213,9 +68439,9 @@ GPUTransferBufferHandle ISdl.CreateGPUTransferBuffer( GPUDeviceHandle, GPUTransferBufferCreateInfo*, GPUTransferBufferHandle>)( - _slots[114] is not null and var loadedFnPtr + _slots[115] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[114] = nativeContext.LoadFunction( + : _slots[115] = nativeContext.LoadFunction( "SDL_CreateGPUTransferBuffer", "SDL3" ) @@ -67260,9 +68486,9 @@ int ISdl.CreateHapticEffect( ) => ( (delegate* unmanaged)( - _slots[115] is not null and var loadedFnPtr + _slots[116] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[115] = nativeContext.LoadFunction("SDL_CreateHapticEffect", "SDL3") + : _slots[116] = nativeContext.LoadFunction("SDL_CreateHapticEffect", "SDL3") ) )(haptic, effect); @@ -67297,9 +68523,9 @@ public static int CreateHapticEffect( MutexHandle ISdl.CreateMutex() => ( (delegate* unmanaged)( - _slots[116] is not null and var loadedFnPtr + _slots[117] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[116] = nativeContext.LoadFunction("SDL_CreateMutex", "SDL3") + : _slots[117] = nativeContext.LoadFunction("SDL_CreateMutex", "SDL3") ) )(); @@ -67320,9 +68546,9 @@ Ptr ISdl.CreatePalette(int ncolors) => Palette* ISdl.CreatePaletteRaw(int ncolors) => ( (delegate* unmanaged)( - _slots[117] is not null and var loadedFnPtr + _slots[118] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[117] = nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") + : _slots[118] = nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") ) )(ncolors); @@ -67341,9 +68567,9 @@ WindowHandle ISdl.CreatePopupWindow( ) => ( (delegate* unmanaged)( - _slots[118] is not null and var loadedFnPtr + _slots[119] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[118] = nativeContext.LoadFunction("SDL_CreatePopupWindow", "SDL3") + : _slots[119] = nativeContext.LoadFunction("SDL_CreatePopupWindow", "SDL3") ) )(parent, offset_x, offset_y, w, h, flags); @@ -67365,9 +68591,9 @@ ProcessHandle ISdl.CreateProcess( ) => ( (delegate* unmanaged)( - _slots[119] is not null and var loadedFnPtr + _slots[120] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[119] = nativeContext.LoadFunction("SDL_CreateProcess", "SDL3") + : _slots[120] = nativeContext.LoadFunction("SDL_CreateProcess", "SDL3") ) )(args, pipe_stdio); @@ -67404,9 +68630,9 @@ ProcessHandle ISdl.CreateProcessWithProperties( ) => ( (delegate* unmanaged)( - _slots[120] is not null and var loadedFnPtr + _slots[121] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[120] = nativeContext.LoadFunction( + : _slots[121] = nativeContext.LoadFunction( "SDL_CreateProcessWithProperties", "SDL3" ) @@ -67423,9 +68649,9 @@ public static ProcessHandle CreateProcessWithProperties( uint ISdl.CreateProperties() => ( (delegate* unmanaged)( - _slots[121] is not null and var loadedFnPtr + _slots[122] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[121] = nativeContext.LoadFunction("SDL_CreateProperties", "SDL3") + : _slots[122] = nativeContext.LoadFunction("SDL_CreateProperties", "SDL3") ) )(); @@ -67441,9 +68667,9 @@ RendererHandle ISdl.CreateRenderer( ) => ( (delegate* unmanaged)( - _slots[122] is not null and var loadedFnPtr + _slots[123] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[122] = nativeContext.LoadFunction("SDL_CreateRenderer", "SDL3") + : _slots[123] = nativeContext.LoadFunction("SDL_CreateRenderer", "SDL3") ) )(window, name); @@ -67480,9 +68706,9 @@ RendererHandle ISdl.CreateRendererWithProperties( ) => ( (delegate* unmanaged)( - _slots[123] is not null and var loadedFnPtr + _slots[124] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[123] = nativeContext.LoadFunction( + : _slots[124] = nativeContext.LoadFunction( "SDL_CreateRendererWithProperties", "SDL3" ) @@ -67499,9 +68725,9 @@ public static RendererHandle CreateRendererWithProperties( RWLockHandle ISdl.CreateRWLock() => ( (delegate* unmanaged)( - _slots[124] is not null and var loadedFnPtr + _slots[125] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[124] = nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") + : _slots[125] = nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") ) )(); @@ -67513,9 +68739,9 @@ _slots[124] is not null and var loadedFnPtr SemaphoreHandle ISdl.CreateSemaphore([NativeTypeName("Uint32")] uint initial_value) => ( (delegate* unmanaged)( - _slots[125] is not null and var loadedFnPtr + _slots[126] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[125] = nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") + : _slots[126] = nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") ) )(initial_value); @@ -67528,9 +68754,9 @@ public static SemaphoreHandle CreateSemaphore([NativeTypeName("Uint32")] uint in RendererHandle ISdl.CreateSoftwareRenderer(Surface* surface) => ( (delegate* unmanaged)( - _slots[126] is not null and var loadedFnPtr + _slots[127] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[126] = nativeContext.LoadFunction("SDL_CreateSoftwareRenderer", "SDL3") + : _slots[127] = nativeContext.LoadFunction("SDL_CreateSoftwareRenderer", "SDL3") ) )(surface); @@ -67561,9 +68787,9 @@ byte ISdl.CreateStorageDirectory( ) => ( (delegate* unmanaged)( - _slots[127] is not null and var loadedFnPtr + _slots[128] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[127] = nativeContext.LoadFunction("SDL_CreateStorageDirectory", "SDL3") + : _slots[128] = nativeContext.LoadFunction("SDL_CreateStorageDirectory", "SDL3") ) )(storage, path); @@ -67616,9 +68842,9 @@ int pitch ) => ( (delegate* unmanaged)( - _slots[129] is not null and var loadedFnPtr + _slots[130] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[129] = nativeContext.LoadFunction("SDL_CreateSurfaceFrom", "SDL3") + : _slots[130] = nativeContext.LoadFunction("SDL_CreateSurfaceFrom", "SDL3") ) )(width, height, format, pixels, pitch); @@ -67663,9 +68889,9 @@ int pitch Palette* ISdl.CreateSurfacePalette(Surface* surface) => ( (delegate* unmanaged)( - _slots[130] is not null and var loadedFnPtr + _slots[131] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[130] = nativeContext.LoadFunction("SDL_CreateSurfacePalette", "SDL3") + : _slots[131] = nativeContext.LoadFunction("SDL_CreateSurfacePalette", "SDL3") ) )(surface); @@ -67693,9 +68919,9 @@ public static Ptr CreateSurfacePalette(Ref surface) => Surface* ISdl.CreateSurfaceRaw(int width, int height, PixelFormat format) => ( (delegate* unmanaged)( - _slots[128] is not null and var loadedFnPtr + _slots[129] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[128] = nativeContext.LoadFunction("SDL_CreateSurface", "SDL3") + : _slots[129] = nativeContext.LoadFunction("SDL_CreateSurface", "SDL3") ) )(width, height, format); @@ -67708,9 +68934,9 @@ _slots[128] is not null and var loadedFnPtr CursorHandle ISdl.CreateSystemCursor(SystemCursor id) => ( (delegate* unmanaged)( - _slots[131] is not null and var loadedFnPtr + _slots[132] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[131] = nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") + : _slots[132] = nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") ) )(id); @@ -67743,9 +68969,9 @@ int h Texture* ISdl.CreateTextureFromSurface(RendererHandle renderer, Surface* surface) => ( (delegate* unmanaged)( - _slots[133] is not null and var loadedFnPtr + _slots[134] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[133] = nativeContext.LoadFunction( + : _slots[134] = nativeContext.LoadFunction( "SDL_CreateTextureFromSurface", "SDL3" ) @@ -67784,9 +69010,9 @@ int h ) => ( (delegate* unmanaged)( - _slots[132] is not null and var loadedFnPtr + _slots[133] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[132] = nativeContext.LoadFunction("SDL_CreateTexture", "SDL3") + : _slots[133] = nativeContext.LoadFunction("SDL_CreateTexture", "SDL3") ) )(renderer, format, access, w, h); @@ -67821,9 +69047,9 @@ public static Ptr CreateTextureWithProperties( ) => ( (delegate* unmanaged)( - _slots[134] is not null and var loadedFnPtr + _slots[135] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[134] = nativeContext.LoadFunction( + : _slots[135] = nativeContext.LoadFunction( "SDL_CreateTextureWithProperties", "SDL3" ) @@ -67853,9 +69079,9 @@ ThreadHandle ISdl.CreateThreadRuntime( FunctionPointer, FunctionPointer, ThreadHandle>)( - _slots[135] is not null and var loadedFnPtr + _slots[136] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[135] = nativeContext.LoadFunction("SDL_CreateThreadRuntime", "SDL3") + : _slots[136] = nativeContext.LoadFunction("SDL_CreateThreadRuntime", "SDL3") ) )(fn, name, data, pfnBeginThread, pfnEndThread); @@ -67911,9 +69137,9 @@ ThreadHandle ISdl.CreateThreadWithPropertiesRuntime( ) => ( (delegate* unmanaged)( - _slots[136] is not null and var loadedFnPtr + _slots[137] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[136] = nativeContext.LoadFunction( + : _slots[137] = nativeContext.LoadFunction( "SDL_CreateThreadWithPropertiesRuntime", "SDL3" ) @@ -67937,9 +69163,9 @@ WindowHandle ISdl.CreateWindow( ) => ( (delegate* unmanaged)( - _slots[137] is not null and var loadedFnPtr + _slots[138] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[137] = nativeContext.LoadFunction("SDL_CreateWindow", "SDL3") + : _slots[138] = nativeContext.LoadFunction("SDL_CreateWindow", "SDL3") ) )(title, w, h, flags); @@ -67987,9 +69213,9 @@ byte ISdl.CreateWindowAndRenderer( ) => ( (delegate* unmanaged)( - _slots[138] is not null and var loadedFnPtr + _slots[139] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[138] = nativeContext.LoadFunction( + : _slots[139] = nativeContext.LoadFunction( "SDL_CreateWindowAndRenderer", "SDL3" ) @@ -68052,9 +69278,9 @@ Ref renderer WindowHandle ISdl.CreateWindowWithProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( (delegate* unmanaged)( - _slots[139] is not null and var loadedFnPtr + _slots[140] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[139] = nativeContext.LoadFunction( + : _slots[140] = nativeContext.LoadFunction( "SDL_CreateWindowWithProperties", "SDL3" ) @@ -68080,9 +69306,9 @@ public static WindowHandle CreateWindowWithProperties( byte ISdl.CursorVisibleRaw() => ( (delegate* unmanaged)( - _slots[140] is not null and var loadedFnPtr + _slots[141] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[140] = nativeContext.LoadFunction("SDL_CursorVisible", "SDL3") + : _slots[141] = nativeContext.LoadFunction("SDL_CursorVisible", "SDL3") ) )(); @@ -68098,9 +69324,9 @@ byte ISdl.DateTimeToTime( ) => ( (delegate* unmanaged)( - _slots[141] is not null and var loadedFnPtr + _slots[142] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[141] = nativeContext.LoadFunction("SDL_DateTimeToTime", "SDL3") + : _slots[142] = nativeContext.LoadFunction("SDL_DateTimeToTime", "SDL3") ) )(dt, ticks); @@ -68138,9 +69364,9 @@ public static MaybeBool DateTimeToTime( void ISdl.Delay([NativeTypeName("Uint32")] uint ms) => ( (delegate* unmanaged)( - _slots[142] is not null and var loadedFnPtr + _slots[143] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[142] = nativeContext.LoadFunction("SDL_Delay", "SDL3") + : _slots[143] = nativeContext.LoadFunction("SDL_Delay", "SDL3") ) )(ms); @@ -68152,9 +69378,9 @@ _slots[142] is not null and var loadedFnPtr void ISdl.DelayNS([NativeTypeName("Uint64")] ulong ns) => ( (delegate* unmanaged)( - _slots[143] is not null and var loadedFnPtr + _slots[144] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[143] = nativeContext.LoadFunction("SDL_DelayNS", "SDL3") + : _slots[144] = nativeContext.LoadFunction("SDL_DelayNS", "SDL3") ) )(ns); @@ -68166,9 +69392,9 @@ _slots[143] is not null and var loadedFnPtr void ISdl.DelayPrecise([NativeTypeName("Uint64")] ulong ns) => ( (delegate* unmanaged)( - _slots[144] is not null and var loadedFnPtr + _slots[145] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[144] = nativeContext.LoadFunction("SDL_DelayPrecise", "SDL3") + : _slots[145] = nativeContext.LoadFunction("SDL_DelayPrecise", "SDL3") ) )(ns); @@ -68181,9 +69407,9 @@ public static void DelayPrecise([NativeTypeName("Uint64")] ulong ns) => void ISdl.DestroyAudioStream(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[145] is not null and var loadedFnPtr + _slots[146] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[145] = nativeContext.LoadFunction("SDL_DestroyAudioStream", "SDL3") + : _slots[146] = nativeContext.LoadFunction("SDL_DestroyAudioStream", "SDL3") ) )(stream); @@ -68196,9 +69422,9 @@ public static void DestroyAudioStream(AudioStreamHandle stream) => void ISdl.DestroyCondition(ConditionHandle cond) => ( (delegate* unmanaged)( - _slots[146] is not null and var loadedFnPtr + _slots[147] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[146] = nativeContext.LoadFunction("SDL_DestroyCondition", "SDL3") + : _slots[147] = nativeContext.LoadFunction("SDL_DestroyCondition", "SDL3") ) )(cond); @@ -68210,9 +69436,9 @@ _slots[146] is not null and var loadedFnPtr void ISdl.DestroyCursor(CursorHandle cursor) => ( (delegate* unmanaged)( - _slots[147] is not null and var loadedFnPtr + _slots[148] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[147] = nativeContext.LoadFunction("SDL_DestroyCursor", "SDL3") + : _slots[148] = nativeContext.LoadFunction("SDL_DestroyCursor", "SDL3") ) )(cursor); @@ -68224,9 +69450,9 @@ _slots[147] is not null and var loadedFnPtr void ISdl.DestroyEnvironment(EnvironmentHandle env) => ( (delegate* unmanaged)( - _slots[148] is not null and var loadedFnPtr + _slots[149] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[148] = nativeContext.LoadFunction("SDL_DestroyEnvironment", "SDL3") + : _slots[149] = nativeContext.LoadFunction("SDL_DestroyEnvironment", "SDL3") ) )(env); @@ -68239,9 +69465,9 @@ public static void DestroyEnvironment(EnvironmentHandle env) => void ISdl.DestroyGPUDevice(GPUDeviceHandle device) => ( (delegate* unmanaged)( - _slots[149] is not null and var loadedFnPtr + _slots[150] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[149] = nativeContext.LoadFunction("SDL_DestroyGPUDevice", "SDL3") + : _slots[150] = nativeContext.LoadFunction("SDL_DestroyGPUDevice", "SDL3") ) )(device); @@ -68254,9 +69480,9 @@ public static void DestroyGPUDevice(GPUDeviceHandle device) => void ISdl.DestroyHapticEffect(HapticHandle haptic, int effect) => ( (delegate* unmanaged)( - _slots[150] is not null and var loadedFnPtr + _slots[151] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[150] = nativeContext.LoadFunction("SDL_DestroyHapticEffect", "SDL3") + : _slots[151] = nativeContext.LoadFunction("SDL_DestroyHapticEffect", "SDL3") ) )(haptic, effect); @@ -68269,9 +69495,9 @@ public static void DestroyHapticEffect(HapticHandle haptic, int effect) => void ISdl.DestroyMutex(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[151] is not null and var loadedFnPtr + _slots[152] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[151] = nativeContext.LoadFunction("SDL_DestroyMutex", "SDL3") + : _slots[152] = nativeContext.LoadFunction("SDL_DestroyMutex", "SDL3") ) )(mutex); @@ -68283,9 +69509,9 @@ _slots[151] is not null and var loadedFnPtr void ISdl.DestroyPalette(Palette* palette) => ( (delegate* unmanaged)( - _slots[152] is not null and var loadedFnPtr + _slots[153] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[152] = nativeContext.LoadFunction("SDL_DestroyPalette", "SDL3") + : _slots[153] = nativeContext.LoadFunction("SDL_DestroyPalette", "SDL3") ) )(palette); @@ -68311,9 +69537,9 @@ void ISdl.DestroyPalette(Ref palette) void ISdl.DestroyProcess(ProcessHandle process) => ( (delegate* unmanaged)( - _slots[153] is not null and var loadedFnPtr + _slots[154] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[153] = nativeContext.LoadFunction("SDL_DestroyProcess", "SDL3") + : _slots[154] = nativeContext.LoadFunction("SDL_DestroyProcess", "SDL3") ) )(process); @@ -68325,9 +69551,9 @@ _slots[153] is not null and var loadedFnPtr void ISdl.DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( (delegate* unmanaged)( - _slots[154] is not null and var loadedFnPtr + _slots[155] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[154] = nativeContext.LoadFunction("SDL_DestroyProperties", "SDL3") + : _slots[155] = nativeContext.LoadFunction("SDL_DestroyProperties", "SDL3") ) )(props); @@ -68340,9 +69566,9 @@ public static void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint p void ISdl.DestroyRenderer(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[155] is not null and var loadedFnPtr + _slots[156] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[155] = nativeContext.LoadFunction("SDL_DestroyRenderer", "SDL3") + : _slots[156] = nativeContext.LoadFunction("SDL_DestroyRenderer", "SDL3") ) )(renderer); @@ -68355,9 +69581,9 @@ public static void DestroyRenderer(RendererHandle renderer) => void ISdl.DestroyRWLock(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[156] is not null and var loadedFnPtr + _slots[157] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[156] = nativeContext.LoadFunction("SDL_DestroyRWLock", "SDL3") + : _slots[157] = nativeContext.LoadFunction("SDL_DestroyRWLock", "SDL3") ) )(rwlock); @@ -68369,9 +69595,9 @@ _slots[156] is not null and var loadedFnPtr void ISdl.DestroySemaphore(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[157] is not null and var loadedFnPtr + _slots[158] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[157] = nativeContext.LoadFunction("SDL_DestroySemaphore", "SDL3") + : _slots[158] = nativeContext.LoadFunction("SDL_DestroySemaphore", "SDL3") ) )(sem); @@ -68383,9 +69609,9 @@ _slots[157] is not null and var loadedFnPtr void ISdl.DestroySurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[158] is not null and var loadedFnPtr + _slots[159] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[158] = nativeContext.LoadFunction("SDL_DestroySurface", "SDL3") + : _slots[159] = nativeContext.LoadFunction("SDL_DestroySurface", "SDL3") ) )(surface); @@ -68411,9 +69637,9 @@ void ISdl.DestroySurface(Ref surface) void ISdl.DestroyTexture(Texture* texture) => ( (delegate* unmanaged)( - _slots[159] is not null and var loadedFnPtr + _slots[160] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[159] = nativeContext.LoadFunction("SDL_DestroyTexture", "SDL3") + : _slots[160] = nativeContext.LoadFunction("SDL_DestroyTexture", "SDL3") ) )(texture); @@ -68439,9 +69665,9 @@ void ISdl.DestroyTexture(Ref texture) void ISdl.DestroyWindow(WindowHandle window) => ( (delegate* unmanaged)( - _slots[160] is not null and var loadedFnPtr + _slots[161] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[160] = nativeContext.LoadFunction("SDL_DestroyWindow", "SDL3") + : _slots[161] = nativeContext.LoadFunction("SDL_DestroyWindow", "SDL3") ) )(window); @@ -68464,9 +69690,9 @@ public static MaybeBool DestroyWindowSurface(WindowHandle window) => byte ISdl.DestroyWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[161] is not null and var loadedFnPtr + _slots[162] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[161] = nativeContext.LoadFunction("SDL_DestroyWindowSurface", "SDL3") + : _slots[162] = nativeContext.LoadFunction("SDL_DestroyWindowSurface", "SDL3") ) )(window); @@ -68480,9 +69706,9 @@ public static byte DestroyWindowSurfaceRaw(WindowHandle window) => void ISdl.DetachThread(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[162] is not null and var loadedFnPtr + _slots[163] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[162] = nativeContext.LoadFunction("SDL_DetachThread", "SDL3") + : _slots[163] = nativeContext.LoadFunction("SDL_DetachThread", "SDL3") ) )(thread); @@ -68507,9 +69733,9 @@ public static MaybeBool DetachVirtualJoystick( byte ISdl.DetachVirtualJoystickRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[163] is not null and var loadedFnPtr + _slots[164] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[163] = nativeContext.LoadFunction("SDL_DetachVirtualJoystick", "SDL3") + : _slots[164] = nativeContext.LoadFunction("SDL_DetachVirtualJoystick", "SDL3") ) )(instance_id); @@ -68534,9 +69760,9 @@ MaybeBool ISdl.DisableScreenSaver() => byte ISdl.DisableScreenSaverRaw() => ( (delegate* unmanaged)( - _slots[164] is not null and var loadedFnPtr + _slots[165] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[164] = nativeContext.LoadFunction("SDL_DisableScreenSaver", "SDL3") + : _slots[165] = nativeContext.LoadFunction("SDL_DisableScreenSaver", "SDL3") ) )(); @@ -68554,9 +69780,9 @@ void ISdl.DispatchGPUCompute( ) => ( (delegate* unmanaged)( - _slots[165] is not null and var loadedFnPtr + _slots[166] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[165] = nativeContext.LoadFunction("SDL_DispatchGPUCompute", "SDL3") + : _slots[166] = nativeContext.LoadFunction("SDL_DispatchGPUCompute", "SDL3") ) )(compute_pass, groupcount_x, groupcount_y, groupcount_z); @@ -68577,9 +69803,9 @@ void ISdl.DispatchGPUComputeIndirect( ) => ( (delegate* unmanaged)( - _slots[166] is not null and var loadedFnPtr + _slots[167] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[166] = nativeContext.LoadFunction( + : _slots[167] = nativeContext.LoadFunction( "SDL_DispatchGPUComputeIndirect", "SDL3" ) @@ -68607,9 +69833,9 @@ void ISdl.DownloadFromGPUBuffer( GPUBufferRegion*, GPUTransferBufferLocation*, void>)( - _slots[167] is not null and var loadedFnPtr + _slots[168] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[167] = nativeContext.LoadFunction("SDL_DownloadFromGPUBuffer", "SDL3") + : _slots[168] = nativeContext.LoadFunction("SDL_DownloadFromGPUBuffer", "SDL3") ) )(copy_pass, source, destination); @@ -68659,9 +69885,9 @@ void ISdl.DownloadFromGPUTexture( GPUTextureRegion*, GPUTextureTransferInfo*, void>)( - _slots[168] is not null and var loadedFnPtr + _slots[169] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[168] = nativeContext.LoadFunction("SDL_DownloadFromGPUTexture", "SDL3") + : _slots[169] = nativeContext.LoadFunction("SDL_DownloadFromGPUTexture", "SDL3") ) )(copy_pass, source, destination); @@ -68709,9 +69935,9 @@ void ISdl.DrawGPUIndexedPrimitives( ) => ( (delegate* unmanaged)( - _slots[169] is not null and var loadedFnPtr + _slots[170] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[169] = nativeContext.LoadFunction( + : _slots[170] = nativeContext.LoadFunction( "SDL_DrawGPUIndexedPrimitives", "SDL3" ) @@ -68746,9 +69972,9 @@ void ISdl.DrawGPUIndexedPrimitivesIndirect( ) => ( (delegate* unmanaged)( - _slots[170] is not null and var loadedFnPtr + _slots[171] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[170] = nativeContext.LoadFunction( + : _slots[171] = nativeContext.LoadFunction( "SDL_DrawGPUIndexedPrimitivesIndirect", "SDL3" ) @@ -68774,9 +70000,9 @@ void ISdl.DrawGPUPrimitives( ) => ( (delegate* unmanaged)( - _slots[171] is not null and var loadedFnPtr + _slots[172] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[171] = nativeContext.LoadFunction("SDL_DrawGPUPrimitives", "SDL3") + : _slots[172] = nativeContext.LoadFunction("SDL_DrawGPUPrimitives", "SDL3") ) )(render_pass, num_vertices, num_instances, first_vertex, first_instance); @@ -68806,9 +70032,9 @@ void ISdl.DrawGPUPrimitivesIndirect( ) => ( (delegate* unmanaged)( - _slots[172] is not null and var loadedFnPtr + _slots[173] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[172] = nativeContext.LoadFunction( + : _slots[173] = nativeContext.LoadFunction( "SDL_DrawGPUPrimitivesIndirect", "SDL3" ) @@ -68828,9 +70054,9 @@ public static void DrawGPUPrimitivesIndirect( Surface* ISdl.DuplicateSurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[173] is not null and var loadedFnPtr + _slots[174] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[173] = nativeContext.LoadFunction("SDL_DuplicateSurface", "SDL3") + : _slots[174] = nativeContext.LoadFunction("SDL_DuplicateSurface", "SDL3") ) )(surface); @@ -68867,9 +70093,9 @@ public static Ptr DuplicateSurface(Ref surface) => void* ISdl.EGLGetCurrentConfigRaw() => ( (delegate* unmanaged)( - _slots[174] is not null and var loadedFnPtr + _slots[175] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[174] = nativeContext.LoadFunction("SDL_EGL_GetCurrentConfig", "SDL3") + : _slots[175] = nativeContext.LoadFunction("SDL_EGL_GetCurrentConfig", "SDL3") ) )(); @@ -68891,9 +70117,9 @@ _slots[174] is not null and var loadedFnPtr void* ISdl.EGLGetCurrentDisplayRaw() => ( (delegate* unmanaged)( - _slots[175] is not null and var loadedFnPtr + _slots[176] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[175] = nativeContext.LoadFunction("SDL_EGL_GetCurrentDisplay", "SDL3") + : _slots[176] = nativeContext.LoadFunction("SDL_EGL_GetCurrentDisplay", "SDL3") ) )(); @@ -68906,9 +70132,9 @@ _slots[175] is not null and var loadedFnPtr FunctionPointer ISdl.EGLGetProcAddress([NativeTypeName("const char *")] sbyte* proc) => ( (delegate* unmanaged)( - _slots[176] is not null and var loadedFnPtr + _slots[177] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[176] = nativeContext.LoadFunction("SDL_EGL_GetProcAddress", "SDL3") + : _slots[177] = nativeContext.LoadFunction("SDL_EGL_GetProcAddress", "SDL3") ) )(proc); @@ -68950,9 +70176,9 @@ public static Ptr EGLGetWindowSurface(WindowHandle window) => void* ISdl.EGLGetWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[177] is not null and var loadedFnPtr + _slots[178] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[177] = nativeContext.LoadFunction("SDL_EGL_GetWindowSurface", "SDL3") + : _slots[178] = nativeContext.LoadFunction("SDL_EGL_GetWindowSurface", "SDL3") ) )(window); @@ -68977,9 +70203,9 @@ void ISdl.EGLSetAttributeCallbacks( EGLIntArrayCallback, void*, void>)( - _slots[178] is not null and var loadedFnPtr + _slots[179] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[178] = nativeContext.LoadFunction( + : _slots[179] = nativeContext.LoadFunction( "SDL_EGL_SetAttributeCallbacks", "SDL3" ) @@ -69053,9 +70279,9 @@ MaybeBool ISdl.EnableScreenSaver() => byte ISdl.EnableScreenSaverRaw() => ( (delegate* unmanaged)( - _slots[179] is not null and var loadedFnPtr + _slots[180] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[179] = nativeContext.LoadFunction("SDL_EnableScreenSaver", "SDL3") + : _slots[180] = nativeContext.LoadFunction("SDL_EnableScreenSaver", "SDL3") ) )(); @@ -69068,9 +70294,9 @@ _slots[179] is not null and var loadedFnPtr void ISdl.EndGPUComputePass(GPUComputePassHandle compute_pass) => ( (delegate* unmanaged)( - _slots[180] is not null and var loadedFnPtr + _slots[181] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[180] = nativeContext.LoadFunction("SDL_EndGPUComputePass", "SDL3") + : _slots[181] = nativeContext.LoadFunction("SDL_EndGPUComputePass", "SDL3") ) )(compute_pass); @@ -69083,9 +70309,9 @@ public static void EndGPUComputePass(GPUComputePassHandle compute_pass) => void ISdl.EndGPUCopyPass(GPUCopyPassHandle copy_pass) => ( (delegate* unmanaged)( - _slots[181] is not null and var loadedFnPtr + _slots[182] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[181] = nativeContext.LoadFunction("SDL_EndGPUCopyPass", "SDL3") + : _slots[182] = nativeContext.LoadFunction("SDL_EndGPUCopyPass", "SDL3") ) )(copy_pass); @@ -69098,9 +70324,9 @@ public static void EndGPUCopyPass(GPUCopyPassHandle copy_pass) => void ISdl.EndGPURenderPass(GPURenderPassHandle render_pass) => ( (delegate* unmanaged)( - _slots[182] is not null and var loadedFnPtr + _slots[183] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[182] = nativeContext.LoadFunction("SDL_EndGPURenderPass", "SDL3") + : _slots[183] = nativeContext.LoadFunction("SDL_EndGPURenderPass", "SDL3") ) )(render_pass); @@ -69127,9 +70353,9 @@ int ISdl.EnterAppMainCallbacks( AppEventFunc, AppQuitFunc, int>)( - _slots[183] is not null and var loadedFnPtr + _slots[184] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[183] = nativeContext.LoadFunction("SDL_EnterAppMainCallbacks", "SDL3") + : _slots[184] = nativeContext.LoadFunction("SDL_EnterAppMainCallbacks", "SDL3") ) )(argc, argv, appinit, appiter, appevent, appquit); @@ -69188,9 +70414,9 @@ byte ISdl.EnumerateDirectory( ) => ( (delegate* unmanaged)( - _slots[184] is not null and var loadedFnPtr + _slots[185] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[184] = nativeContext.LoadFunction("SDL_EnumerateDirectory", "SDL3") + : _slots[185] = nativeContext.LoadFunction("SDL_EnumerateDirectory", "SDL3") ) )(path, callback, userdata); @@ -69236,9 +70462,9 @@ byte ISdl.EnumerateProperties( ) => ( (delegate* unmanaged)( - _slots[185] is not null and var loadedFnPtr + _slots[186] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[185] = nativeContext.LoadFunction("SDL_EnumerateProperties", "SDL3") + : _slots[186] = nativeContext.LoadFunction("SDL_EnumerateProperties", "SDL3") ) )(props, callback, userdata); @@ -69284,9 +70510,9 @@ byte ISdl.EnumerateStorageDirectory( ) => ( (delegate* unmanaged)( - _slots[186] is not null and var loadedFnPtr + _slots[187] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[186] = nativeContext.LoadFunction( + : _slots[187] = nativeContext.LoadFunction( "SDL_EnumerateStorageDirectory", "SDL3" ) @@ -69351,9 +70577,9 @@ public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) byte ISdl.EventEnabledRaw([NativeTypeName("Uint32")] uint type) => ( (delegate* unmanaged)( - _slots[187] is not null and var loadedFnPtr + _slots[188] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[187] = nativeContext.LoadFunction("SDL_EventEnabled", "SDL3") + : _slots[188] = nativeContext.LoadFunction("SDL_EventEnabled", "SDL3") ) )(type); @@ -69367,9 +70593,9 @@ public static byte EventEnabledRaw([NativeTypeName("Uint32")] uint type) => double ISdl.Exp(double x) => ( (delegate* unmanaged)( - _slots[188] is not null and var loadedFnPtr + _slots[189] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[188] = nativeContext.LoadFunction("SDL_exp", "SDL3") + : _slots[189] = nativeContext.LoadFunction("SDL_exp", "SDL3") ) )(x); @@ -69381,9 +70607,9 @@ _slots[188] is not null and var loadedFnPtr float ISdl.Expf(float x) => ( (delegate* unmanaged)( - _slots[189] is not null and var loadedFnPtr + _slots[190] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[189] = nativeContext.LoadFunction("SDL_expf", "SDL3") + : _slots[190] = nativeContext.LoadFunction("SDL_expf", "SDL3") ) )(x); @@ -69395,9 +70621,9 @@ _slots[189] is not null and var loadedFnPtr double ISdl.Fabs(double x) => ( (delegate* unmanaged)( - _slots[190] is not null and var loadedFnPtr + _slots[191] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[190] = nativeContext.LoadFunction("SDL_fabs", "SDL3") + : _slots[191] = nativeContext.LoadFunction("SDL_fabs", "SDL3") ) )(x); @@ -69413,9 +70639,9 @@ byte ISdl.FillSurfaceRect( ) => ( (delegate* unmanaged)( - _slots[191] is not null and var loadedFnPtr + _slots[192] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[191] = nativeContext.LoadFunction("SDL_FillSurfaceRect", "SDL3") + : _slots[192] = nativeContext.LoadFunction("SDL_FillSurfaceRect", "SDL3") ) )(dst, rect, color); @@ -69462,9 +70688,9 @@ byte ISdl.FillSurfaceRects( ) => ( (delegate* unmanaged)( - _slots[192] is not null and var loadedFnPtr + _slots[193] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[192] = nativeContext.LoadFunction("SDL_FillSurfaceRects", "SDL3") + : _slots[193] = nativeContext.LoadFunction("SDL_FillSurfaceRects", "SDL3") ) )(dst, rects, count, color); @@ -69512,9 +70738,9 @@ void ISdl.FilterEvents( ) => ( (delegate* unmanaged)( - _slots[193] is not null and var loadedFnPtr + _slots[194] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[193] = nativeContext.LoadFunction("SDL_FilterEvents", "SDL3") + : _slots[194] = nativeContext.LoadFunction("SDL_FilterEvents", "SDL3") ) )(filter, userdata); @@ -69557,9 +70783,9 @@ public static MaybeBool FlashWindow(WindowHandle window, FlashOperation op byte ISdl.FlashWindowRaw(WindowHandle window, FlashOperation operation) => ( (delegate* unmanaged)( - _slots[194] is not null and var loadedFnPtr + _slots[195] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[194] = nativeContext.LoadFunction("SDL_FlashWindow", "SDL3") + : _slots[195] = nativeContext.LoadFunction("SDL_FlashWindow", "SDL3") ) )(window, operation); @@ -69573,9 +70799,9 @@ public static byte FlashWindowRaw(WindowHandle window, FlashOperation operation) byte ISdl.FlipSurface(Surface* surface, FlipMode flip) => ( (delegate* unmanaged)( - _slots[195] is not null and var loadedFnPtr + _slots[196] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[195] = nativeContext.LoadFunction("SDL_FlipSurface", "SDL3") + : _slots[196] = nativeContext.LoadFunction("SDL_FlipSurface", "SDL3") ) )(surface, flip); @@ -69605,9 +70831,9 @@ public static MaybeBool FlipSurface(Ref surface, FlipMode flip) = double ISdl.Floor(double x) => ( (delegate* unmanaged)( - _slots[196] is not null and var loadedFnPtr + _slots[197] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[196] = nativeContext.LoadFunction("SDL_floor", "SDL3") + : _slots[197] = nativeContext.LoadFunction("SDL_floor", "SDL3") ) )(x); @@ -69619,9 +70845,9 @@ _slots[196] is not null and var loadedFnPtr float ISdl.Floorf(float x) => ( (delegate* unmanaged)( - _slots[197] is not null and var loadedFnPtr + _slots[198] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[197] = nativeContext.LoadFunction("SDL_floorf", "SDL3") + : _slots[198] = nativeContext.LoadFunction("SDL_floorf", "SDL3") ) )(x); @@ -69644,9 +70870,9 @@ public static MaybeBool FlushAudioStream(AudioStreamHandle stream) => byte ISdl.FlushAudioStreamRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[198] is not null and var loadedFnPtr + _slots[199] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[198] = nativeContext.LoadFunction("SDL_FlushAudioStream", "SDL3") + : _slots[199] = nativeContext.LoadFunction("SDL_FlushAudioStream", "SDL3") ) )(stream); @@ -69660,9 +70886,9 @@ public static byte FlushAudioStreamRaw(AudioStreamHandle stream) => void ISdl.FlushEvent([NativeTypeName("Uint32")] uint type) => ( (delegate* unmanaged)( - _slots[199] is not null and var loadedFnPtr + _slots[200] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[199] = nativeContext.LoadFunction("SDL_FlushEvent", "SDL3") + : _slots[200] = nativeContext.LoadFunction("SDL_FlushEvent", "SDL3") ) )(type); @@ -69678,9 +70904,9 @@ void ISdl.FlushEvents( ) => ( (delegate* unmanaged)( - _slots[200] is not null and var loadedFnPtr + _slots[201] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[200] = nativeContext.LoadFunction("SDL_FlushEvents", "SDL3") + : _slots[201] = nativeContext.LoadFunction("SDL_FlushEvents", "SDL3") ) )(minType, maxType); @@ -69705,9 +70931,9 @@ MaybeBool ISdl.FlushIO(IOStreamHandle context) => byte ISdl.FlushIORaw(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[201] is not null and var loadedFnPtr + _slots[202] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[201] = nativeContext.LoadFunction("SDL_FlushIO", "SDL3") + : _slots[202] = nativeContext.LoadFunction("SDL_FlushIO", "SDL3") ) )(context); @@ -69731,9 +70957,9 @@ public static MaybeBool FlushRenderer(RendererHandle renderer) => byte ISdl.FlushRendererRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[202] is not null and var loadedFnPtr + _slots[203] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[202] = nativeContext.LoadFunction("SDL_FlushRenderer", "SDL3") + : _slots[203] = nativeContext.LoadFunction("SDL_FlushRenderer", "SDL3") ) )(renderer); @@ -69747,9 +70973,9 @@ public static byte FlushRendererRaw(RendererHandle renderer) => double ISdl.Fmod(double x, double y) => ( (delegate* unmanaged)( - _slots[203] is not null and var loadedFnPtr + _slots[204] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[203] = nativeContext.LoadFunction("SDL_fmod", "SDL3") + : _slots[204] = nativeContext.LoadFunction("SDL_fmod", "SDL3") ) )(x, y); @@ -69761,9 +70987,9 @@ _slots[203] is not null and var loadedFnPtr float ISdl.Fmodf(float x, float y) => ( (delegate* unmanaged)( - _slots[204] is not null and var loadedFnPtr + _slots[205] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[204] = nativeContext.LoadFunction("SDL_fmodf", "SDL3") + : _slots[205] = nativeContext.LoadFunction("SDL_fmodf", "SDL3") ) )(x, y); @@ -69775,9 +71001,9 @@ _slots[204] is not null and var loadedFnPtr void ISdl.Free(void* mem) => ( (delegate* unmanaged)( - _slots[205] is not null and var loadedFnPtr + _slots[206] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[205] = nativeContext.LoadFunction("SDL_free", "SDL3") + : _slots[206] = nativeContext.LoadFunction("SDL_free", "SDL3") ) )(mem); @@ -69814,9 +71040,9 @@ public static MaybeBool GamepadConnected(GamepadHandle gamepad) => byte ISdl.GamepadConnectedRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[206] is not null and var loadedFnPtr + _slots[207] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[206] = nativeContext.LoadFunction("SDL_GamepadConnected", "SDL3") + : _slots[207] = nativeContext.LoadFunction("SDL_GamepadConnected", "SDL3") ) )(gamepad); @@ -69840,9 +71066,9 @@ MaybeBool ISdl.GamepadEventsEnabled() => byte ISdl.GamepadEventsEnabledRaw() => ( (delegate* unmanaged)( - _slots[207] is not null and var loadedFnPtr + _slots[208] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[207] = nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") + : _slots[208] = nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") ) )(); @@ -69866,9 +71092,9 @@ public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis byte ISdl.GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[208] is not null and var loadedFnPtr + _slots[209] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[208] = nativeContext.LoadFunction("SDL_GamepadHasAxis", "SDL3") + : _slots[209] = nativeContext.LoadFunction("SDL_GamepadHasAxis", "SDL3") ) )(gamepad, axis); @@ -69893,9 +71119,9 @@ public static MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadBut byte ISdl.GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => ( (delegate* unmanaged)( - _slots[209] is not null and var loadedFnPtr + _slots[210] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[209] = nativeContext.LoadFunction("SDL_GamepadHasButton", "SDL3") + : _slots[210] = nativeContext.LoadFunction("SDL_GamepadHasButton", "SDL3") ) )(gamepad, button); @@ -69920,9 +71146,9 @@ public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType byte ISdl.GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => ( (delegate* unmanaged)( - _slots[210] is not null and var loadedFnPtr + _slots[211] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[210] = nativeContext.LoadFunction("SDL_GamepadHasSensor", "SDL3") + : _slots[211] = nativeContext.LoadFunction("SDL_GamepadHasSensor", "SDL3") ) )(gamepad, type); @@ -69947,9 +71173,9 @@ public static MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, Sensor byte ISdl.GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => ( (delegate* unmanaged)( - _slots[211] is not null and var loadedFnPtr + _slots[212] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[211] = nativeContext.LoadFunction("SDL_GamepadSensorEnabled", "SDL3") + : _slots[212] = nativeContext.LoadFunction("SDL_GamepadSensorEnabled", "SDL3") ) )(gamepad, type); @@ -69959,6 +71185,20 @@ _slots[211] is not null and var loadedFnPtr public static byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => DllImport.GamepadSensorEnabledRaw(gamepad, type); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GDKSuspendComplete() => + ( + (delegate* unmanaged)( + _slots[213] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[213] = nativeContext.LoadFunction("SDL_GDKSuspendComplete", "SDL3") + ) + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GDKSuspendComplete")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GDKSuspendComplete() => DllImport.GDKSuspendComplete(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GenerateMipmapsForGPUTexture( GPUCommandBufferHandle command_buffer, @@ -69966,9 +71206,9 @@ GPUTextureHandle texture ) => ( (delegate* unmanaged)( - _slots[212] is not null and var loadedFnPtr + _slots[214] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[212] = nativeContext.LoadFunction( + : _slots[214] = nativeContext.LoadFunction( "SDL_GenerateMipmapsForGPUTexture", "SDL3" ) @@ -69986,9 +71226,9 @@ GPUTextureHandle texture sbyte* ISdl.GetAppMetadataProperty([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[213] is not null and var loadedFnPtr + _slots[215] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[213] = nativeContext.LoadFunction("SDL_GetAppMetadataProperty", "SDL3") + : _slots[215] = nativeContext.LoadFunction("SDL_GetAppMetadataProperty", "SDL3") ) )(name); @@ -70019,9 +71259,9 @@ public static Ptr GetAppMetadataProperty( AssertionHandler ISdl.GetAssertionHandler(void** puserdata) => ( (delegate* unmanaged)( - _slots[214] is not null and var loadedFnPtr + _slots[216] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[214] = nativeContext.LoadFunction("SDL_GetAssertionHandler", "SDL3") + : _slots[216] = nativeContext.LoadFunction("SDL_GetAssertionHandler", "SDL3") ) )(puserdata); @@ -70060,9 +71300,9 @@ public static AssertionHandler GetAssertionHandler(Ref2D puserdata) => AssertData* ISdl.GetAssertionReportRaw() => ( (delegate* unmanaged)( - _slots[215] is not null and var loadedFnPtr + _slots[217] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[215] = nativeContext.LoadFunction("SDL_GetAssertionReport", "SDL3") + : _slots[217] = nativeContext.LoadFunction("SDL_GetAssertionReport", "SDL3") ) )(); @@ -70075,9 +71315,9 @@ _slots[215] is not null and var loadedFnPtr int ISdl.GetAtomicInt(AtomicInt* a) => ( (delegate* unmanaged)( - _slots[216] is not null and var loadedFnPtr + _slots[218] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[216] = nativeContext.LoadFunction("SDL_GetAtomicInt", "SDL3") + : _slots[218] = nativeContext.LoadFunction("SDL_GetAtomicInt", "SDL3") ) )(a); @@ -70103,9 +71343,9 @@ int ISdl.GetAtomicInt(Ref a) void* ISdl.GetAtomicPointer(void** a) => ( (delegate* unmanaged)( - _slots[217] is not null and var loadedFnPtr + _slots[219] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[217] = nativeContext.LoadFunction("SDL_GetAtomicPointer", "SDL3") + : _slots[219] = nativeContext.LoadFunction("SDL_GetAtomicPointer", "SDL3") ) )(a); @@ -70131,9 +71371,9 @@ Ptr ISdl.GetAtomicPointer(Ref2D a) uint ISdl.GetAtomicU32(AtomicU32* a) => ( (delegate* unmanaged)( - _slots[218] is not null and var loadedFnPtr + _slots[220] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[218] = nativeContext.LoadFunction("SDL_GetAtomicU32", "SDL3") + : _slots[220] = nativeContext.LoadFunction("SDL_GetAtomicU32", "SDL3") ) )(a); @@ -70164,9 +71404,9 @@ uint ISdl.GetAtomicU32(Ref a) ) => ( (delegate* unmanaged)( - _slots[219] is not null and var loadedFnPtr + _slots[221] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[219] = nativeContext.LoadFunction( + : _slots[221] = nativeContext.LoadFunction( "SDL_GetAudioDeviceChannelMap", "SDL3" ) @@ -70208,9 +71448,9 @@ byte ISdl.GetAudioDeviceFormat( ) => ( (delegate* unmanaged)( - _slots[220] is not null and var loadedFnPtr + _slots[222] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[220] = nativeContext.LoadFunction("SDL_GetAudioDeviceFormat", "SDL3") + : _slots[222] = nativeContext.LoadFunction("SDL_GetAudioDeviceFormat", "SDL3") ) )(devid, spec, sample_frames); @@ -70252,9 +71492,9 @@ Ref sample_frames float ISdl.GetAudioDeviceGain([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( (delegate* unmanaged)( - _slots[221] is not null and var loadedFnPtr + _slots[223] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[221] = nativeContext.LoadFunction("SDL_GetAudioDeviceGain", "SDL3") + : _slots[223] = nativeContext.LoadFunction("SDL_GetAudioDeviceGain", "SDL3") ) )(devid); @@ -70278,9 +71518,9 @@ public static Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID") sbyte* ISdl.GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( (delegate* unmanaged)( - _slots[222] is not null and var loadedFnPtr + _slots[224] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[222] = nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") + : _slots[224] = nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") ) )(devid); @@ -70303,9 +71543,9 @@ _slots[222] is not null and var loadedFnPtr sbyte* ISdl.GetAudioDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[223] is not null and var loadedFnPtr + _slots[225] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[223] = nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") + : _slots[225] = nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") ) )(index); @@ -70329,9 +71569,9 @@ public static Ptr GetAudioFormatName(AudioFormat format) => sbyte* ISdl.GetAudioFormatNameRaw(AudioFormat format) => ( (delegate* unmanaged)( - _slots[224] is not null and var loadedFnPtr + _slots[226] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[224] = nativeContext.LoadFunction("SDL_GetAudioFormatName", "SDL3") + : _slots[226] = nativeContext.LoadFunction("SDL_GetAudioFormatName", "SDL3") ) )(format); @@ -70345,9 +71585,9 @@ _slots[224] is not null and var loadedFnPtr uint* ISdl.GetAudioPlaybackDevices(int* count) => ( (delegate* unmanaged)( - _slots[225] is not null and var loadedFnPtr + _slots[227] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[225] = nativeContext.LoadFunction( + : _slots[227] = nativeContext.LoadFunction( "SDL_GetAudioPlaybackDevices", "SDL3" ) @@ -70380,9 +71620,9 @@ public static Ptr GetAudioPlaybackDevices(Ref count) => uint* ISdl.GetAudioRecordingDevices(int* count) => ( (delegate* unmanaged)( - _slots[226] is not null and var loadedFnPtr + _slots[228] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[226] = nativeContext.LoadFunction( + : _slots[228] = nativeContext.LoadFunction( "SDL_GetAudioRecordingDevices", "SDL3" ) @@ -70415,9 +71655,9 @@ public static Ptr GetAudioRecordingDevices(Ref count) => int ISdl.GetAudioStreamAvailable(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[227] is not null and var loadedFnPtr + _slots[229] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[227] = nativeContext.LoadFunction( + : _slots[229] = nativeContext.LoadFunction( "SDL_GetAudioStreamAvailable", "SDL3" ) @@ -70433,9 +71673,9 @@ public static int GetAudioStreamAvailable(AudioStreamHandle stream) => int ISdl.GetAudioStreamData(AudioStreamHandle stream, void* buf, int len) => ( (delegate* unmanaged)( - _slots[228] is not null and var loadedFnPtr + _slots[230] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[228] = nativeContext.LoadFunction("SDL_GetAudioStreamData", "SDL3") + : _slots[230] = nativeContext.LoadFunction("SDL_GetAudioStreamData", "SDL3") ) )(stream, buf, len); @@ -70463,9 +71703,9 @@ public static int GetAudioStreamData(AudioStreamHandle stream, Ref buf, int len) uint ISdl.GetAudioStreamDevice(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[229] is not null and var loadedFnPtr + _slots[231] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[229] = nativeContext.LoadFunction("SDL_GetAudioStreamDevice", "SDL3") + : _slots[231] = nativeContext.LoadFunction("SDL_GetAudioStreamDevice", "SDL3") ) )(stream); @@ -70483,9 +71723,9 @@ byte ISdl.GetAudioStreamFormat( ) => ( (delegate* unmanaged)( - _slots[230] is not null and var loadedFnPtr + _slots[232] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[230] = nativeContext.LoadFunction("SDL_GetAudioStreamFormat", "SDL3") + : _slots[232] = nativeContext.LoadFunction("SDL_GetAudioStreamFormat", "SDL3") ) )(stream, src_spec, dst_spec); @@ -70527,9 +71767,9 @@ Ref dst_spec float ISdl.GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[231] is not null and var loadedFnPtr + _slots[233] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[231] = nativeContext.LoadFunction( + : _slots[233] = nativeContext.LoadFunction( "SDL_GetAudioStreamFrequencyRatio", "SDL3" ) @@ -70545,9 +71785,9 @@ public static float GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => float ISdl.GetAudioStreamGain(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[232] is not null and var loadedFnPtr + _slots[234] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[232] = nativeContext.LoadFunction("SDL_GetAudioStreamGain", "SDL3") + : _slots[234] = nativeContext.LoadFunction("SDL_GetAudioStreamGain", "SDL3") ) )(stream); @@ -70560,9 +71800,9 @@ public static float GetAudioStreamGain(AudioStreamHandle stream) => int* ISdl.GetAudioStreamInputChannelMap(AudioStreamHandle stream, int* count) => ( (delegate* unmanaged)( - _slots[233] is not null and var loadedFnPtr + _slots[235] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[233] = nativeContext.LoadFunction( + : _slots[235] = nativeContext.LoadFunction( "SDL_GetAudioStreamInputChannelMap", "SDL3" ) @@ -70595,9 +71835,9 @@ Ref count int* ISdl.GetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* count) => ( (delegate* unmanaged)( - _slots[234] is not null and var loadedFnPtr + _slots[236] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[234] = nativeContext.LoadFunction( + : _slots[236] = nativeContext.LoadFunction( "SDL_GetAudioStreamOutputChannelMap", "SDL3" ) @@ -70630,9 +71870,9 @@ Ref count uint ISdl.GetAudioStreamProperties(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[235] is not null and var loadedFnPtr + _slots[237] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[235] = nativeContext.LoadFunction( + : _slots[237] = nativeContext.LoadFunction( "SDL_GetAudioStreamProperties", "SDL3" ) @@ -70649,9 +71889,9 @@ public static uint GetAudioStreamProperties(AudioStreamHandle stream) => int ISdl.GetAudioStreamQueued(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[236] is not null and var loadedFnPtr + _slots[238] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[236] = nativeContext.LoadFunction("SDL_GetAudioStreamQueued", "SDL3") + : _slots[238] = nativeContext.LoadFunction("SDL_GetAudioStreamQueued", "SDL3") ) )(stream); @@ -70673,9 +71913,9 @@ public static int GetAudioStreamQueued(AudioStreamHandle stream) => sbyte* ISdl.GetBasePathRaw() => ( (delegate* unmanaged)( - _slots[237] is not null and var loadedFnPtr + _slots[239] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[237] = nativeContext.LoadFunction("SDL_GetBasePath", "SDL3") + : _slots[239] = nativeContext.LoadFunction("SDL_GetBasePath", "SDL3") ) )(); @@ -70692,9 +71932,9 @@ byte ISdl.GetBooleanProperty( ) => ( (delegate* unmanaged)( - _slots[238] is not null and var loadedFnPtr + _slots[240] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[238] = nativeContext.LoadFunction("SDL_GetBooleanProperty", "SDL3") + : _slots[240] = nativeContext.LoadFunction("SDL_GetBooleanProperty", "SDL3") ) )(props, name, default_value); @@ -70744,9 +71984,9 @@ public static MaybeBool GetBooleanProperty( sbyte* ISdl.GetCameraDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[239] is not null and var loadedFnPtr + _slots[241] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[239] = nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") + : _slots[241] = nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") ) )(index); @@ -70759,9 +71999,9 @@ _slots[239] is not null and var loadedFnPtr byte ISdl.GetCameraFormat(CameraHandle camera, CameraSpec* spec) => ( (delegate* unmanaged)( - _slots[240] is not null and var loadedFnPtr + _slots[242] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[240] = nativeContext.LoadFunction("SDL_GetCameraFormat", "SDL3") + : _slots[242] = nativeContext.LoadFunction("SDL_GetCameraFormat", "SDL3") ) )(camera, spec); @@ -70791,9 +72031,9 @@ public static MaybeBool GetCameraFormat(CameraHandle camera, Ref ( (delegate* unmanaged)( - _slots[241] is not null and var loadedFnPtr + _slots[243] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[241] = nativeContext.LoadFunction("SDL_GetCameraID", "SDL3") + : _slots[243] = nativeContext.LoadFunction("SDL_GetCameraID", "SDL3") ) )(camera); @@ -70817,9 +72057,9 @@ public static Ptr GetCameraName([NativeTypeName("SDL_CameraID")] uint ins sbyte* ISdl.GetCameraNameRaw([NativeTypeName("SDL_CameraID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[242] is not null and var loadedFnPtr + _slots[244] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[242] = nativeContext.LoadFunction("SDL_GetCameraName", "SDL3") + : _slots[244] = nativeContext.LoadFunction("SDL_GetCameraName", "SDL3") ) )(instance_id); @@ -70833,9 +72073,9 @@ _slots[242] is not null and var loadedFnPtr int ISdl.GetCameraPermissionState(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[243] is not null and var loadedFnPtr + _slots[245] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[243] = nativeContext.LoadFunction( + : _slots[245] = nativeContext.LoadFunction( "SDL_GetCameraPermissionState", "SDL3" ) @@ -70851,9 +72091,9 @@ public static int GetCameraPermissionState(CameraHandle camera) => CameraPosition ISdl.GetCameraPosition([NativeTypeName("SDL_CameraID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[244] is not null and var loadedFnPtr + _slots[246] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[244] = nativeContext.LoadFunction("SDL_GetCameraPosition", "SDL3") + : _slots[246] = nativeContext.LoadFunction("SDL_GetCameraPosition", "SDL3") ) )(instance_id); @@ -70867,9 +72107,9 @@ public static CameraPosition GetCameraPosition( uint ISdl.GetCameraProperties(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[245] is not null and var loadedFnPtr + _slots[247] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[245] = nativeContext.LoadFunction("SDL_GetCameraProperties", "SDL3") + : _slots[247] = nativeContext.LoadFunction("SDL_GetCameraProperties", "SDL3") ) )(camera); @@ -70883,9 +72123,9 @@ public static uint GetCameraProperties(CameraHandle camera) => uint* ISdl.GetCameras(int* count) => ( (delegate* unmanaged)( - _slots[246] is not null and var loadedFnPtr + _slots[248] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[246] = nativeContext.LoadFunction("SDL_GetCameras", "SDL3") + : _slots[248] = nativeContext.LoadFunction("SDL_GetCameras", "SDL3") ) )(count); @@ -70911,36 +72151,36 @@ Ptr ISdl.GetCameras(Ref count) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] CameraSpec** ISdl.GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, int* count ) => ( (delegate* unmanaged)( - _slots[247] is not null and var loadedFnPtr + _slots[249] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[247] = nativeContext.LoadFunction( + : _slots[249] = nativeContext.LoadFunction( "SDL_GetCameraSupportedFormats", "SDL3" ) ) - )(devid, count); + )(instance_id, count); [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static CameraSpec** GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, int* count - ) => DllImport.GetCameraSupportedFormats(devid, count); + ) => DllImport.GetCameraSupportedFormats(instance_id, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr2D ISdl.GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, Ref count ) { fixed (int* __dsl_count = count) { - return (CameraSpec**)((ISdl)this).GetCameraSupportedFormats(devid, __dsl_count); + return (CameraSpec**)((ISdl)this).GetCameraSupportedFormats(instance_id, __dsl_count); } } @@ -70948,9 +72188,9 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static Ptr2D GetCameraSupportedFormats( - [NativeTypeName("SDL_CameraID")] uint devid, + [NativeTypeName("SDL_CameraID")] uint instance_id, Ref count - ) => DllImport.GetCameraSupportedFormats(devid, count); + ) => DllImport.GetCameraSupportedFormats(instance_id, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.GetClipboardData( @@ -70959,9 +72199,9 @@ Ref count ) => ( (delegate* unmanaged)( - _slots[248] is not null and var loadedFnPtr + _slots[250] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[248] = nativeContext.LoadFunction("SDL_GetClipboardData", "SDL3") + : _slots[250] = nativeContext.LoadFunction("SDL_GetClipboardData", "SDL3") ) )(mime_type, size); @@ -70997,9 +72237,9 @@ public static Ptr GetClipboardData( sbyte** ISdl.GetClipboardMimeTypes([NativeTypeName("size_t *")] nuint* num_mime_types) => ( (delegate* unmanaged)( - _slots[249] is not null and var loadedFnPtr + _slots[251] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[249] = nativeContext.LoadFunction("SDL_GetClipboardMimeTypes", "SDL3") + : _slots[251] = nativeContext.LoadFunction("SDL_GetClipboardMimeTypes", "SDL3") ) )(num_mime_types); @@ -71040,9 +72280,9 @@ public static Ptr2D GetClipboardMimeTypes( sbyte* ISdl.GetClipboardTextRaw() => ( (delegate* unmanaged)( - _slots[250] is not null and var loadedFnPtr + _slots[252] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[250] = nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3") + : _slots[252] = nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3") ) )(); @@ -71058,18 +72298,18 @@ byte ISdl.GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] byte include_high_density_modes, - DisplayMode* mode + DisplayMode* closest ) => ( (delegate* unmanaged)( - _slots[251] is not null and var loadedFnPtr + _slots[253] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[251] = nativeContext.LoadFunction( + : _slots[253] = nativeContext.LoadFunction( "SDL_GetClosestFullscreenDisplayMode", "SDL3" ) ) - )(displayID, w, h, refresh_rate, include_high_density_modes, mode); + )(displayID, w, h, refresh_rate, include_high_density_modes, closest); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] @@ -71080,7 +72320,7 @@ public static byte GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] byte include_high_density_modes, - DisplayMode* mode + DisplayMode* closest ) => DllImport.GetClosestFullscreenDisplayMode( displayID, @@ -71088,7 +72328,7 @@ public static byte GetClosestFullscreenDisplayMode( h, refresh_rate, include_high_density_modes, - mode + closest ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -71098,10 +72338,10 @@ MaybeBool ISdl.GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] MaybeBool include_high_density_modes, - Ref mode + Ref closest ) { - fixed (DisplayMode* __dsl_mode = mode) + fixed (DisplayMode* __dsl_closest = closest) { return (MaybeBool) (byte) @@ -71111,7 +72351,7 @@ Ref mode h, refresh_rate, (byte)include_high_density_modes, - __dsl_mode + __dsl_closest ); } } @@ -71126,7 +72366,7 @@ public static MaybeBool GetClosestFullscreenDisplayMode( int h, float refresh_rate, [NativeTypeName("bool")] MaybeBool include_high_density_modes, - Ref mode + Ref closest ) => DllImport.GetClosestFullscreenDisplayMode( displayID, @@ -71134,16 +72374,16 @@ Ref mode h, refresh_rate, include_high_density_modes, - mode + closest ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCPUCacheLineSize() => ( (delegate* unmanaged)( - _slots[252] is not null and var loadedFnPtr + _slots[254] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[252] = nativeContext.LoadFunction("SDL_GetCPUCacheLineSize", "SDL3") + : _slots[254] = nativeContext.LoadFunction("SDL_GetCPUCacheLineSize", "SDL3") ) )(); @@ -71164,9 +72404,9 @@ _slots[252] is not null and var loadedFnPtr sbyte* ISdl.GetCurrentAudioDriverRaw() => ( (delegate* unmanaged)( - _slots[253] is not null and var loadedFnPtr + _slots[255] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[253] = nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") + : _slots[255] = nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") ) )(); @@ -71188,9 +72428,9 @@ _slots[253] is not null and var loadedFnPtr sbyte* ISdl.GetCurrentCameraDriverRaw() => ( (delegate* unmanaged)( - _slots[254] is not null and var loadedFnPtr + _slots[256] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[254] = nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") + : _slots[256] = nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") ) )(); @@ -71199,6 +72439,30 @@ _slots[254] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static sbyte* GetCurrentCameraDriverRaw() => DllImport.GetCurrentCameraDriverRaw(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetCurrentDirectory() => (sbyte*)((ISdl)this).GetCurrentDirectoryRaw(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCurrentDirectory() => DllImport.GetCurrentDirectory(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetCurrentDirectoryRaw() => + ( + (delegate* unmanaged)( + _slots[257] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[257] = nativeContext.LoadFunction("SDL_GetCurrentDirectory", "SDL3") + ) + )(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetCurrentDirectoryRaw() => DllImport.GetCurrentDirectoryRaw(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetCurrentDisplayMode([NativeTypeName("SDL_DisplayID")] uint displayID) => (DisplayMode*)((ISdl)this).GetCurrentDisplayModeRaw(displayID); @@ -71215,9 +72479,9 @@ public static Ptr GetCurrentDisplayMode( DisplayMode* ISdl.GetCurrentDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[255] is not null and var loadedFnPtr + _slots[258] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[255] = nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") + : _slots[258] = nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") ) )(displayID); @@ -71234,9 +72498,9 @@ DisplayOrientation ISdl.GetCurrentDisplayOrientation( ) => ( (delegate* unmanaged)( - _slots[256] is not null and var loadedFnPtr + _slots[259] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[256] = nativeContext.LoadFunction( + : _slots[259] = nativeContext.LoadFunction( "SDL_GetCurrentDisplayOrientation", "SDL3" ) @@ -71253,9 +72517,9 @@ public static DisplayOrientation GetCurrentDisplayOrientation( byte ISdl.GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => ( (delegate* unmanaged)( - _slots[257] is not null and var loadedFnPtr + _slots[260] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[257] = nativeContext.LoadFunction( + : _slots[260] = nativeContext.LoadFunction( "SDL_GetCurrentRenderOutputSize", "SDL3" ) @@ -71293,9 +72557,9 @@ Ref h ulong ISdl.GetCurrentThreadID() => ( (delegate* unmanaged)( - _slots[258] is not null and var loadedFnPtr + _slots[261] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[258] = nativeContext.LoadFunction("SDL_GetCurrentThreadID", "SDL3") + : _slots[261] = nativeContext.LoadFunction("SDL_GetCurrentThreadID", "SDL3") ) )(); @@ -71308,9 +72572,9 @@ _slots[258] is not null and var loadedFnPtr byte ISdl.GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => ( (delegate* unmanaged)( - _slots[259] is not null and var loadedFnPtr + _slots[262] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[259] = nativeContext.LoadFunction("SDL_GetCurrentTime", "SDL3") + : _slots[262] = nativeContext.LoadFunction("SDL_GetCurrentTime", "SDL3") ) )(ticks); @@ -71349,9 +72613,9 @@ public static MaybeBool GetCurrentTime([NativeTypeName("SDL_Time *")] Ref< sbyte* ISdl.GetCurrentVideoDriverRaw() => ( (delegate* unmanaged)( - _slots[260] is not null and var loadedFnPtr + _slots[263] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[260] = nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") + : _slots[263] = nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") ) )(); @@ -71364,9 +72628,9 @@ _slots[260] is not null and var loadedFnPtr CursorHandle ISdl.GetCursor() => ( (delegate* unmanaged)( - _slots[261] is not null and var loadedFnPtr + _slots[264] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[261] = nativeContext.LoadFunction("SDL_GetCursor", "SDL3") + : _slots[264] = nativeContext.LoadFunction("SDL_GetCursor", "SDL3") ) )(); @@ -71378,9 +72642,9 @@ _slots[261] is not null and var loadedFnPtr byte ISdl.GetDateTimeLocalePreferences(DateFormat* dateFormat, TimeFormat* timeFormat) => ( (delegate* unmanaged)( - _slots[262] is not null and var loadedFnPtr + _slots[265] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[262] = nativeContext.LoadFunction( + : _slots[265] = nativeContext.LoadFunction( "SDL_GetDateTimeLocalePreferences", "SDL3" ) @@ -71422,9 +72686,9 @@ Ref timeFormat int ISdl.GetDayOfWeek(int year, int month, int day) => ( (delegate* unmanaged)( - _slots[263] is not null and var loadedFnPtr + _slots[266] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[263] = nativeContext.LoadFunction("SDL_GetDayOfWeek", "SDL3") + : _slots[266] = nativeContext.LoadFunction("SDL_GetDayOfWeek", "SDL3") ) )(year, month, day); @@ -71437,9 +72701,9 @@ public static int GetDayOfWeek(int year, int month, int day) => int ISdl.GetDayOfYear(int year, int month, int day) => ( (delegate* unmanaged)( - _slots[264] is not null and var loadedFnPtr + _slots[267] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[264] = nativeContext.LoadFunction("SDL_GetDayOfYear", "SDL3") + : _slots[267] = nativeContext.LoadFunction("SDL_GetDayOfYear", "SDL3") ) )(year, month, day); @@ -71452,9 +72716,9 @@ public static int GetDayOfYear(int year, int month, int day) => int ISdl.GetDaysInMonth(int year, int month) => ( (delegate* unmanaged)( - _slots[265] is not null and var loadedFnPtr + _slots[268] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[265] = nativeContext.LoadFunction("SDL_GetDaysInMonth", "SDL3") + : _slots[268] = nativeContext.LoadFunction("SDL_GetDaysInMonth", "SDL3") ) )(year, month); @@ -71466,9 +72730,9 @@ _slots[265] is not null and var loadedFnPtr AssertionHandler ISdl.GetDefaultAssertionHandler() => ( (delegate* unmanaged)( - _slots[266] is not null and var loadedFnPtr + _slots[269] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[266] = nativeContext.LoadFunction( + : _slots[269] = nativeContext.LoadFunction( "SDL_GetDefaultAssertionHandler", "SDL3" ) @@ -71485,9 +72749,9 @@ public static AssertionHandler GetDefaultAssertionHandler() => CursorHandle ISdl.GetDefaultCursor() => ( (delegate* unmanaged)( - _slots[267] is not null and var loadedFnPtr + _slots[270] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[267] = nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") + : _slots[270] = nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") ) )(); @@ -71499,9 +72763,9 @@ _slots[267] is not null and var loadedFnPtr LogOutputFunction ISdl.GetDefaultLogOutputFunction() => ( (delegate* unmanaged)( - _slots[268] is not null and var loadedFnPtr + _slots[271] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[268] = nativeContext.LoadFunction( + : _slots[271] = nativeContext.LoadFunction( "SDL_GetDefaultLogOutputFunction", "SDL3" ) @@ -71530,9 +72794,9 @@ public static Ptr GetDesktopDisplayMode( DisplayMode* ISdl.GetDesktopDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[269] is not null and var loadedFnPtr + _slots[272] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[269] = nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") + : _slots[272] = nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") ) )(displayID); @@ -71547,9 +72811,9 @@ _slots[269] is not null and var loadedFnPtr byte ISdl.GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => ( (delegate* unmanaged)( - _slots[270] is not null and var loadedFnPtr + _slots[273] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[270] = nativeContext.LoadFunction("SDL_GetDisplayBounds", "SDL3") + : _slots[273] = nativeContext.LoadFunction("SDL_GetDisplayBounds", "SDL3") ) )(displayID, rect); @@ -71586,9 +72850,9 @@ Ref rect float ISdl.GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[271] is not null and var loadedFnPtr + _slots[274] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[271] = nativeContext.LoadFunction("SDL_GetDisplayContentScale", "SDL3") + : _slots[274] = nativeContext.LoadFunction("SDL_GetDisplayContentScale", "SDL3") ) )(displayID); @@ -71601,9 +72865,9 @@ public static float GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uin uint ISdl.GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point) => ( (delegate* unmanaged)( - _slots[272] is not null and var loadedFnPtr + _slots[275] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[272] = nativeContext.LoadFunction("SDL_GetDisplayForPoint", "SDL3") + : _slots[275] = nativeContext.LoadFunction("SDL_GetDisplayForPoint", "SDL3") ) )(point); @@ -71633,9 +72897,9 @@ public static uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Ref< uint ISdl.GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => ( (delegate* unmanaged)( - _slots[273] is not null and var loadedFnPtr + _slots[276] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[273] = nativeContext.LoadFunction("SDL_GetDisplayForRect", "SDL3") + : _slots[276] = nativeContext.LoadFunction("SDL_GetDisplayForRect", "SDL3") ) )(rect); @@ -71665,9 +72929,9 @@ public static uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref ( (delegate* unmanaged)( - _slots[274] is not null and var loadedFnPtr + _slots[277] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[274] = nativeContext.LoadFunction("SDL_GetDisplayForWindow", "SDL3") + : _slots[277] = nativeContext.LoadFunction("SDL_GetDisplayForWindow", "SDL3") ) )(window); @@ -71692,9 +72956,9 @@ public static Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint d sbyte* ISdl.GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[275] is not null and var loadedFnPtr + _slots[278] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[275] = nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") + : _slots[278] = nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") ) )(displayID); @@ -71708,9 +72972,9 @@ _slots[275] is not null and var loadedFnPtr uint ISdl.GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[276] is not null and var loadedFnPtr + _slots[279] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[276] = nativeContext.LoadFunction("SDL_GetDisplayProperties", "SDL3") + : _slots[279] = nativeContext.LoadFunction("SDL_GetDisplayProperties", "SDL3") ) )(displayID); @@ -71724,9 +72988,9 @@ public static uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint d uint* ISdl.GetDisplays(int* count) => ( (delegate* unmanaged)( - _slots[277] is not null and var loadedFnPtr + _slots[280] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[277] = nativeContext.LoadFunction("SDL_GetDisplays", "SDL3") + : _slots[280] = nativeContext.LoadFunction("SDL_GetDisplays", "SDL3") ) )(count); @@ -71757,9 +73021,9 @@ byte ISdl.GetDisplayUsableBounds( ) => ( (delegate* unmanaged)( - _slots[278] is not null and var loadedFnPtr + _slots[281] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[278] = nativeContext.LoadFunction("SDL_GetDisplayUsableBounds", "SDL3") + : _slots[281] = nativeContext.LoadFunction("SDL_GetDisplayUsableBounds", "SDL3") ) )(displayID, rect); @@ -71797,9 +73061,9 @@ Ref rect sbyte* ISdl.Getenv([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[279] is not null and var loadedFnPtr + _slots[282] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[279] = nativeContext.LoadFunction("SDL_getenv", "SDL3") + : _slots[282] = nativeContext.LoadFunction("SDL_getenv", "SDL3") ) )(name); @@ -71829,9 +73093,9 @@ public static Ptr Getenv([NativeTypeName("const char *")] Ref name sbyte* ISdl.GetenvUnsafe([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[280] is not null and var loadedFnPtr + _slots[283] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[280] = nativeContext.LoadFunction("SDL_getenv_unsafe", "SDL3") + : _slots[283] = nativeContext.LoadFunction("SDL_getenv_unsafe", "SDL3") ) )(name); @@ -71861,9 +73125,9 @@ public static Ptr GetenvUnsafe([NativeTypeName("const char *")] Ref ( (delegate* unmanaged)( - _slots[281] is not null and var loadedFnPtr + _slots[284] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[281] = nativeContext.LoadFunction("SDL_GetEnvironment", "SDL3") + : _slots[284] = nativeContext.LoadFunction("SDL_GetEnvironment", "SDL3") ) )(); @@ -71878,9 +73142,9 @@ _slots[281] is not null and var loadedFnPtr ) => ( (delegate* unmanaged)( - _slots[282] is not null and var loadedFnPtr + _slots[285] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[282] = nativeContext.LoadFunction("SDL_GetEnvironmentVariable", "SDL3") + : _slots[285] = nativeContext.LoadFunction("SDL_GetEnvironmentVariable", "SDL3") ) )(env, name); @@ -71928,9 +73192,9 @@ public static Ptr2D GetEnvironmentVariables(EnvironmentHandle env) => sbyte** ISdl.GetEnvironmentVariablesRaw(EnvironmentHandle env) => ( (delegate* unmanaged)( - _slots[283] is not null and var loadedFnPtr + _slots[286] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[283] = nativeContext.LoadFunction( + : _slots[286] = nativeContext.LoadFunction( "SDL_GetEnvironmentVariables", "SDL3" ) @@ -71956,9 +73220,9 @@ _slots[283] is not null and var loadedFnPtr sbyte* ISdl.GetErrorRaw() => ( (delegate* unmanaged)( - _slots[284] is not null and var loadedFnPtr + _slots[287] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[284] = nativeContext.LoadFunction("SDL_GetError", "SDL3") + : _slots[287] = nativeContext.LoadFunction("SDL_GetError", "SDL3") ) )(); @@ -71974,9 +73238,9 @@ byte ISdl.GetEventFilter( ) => ( (delegate* unmanaged)( - _slots[285] is not null and var loadedFnPtr + _slots[288] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[285] = nativeContext.LoadFunction("SDL_GetEventFilter", "SDL3") + : _slots[288] = nativeContext.LoadFunction("SDL_GetEventFilter", "SDL3") ) )(filter, userdata); @@ -72018,9 +73282,9 @@ float default_value ) => ( (delegate* unmanaged)( - _slots[286] is not null and var loadedFnPtr + _slots[289] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[286] = nativeContext.LoadFunction("SDL_GetFloatProperty", "SDL3") + : _slots[289] = nativeContext.LoadFunction("SDL_GetFloatProperty", "SDL3") ) )(props, name, default_value); @@ -72061,9 +73325,9 @@ float default_value ) => ( (delegate* unmanaged)( - _slots[287] is not null and var loadedFnPtr + _slots[290] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[287] = nativeContext.LoadFunction( + : _slots[290] = nativeContext.LoadFunction( "SDL_GetFullscreenDisplayModes", "SDL3" ) @@ -72114,9 +73378,9 @@ GamepadAxis axis sbyte* ISdl.GetGamepadAppleSFSymbolsNameForAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[288] is not null and var loadedFnPtr + _slots[291] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[288] = nativeContext.LoadFunction( + : _slots[291] = nativeContext.LoadFunction( "SDL_GetGamepadAppleSFSymbolsNameForAxis", "SDL3" ) @@ -72153,9 +73417,9 @@ GamepadButton button ) => ( (delegate* unmanaged)( - _slots[289] is not null and var loadedFnPtr + _slots[292] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[289] = nativeContext.LoadFunction( + : _slots[292] = nativeContext.LoadFunction( "SDL_GetGamepadAppleSFSymbolsNameForButton", "SDL3" ) @@ -72174,9 +73438,9 @@ GamepadButton button short ISdl.GetGamepadAxis(GamepadHandle gamepad, GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[290] is not null and var loadedFnPtr + _slots[293] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[290] = nativeContext.LoadFunction("SDL_GetGamepadAxis", "SDL3") + : _slots[293] = nativeContext.LoadFunction("SDL_GetGamepadAxis", "SDL3") ) )(gamepad, axis); @@ -72190,9 +73454,9 @@ public static short GetGamepadAxis(GamepadHandle gamepad, GamepadAxis axis) => GamepadAxis ISdl.GetGamepadAxisFromString([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[291] is not null and var loadedFnPtr + _slots[294] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[291] = nativeContext.LoadFunction( + : _slots[294] = nativeContext.LoadFunction( "SDL_GetGamepadAxisFromString", "SDL3" ) @@ -72225,9 +73489,9 @@ public static GamepadAxis GetGamepadAxisFromString( GamepadBinding** ISdl.GetGamepadBindings(GamepadHandle gamepad, int* count) => ( (delegate* unmanaged)( - _slots[292] is not null and var loadedFnPtr + _slots[295] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[292] = nativeContext.LoadFunction("SDL_GetGamepadBindings", "SDL3") + : _slots[295] = nativeContext.LoadFunction("SDL_GetGamepadBindings", "SDL3") ) )(gamepad, count); @@ -72266,9 +73530,9 @@ public static MaybeBool GetGamepadButton(GamepadHandle gamepad, GamepadBut GamepadButton ISdl.GetGamepadButtonFromString([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[294] is not null and var loadedFnPtr + _slots[297] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[294] = nativeContext.LoadFunction( + : _slots[297] = nativeContext.LoadFunction( "SDL_GetGamepadButtonFromString", "SDL3" ) @@ -72301,9 +73565,9 @@ public static GamepadButton GetGamepadButtonFromString( GamepadButtonLabel ISdl.GetGamepadButtonLabel(GamepadHandle gamepad, GamepadButton button) => ( (delegate* unmanaged)( - _slots[295] is not null and var loadedFnPtr + _slots[298] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[295] = nativeContext.LoadFunction("SDL_GetGamepadButtonLabel", "SDL3") + : _slots[298] = nativeContext.LoadFunction("SDL_GetGamepadButtonLabel", "SDL3") ) )(gamepad, button); @@ -72318,9 +73582,9 @@ GamepadButton button GamepadButtonLabel ISdl.GetGamepadButtonLabelForType(GamepadType type, GamepadButton button) => ( (delegate* unmanaged)( - _slots[296] is not null and var loadedFnPtr + _slots[299] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[296] = nativeContext.LoadFunction( + : _slots[299] = nativeContext.LoadFunction( "SDL_GetGamepadButtonLabelForType", "SDL3" ) @@ -72338,9 +73602,9 @@ GamepadButton button byte ISdl.GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button) => ( (delegate* unmanaged)( - _slots[293] is not null and var loadedFnPtr + _slots[296] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[293] = nativeContext.LoadFunction("SDL_GetGamepadButton", "SDL3") + : _slots[296] = nativeContext.LoadFunction("SDL_GetGamepadButton", "SDL3") ) )(gamepad, button); @@ -72354,9 +73618,9 @@ public static byte GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton butt JoystickConnectionState ISdl.GetGamepadConnectionState(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[297] is not null and var loadedFnPtr + _slots[300] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[297] = nativeContext.LoadFunction( + : _slots[300] = nativeContext.LoadFunction( "SDL_GetGamepadConnectionState", "SDL3" ) @@ -72372,9 +73636,9 @@ public static JoystickConnectionState GetGamepadConnectionState(GamepadHandle ga ushort ISdl.GetGamepadFirmwareVersion(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[298] is not null and var loadedFnPtr + _slots[301] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[298] = nativeContext.LoadFunction( + : _slots[301] = nativeContext.LoadFunction( "SDL_GetGamepadFirmwareVersion", "SDL3" ) @@ -72391,9 +73655,9 @@ public static ushort GetGamepadFirmwareVersion(GamepadHandle gamepad) => GamepadHandle ISdl.GetGamepadFromID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[299] is not null and var loadedFnPtr + _slots[302] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[299] = nativeContext.LoadFunction("SDL_GetGamepadFromID", "SDL3") + : _slots[302] = nativeContext.LoadFunction("SDL_GetGamepadFromID", "SDL3") ) )(instance_id); @@ -72407,9 +73671,9 @@ public static GamepadHandle GetGamepadFromID( GamepadHandle ISdl.GetGamepadFromPlayerIndex(int player_index) => ( (delegate* unmanaged)( - _slots[300] is not null and var loadedFnPtr + _slots[303] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[300] = nativeContext.LoadFunction( + : _slots[303] = nativeContext.LoadFunction( "SDL_GetGamepadFromPlayerIndex", "SDL3" ) @@ -72425,9 +73689,9 @@ public static GamepadHandle GetGamepadFromPlayerIndex(int player_index) => Guid ISdl.GetGamepadGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[301] is not null and var loadedFnPtr + _slots[304] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[301] = nativeContext.LoadFunction("SDL_GetGamepadGUIDForID", "SDL3") + : _slots[304] = nativeContext.LoadFunction("SDL_GetGamepadGUIDForID", "SDL3") ) )(instance_id); @@ -72440,9 +73704,9 @@ public static Guid GetGamepadGuidForID([NativeTypeName("SDL_JoystickID")] uint i uint ISdl.GetGamepadID(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[302] is not null and var loadedFnPtr + _slots[305] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[302] = nativeContext.LoadFunction("SDL_GetGamepadID", "SDL3") + : _slots[305] = nativeContext.LoadFunction("SDL_GetGamepadID", "SDL3") ) )(gamepad); @@ -72455,9 +73719,9 @@ _slots[302] is not null and var loadedFnPtr JoystickHandle ISdl.GetGamepadJoystick(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[303] is not null and var loadedFnPtr + _slots[306] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[303] = nativeContext.LoadFunction("SDL_GetGamepadJoystick", "SDL3") + : _slots[306] = nativeContext.LoadFunction("SDL_GetGamepadJoystick", "SDL3") ) )(gamepad); @@ -72492,9 +73756,9 @@ public static Ptr GetGamepadMappingForGuid(Guid guid) => sbyte* ISdl.GetGamepadMappingForGuidRaw(Guid guid) => ( (delegate* unmanaged)( - _slots[305] is not null and var loadedFnPtr + _slots[308] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[305] = nativeContext.LoadFunction( + : _slots[308] = nativeContext.LoadFunction( "SDL_GetGamepadMappingForGUID", "SDL3" ) @@ -72523,9 +73787,9 @@ public static Ptr GetGamepadMappingForID( sbyte* ISdl.GetGamepadMappingForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[306] is not null and var loadedFnPtr + _slots[309] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[306] = nativeContext.LoadFunction("SDL_GetGamepadMappingForID", "SDL3") + : _slots[309] = nativeContext.LoadFunction("SDL_GetGamepadMappingForID", "SDL3") ) )(instance_id); @@ -72540,9 +73804,9 @@ _slots[306] is not null and var loadedFnPtr sbyte* ISdl.GetGamepadMappingRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[304] is not null and var loadedFnPtr + _slots[307] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[304] = nativeContext.LoadFunction("SDL_GetGamepadMapping", "SDL3") + : _slots[307] = nativeContext.LoadFunction("SDL_GetGamepadMapping", "SDL3") ) )(gamepad); @@ -72556,9 +73820,9 @@ _slots[304] is not null and var loadedFnPtr sbyte** ISdl.GetGamepadMappings(int* count) => ( (delegate* unmanaged)( - _slots[307] is not null and var loadedFnPtr + _slots[310] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[307] = nativeContext.LoadFunction("SDL_GetGamepadMappings", "SDL3") + : _slots[310] = nativeContext.LoadFunction("SDL_GetGamepadMappings", "SDL3") ) )(count); @@ -72610,9 +73874,9 @@ public static Ptr GetGamepadNameForID( sbyte* ISdl.GetGamepadNameForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[309] is not null and var loadedFnPtr + _slots[312] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[309] = nativeContext.LoadFunction("SDL_GetGamepadNameForID", "SDL3") + : _slots[312] = nativeContext.LoadFunction("SDL_GetGamepadNameForID", "SDL3") ) )(instance_id); @@ -72627,9 +73891,9 @@ _slots[309] is not null and var loadedFnPtr sbyte* ISdl.GetGamepadNameRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[308] is not null and var loadedFnPtr + _slots[311] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[308] = nativeContext.LoadFunction("SDL_GetGamepadName", "SDL3") + : _slots[311] = nativeContext.LoadFunction("SDL_GetGamepadName", "SDL3") ) )(gamepad); @@ -72666,9 +73930,9 @@ public static Ptr GetGamepadPathForID( sbyte* ISdl.GetGamepadPathForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[311] is not null and var loadedFnPtr + _slots[314] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[311] = nativeContext.LoadFunction("SDL_GetGamepadPathForID", "SDL3") + : _slots[314] = nativeContext.LoadFunction("SDL_GetGamepadPathForID", "SDL3") ) )(instance_id); @@ -72683,9 +73947,9 @@ _slots[311] is not null and var loadedFnPtr sbyte* ISdl.GetGamepadPathRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[310] is not null and var loadedFnPtr + _slots[313] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[310] = nativeContext.LoadFunction("SDL_GetGamepadPath", "SDL3") + : _slots[313] = nativeContext.LoadFunction("SDL_GetGamepadPath", "SDL3") ) )(gamepad); @@ -72699,9 +73963,9 @@ _slots[310] is not null and var loadedFnPtr int ISdl.GetGamepadPlayerIndex(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[312] is not null and var loadedFnPtr + _slots[315] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[312] = nativeContext.LoadFunction("SDL_GetGamepadPlayerIndex", "SDL3") + : _slots[315] = nativeContext.LoadFunction("SDL_GetGamepadPlayerIndex", "SDL3") ) )(gamepad); @@ -72714,9 +73978,9 @@ public static int GetGamepadPlayerIndex(GamepadHandle gamepad) => int ISdl.GetGamepadPlayerIndexForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[313] is not null and var loadedFnPtr + _slots[316] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[313] = nativeContext.LoadFunction( + : _slots[316] = nativeContext.LoadFunction( "SDL_GetGamepadPlayerIndexForID", "SDL3" ) @@ -72733,9 +73997,9 @@ public static int GetGamepadPlayerIndexForID( PowerState ISdl.GetGamepadPowerInfo(GamepadHandle gamepad, int* percent) => ( (delegate* unmanaged)( - _slots[314] is not null and var loadedFnPtr + _slots[317] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[314] = nativeContext.LoadFunction("SDL_GetGamepadPowerInfo", "SDL3") + : _slots[317] = nativeContext.LoadFunction("SDL_GetGamepadPowerInfo", "SDL3") ) )(gamepad, percent); @@ -72763,9 +74027,9 @@ public static PowerState GetGamepadPowerInfo(GamepadHandle gamepad, Ref per ushort ISdl.GetGamepadProduct(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[315] is not null and var loadedFnPtr + _slots[318] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[315] = nativeContext.LoadFunction("SDL_GetGamepadProduct", "SDL3") + : _slots[318] = nativeContext.LoadFunction("SDL_GetGamepadProduct", "SDL3") ) )(gamepad); @@ -72779,9 +74043,9 @@ public static ushort GetGamepadProduct(GamepadHandle gamepad) => ushort ISdl.GetGamepadProductForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[316] is not null and var loadedFnPtr + _slots[319] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[316] = nativeContext.LoadFunction("SDL_GetGamepadProductForID", "SDL3") + : _slots[319] = nativeContext.LoadFunction("SDL_GetGamepadProductForID", "SDL3") ) )(instance_id); @@ -72796,9 +74060,9 @@ public static ushort GetGamepadProductForID( ushort ISdl.GetGamepadProductVersion(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[317] is not null and var loadedFnPtr + _slots[320] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[317] = nativeContext.LoadFunction( + : _slots[320] = nativeContext.LoadFunction( "SDL_GetGamepadProductVersion", "SDL3" ) @@ -72817,9 +74081,9 @@ ushort ISdl.GetGamepadProductVersionForID( ) => ( (delegate* unmanaged)( - _slots[318] is not null and var loadedFnPtr + _slots[321] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[318] = nativeContext.LoadFunction( + : _slots[321] = nativeContext.LoadFunction( "SDL_GetGamepadProductVersionForID", "SDL3" ) @@ -72837,9 +74101,9 @@ public static ushort GetGamepadProductVersionForID( uint ISdl.GetGamepadProperties(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[319] is not null and var loadedFnPtr + _slots[322] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[319] = nativeContext.LoadFunction("SDL_GetGamepadProperties", "SDL3") + : _slots[322] = nativeContext.LoadFunction("SDL_GetGamepadProperties", "SDL3") ) )(gamepad); @@ -72853,9 +74117,9 @@ public static uint GetGamepadProperties(GamepadHandle gamepad) => uint* ISdl.GetGamepads(int* count) => ( (delegate* unmanaged)( - _slots[320] is not null and var loadedFnPtr + _slots[323] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[320] = nativeContext.LoadFunction("SDL_GetGamepads", "SDL3") + : _slots[323] = nativeContext.LoadFunction("SDL_GetGamepads", "SDL3") ) )(count); @@ -72888,9 +74152,9 @@ int num_values ) => ( (delegate* unmanaged)( - _slots[321] is not null and var loadedFnPtr + _slots[324] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[321] = nativeContext.LoadFunction("SDL_GetGamepadSensorData", "SDL3") + : _slots[324] = nativeContext.LoadFunction("SDL_GetGamepadSensorData", "SDL3") ) )(gamepad, type, data, num_values); @@ -72934,9 +74198,9 @@ int num_values float ISdl.GetGamepadSensorDataRate(GamepadHandle gamepad, SensorType type) => ( (delegate* unmanaged)( - _slots[322] is not null and var loadedFnPtr + _slots[325] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[322] = nativeContext.LoadFunction( + : _slots[325] = nativeContext.LoadFunction( "SDL_GetGamepadSensorDataRate", "SDL3" ) @@ -72963,9 +74227,9 @@ public static Ptr GetGamepadSerial(GamepadHandle gamepad) => sbyte* ISdl.GetGamepadSerialRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[323] is not null and var loadedFnPtr + _slots[326] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[323] = nativeContext.LoadFunction("SDL_GetGamepadSerial", "SDL3") + : _slots[326] = nativeContext.LoadFunction("SDL_GetGamepadSerial", "SDL3") ) )(gamepad); @@ -72979,9 +74243,9 @@ _slots[323] is not null and var loadedFnPtr ulong ISdl.GetGamepadSteamHandle(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[324] is not null and var loadedFnPtr + _slots[327] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[324] = nativeContext.LoadFunction("SDL_GetGamepadSteamHandle", "SDL3") + : _slots[327] = nativeContext.LoadFunction("SDL_GetGamepadSteamHandle", "SDL3") ) )(gamepad); @@ -73006,9 +74270,9 @@ public static Ptr GetGamepadStringForAxis(GamepadAxis axis) => sbyte* ISdl.GetGamepadStringForAxisRaw(GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[325] is not null and var loadedFnPtr + _slots[328] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[325] = nativeContext.LoadFunction( + : _slots[328] = nativeContext.LoadFunction( "SDL_GetGamepadStringForAxis", "SDL3" ) @@ -73036,9 +74300,9 @@ public static Ptr GetGamepadStringForButton(GamepadButton button) => sbyte* ISdl.GetGamepadStringForButtonRaw(GamepadButton button) => ( (delegate* unmanaged)( - _slots[326] is not null and var loadedFnPtr + _slots[329] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[326] = nativeContext.LoadFunction( + : _slots[329] = nativeContext.LoadFunction( "SDL_GetGamepadStringForButton", "SDL3" ) @@ -73066,9 +74330,9 @@ public static Ptr GetGamepadStringForType(GamepadType type) => sbyte* ISdl.GetGamepadStringForTypeRaw(GamepadType type) => ( (delegate* unmanaged)( - _slots[327] is not null and var loadedFnPtr + _slots[330] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[327] = nativeContext.LoadFunction( + : _slots[330] = nativeContext.LoadFunction( "SDL_GetGamepadStringForType", "SDL3" ) @@ -73093,9 +74357,9 @@ byte ISdl.GetGamepadTouchpadFinger( ) => ( (delegate* unmanaged)( - _slots[328] is not null and var loadedFnPtr + _slots[331] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[328] = nativeContext.LoadFunction( + : _slots[331] = nativeContext.LoadFunction( "SDL_GetGamepadTouchpadFinger", "SDL3" ) @@ -73163,9 +74427,9 @@ Ref pressure GamepadType ISdl.GetGamepadType(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[329] is not null and var loadedFnPtr + _slots[332] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[329] = nativeContext.LoadFunction("SDL_GetGamepadType", "SDL3") + : _slots[332] = nativeContext.LoadFunction("SDL_GetGamepadType", "SDL3") ) )(gamepad); @@ -73178,9 +74442,9 @@ public static GamepadType GetGamepadType(GamepadHandle gamepad) => GamepadType ISdl.GetGamepadTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[330] is not null and var loadedFnPtr + _slots[333] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[330] = nativeContext.LoadFunction("SDL_GetGamepadTypeForID", "SDL3") + : _slots[333] = nativeContext.LoadFunction("SDL_GetGamepadTypeForID", "SDL3") ) )(instance_id); @@ -73194,9 +74458,9 @@ public static GamepadType GetGamepadTypeForID( GamepadType ISdl.GetGamepadTypeFromString([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[331] is not null and var loadedFnPtr + _slots[334] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[331] = nativeContext.LoadFunction( + : _slots[334] = nativeContext.LoadFunction( "SDL_GetGamepadTypeFromString", "SDL3" ) @@ -73229,9 +74493,9 @@ public static GamepadType GetGamepadTypeFromString( ushort ISdl.GetGamepadVendor(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[332] is not null and var loadedFnPtr + _slots[335] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[332] = nativeContext.LoadFunction("SDL_GetGamepadVendor", "SDL3") + : _slots[335] = nativeContext.LoadFunction("SDL_GetGamepadVendor", "SDL3") ) )(gamepad); @@ -73245,9 +74509,9 @@ public static ushort GetGamepadVendor(GamepadHandle gamepad) => ushort ISdl.GetGamepadVendorForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[333] is not null and var loadedFnPtr + _slots[336] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[333] = nativeContext.LoadFunction("SDL_GetGamepadVendorForID", "SDL3") + : _slots[336] = nativeContext.LoadFunction("SDL_GetGamepadVendorForID", "SDL3") ) )(instance_id); @@ -73262,9 +74526,9 @@ public static ushort GetGamepadVendorForID( uint ISdl.GetGlobalMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[334] is not null and var loadedFnPtr + _slots[337] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[334] = nativeContext.LoadFunction("SDL_GetGlobalMouseState", "SDL3") + : _slots[337] = nativeContext.LoadFunction("SDL_GetGlobalMouseState", "SDL3") ) )(x, y); @@ -73295,9 +74559,9 @@ public static uint GetGlobalMouseState(Ref x, Ref y) => uint ISdl.GetGlobalProperties() => ( (delegate* unmanaged)( - _slots[335] is not null and var loadedFnPtr + _slots[338] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[335] = nativeContext.LoadFunction("SDL_GetGlobalProperties", "SDL3") + : _slots[338] = nativeContext.LoadFunction("SDL_GetGlobalProperties", "SDL3") ) )(); @@ -73321,9 +74585,9 @@ public static Ptr GetGPUDeviceDriver(GPUDeviceHandle device) => sbyte* ISdl.GetGPUDeviceDriverRaw(GPUDeviceHandle device) => ( (delegate* unmanaged)( - _slots[336] is not null and var loadedFnPtr + _slots[339] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[336] = nativeContext.LoadFunction("SDL_GetGPUDeviceDriver", "SDL3") + : _slots[339] = nativeContext.LoadFunction("SDL_GetGPUDeviceDriver", "SDL3") ) )(device); @@ -73346,9 +74610,9 @@ _slots[336] is not null and var loadedFnPtr sbyte* ISdl.GetGPUDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[337] is not null and var loadedFnPtr + _slots[340] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[337] = nativeContext.LoadFunction("SDL_GetGPUDriver", "SDL3") + : _slots[340] = nativeContext.LoadFunction("SDL_GetGPUDriver", "SDL3") ) )(index); @@ -73361,9 +74625,9 @@ _slots[337] is not null and var loadedFnPtr uint ISdl.GetGPUShaderFormats(GPUDeviceHandle device) => ( (delegate* unmanaged)( - _slots[338] is not null and var loadedFnPtr + _slots[341] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[338] = nativeContext.LoadFunction("SDL_GetGPUShaderFormats", "SDL3") + : _slots[341] = nativeContext.LoadFunction("SDL_GetGPUShaderFormats", "SDL3") ) )(device); @@ -73380,9 +74644,9 @@ WindowHandle window ) => ( (delegate* unmanaged)( - _slots[339] is not null and var loadedFnPtr + _slots[342] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[339] = nativeContext.LoadFunction( + : _slots[342] = nativeContext.LoadFunction( "SDL_GetGPUSwapchainTextureFormat", "SDL3" ) @@ -73400,9 +74664,9 @@ WindowHandle window WindowHandle ISdl.GetGrabbedWindow() => ( (delegate* unmanaged)( - _slots[340] is not null and var loadedFnPtr + _slots[343] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[340] = nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") + : _slots[343] = nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") ) )(); @@ -73425,9 +74689,9 @@ public static MaybeBool GetHapticEffectStatus(HapticHandle haptic, int eff byte ISdl.GetHapticEffectStatusRaw(HapticHandle haptic, int effect) => ( (delegate* unmanaged)( - _slots[341] is not null and var loadedFnPtr + _slots[344] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[341] = nativeContext.LoadFunction("SDL_GetHapticEffectStatus", "SDL3") + : _slots[344] = nativeContext.LoadFunction("SDL_GetHapticEffectStatus", "SDL3") ) )(haptic, effect); @@ -73441,9 +74705,9 @@ public static byte GetHapticEffectStatusRaw(HapticHandle haptic, int effect) => uint ISdl.GetHapticFeatures(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[342] is not null and var loadedFnPtr + _slots[345] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[342] = nativeContext.LoadFunction("SDL_GetHapticFeatures", "SDL3") + : _slots[345] = nativeContext.LoadFunction("SDL_GetHapticFeatures", "SDL3") ) )(haptic); @@ -73457,9 +74721,9 @@ public static uint GetHapticFeatures(HapticHandle haptic) => HapticHandle ISdl.GetHapticFromID([NativeTypeName("SDL_HapticID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[343] is not null and var loadedFnPtr + _slots[346] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[343] = nativeContext.LoadFunction("SDL_GetHapticFromID", "SDL3") + : _slots[346] = nativeContext.LoadFunction("SDL_GetHapticFromID", "SDL3") ) )(instance_id); @@ -73472,9 +74736,9 @@ public static HapticHandle GetHapticFromID([NativeTypeName("SDL_HapticID")] uint uint ISdl.GetHapticID(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[344] is not null and var loadedFnPtr + _slots[347] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[344] = nativeContext.LoadFunction("SDL_GetHapticID", "SDL3") + : _slots[347] = nativeContext.LoadFunction("SDL_GetHapticID", "SDL3") ) )(haptic); @@ -73509,9 +74773,9 @@ public static Ptr GetHapticNameForID( sbyte* ISdl.GetHapticNameForIDRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[346] is not null and var loadedFnPtr + _slots[349] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[346] = nativeContext.LoadFunction("SDL_GetHapticNameForID", "SDL3") + : _slots[349] = nativeContext.LoadFunction("SDL_GetHapticNameForID", "SDL3") ) )(instance_id); @@ -73525,9 +74789,9 @@ _slots[346] is not null and var loadedFnPtr sbyte* ISdl.GetHapticNameRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[345] is not null and var loadedFnPtr + _slots[348] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[345] = nativeContext.LoadFunction("SDL_GetHapticName", "SDL3") + : _slots[348] = nativeContext.LoadFunction("SDL_GetHapticName", "SDL3") ) )(haptic); @@ -73541,9 +74805,9 @@ _slots[345] is not null and var loadedFnPtr uint* ISdl.GetHaptics(int* count) => ( (delegate* unmanaged)( - _slots[347] is not null and var loadedFnPtr + _slots[350] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[347] = nativeContext.LoadFunction("SDL_GetHaptics", "SDL3") + : _slots[350] = nativeContext.LoadFunction("SDL_GetHaptics", "SDL3") ) )(count); @@ -73571,9 +74835,9 @@ Ptr ISdl.GetHaptics(Ref count) sbyte* ISdl.GetHint([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[348] is not null and var loadedFnPtr + _slots[351] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[348] = nativeContext.LoadFunction("SDL_GetHint", "SDL3") + : _slots[351] = nativeContext.LoadFunction("SDL_GetHint", "SDL3") ) )(name); @@ -73606,9 +74870,9 @@ byte ISdl.GetHintBoolean( ) => ( (delegate* unmanaged)( - _slots[349] is not null and var loadedFnPtr + _slots[352] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[349] = nativeContext.LoadFunction("SDL_GetHintBoolean", "SDL3") + : _slots[352] = nativeContext.LoadFunction("SDL_GetHintBoolean", "SDL3") ) )(name, default_value); @@ -73646,9 +74910,9 @@ public static MaybeBool GetHintBoolean( uint ISdl.GetIOProperties(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[350] is not null and var loadedFnPtr + _slots[353] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[350] = nativeContext.LoadFunction("SDL_GetIOProperties", "SDL3") + : _slots[353] = nativeContext.LoadFunction("SDL_GetIOProperties", "SDL3") ) )(context); @@ -73662,9 +74926,9 @@ public static uint GetIOProperties(IOStreamHandle context) => long ISdl.GetIOSize(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[351] is not null and var loadedFnPtr + _slots[354] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[351] = nativeContext.LoadFunction("SDL_GetIOSize", "SDL3") + : _slots[354] = nativeContext.LoadFunction("SDL_GetIOSize", "SDL3") ) )(context); @@ -73677,9 +74941,9 @@ _slots[351] is not null and var loadedFnPtr IOStatus ISdl.GetIOStatus(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[352] is not null and var loadedFnPtr + _slots[355] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[352] = nativeContext.LoadFunction("SDL_GetIOStatus", "SDL3") + : _slots[355] = nativeContext.LoadFunction("SDL_GetIOStatus", "SDL3") ) )(context); @@ -73691,9 +74955,9 @@ _slots[352] is not null and var loadedFnPtr short ISdl.GetJoystickAxis(JoystickHandle joystick, int axis) => ( (delegate* unmanaged)( - _slots[353] is not null and var loadedFnPtr + _slots[356] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[353] = nativeContext.LoadFunction("SDL_GetJoystickAxis", "SDL3") + : _slots[356] = nativeContext.LoadFunction("SDL_GetJoystickAxis", "SDL3") ) )(joystick, axis); @@ -73711,9 +74975,9 @@ byte ISdl.GetJoystickAxisInitialState( ) => ( (delegate* unmanaged)( - _slots[354] is not null and var loadedFnPtr + _slots[357] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[354] = nativeContext.LoadFunction( + : _slots[357] = nativeContext.LoadFunction( "SDL_GetJoystickAxisInitialState", "SDL3" ) @@ -73757,9 +75021,9 @@ public static MaybeBool GetJoystickAxisInitialState( byte ISdl.GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => ( (delegate* unmanaged)( - _slots[355] is not null and var loadedFnPtr + _slots[358] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[355] = nativeContext.LoadFunction("SDL_GetJoystickBall", "SDL3") + : _slots[358] = nativeContext.LoadFunction("SDL_GetJoystickBall", "SDL3") ) )(joystick, ball, dx, dy); @@ -73811,9 +75075,9 @@ public static MaybeBool GetJoystickButton(JoystickHandle joystick, int but byte ISdl.GetJoystickButtonRaw(JoystickHandle joystick, int button) => ( (delegate* unmanaged)( - _slots[356] is not null and var loadedFnPtr + _slots[359] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[356] = nativeContext.LoadFunction("SDL_GetJoystickButton", "SDL3") + : _slots[359] = nativeContext.LoadFunction("SDL_GetJoystickButton", "SDL3") ) )(joystick, button); @@ -73827,9 +75091,9 @@ public static byte GetJoystickButtonRaw(JoystickHandle joystick, int button) => JoystickConnectionState ISdl.GetJoystickConnectionState(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[357] is not null and var loadedFnPtr + _slots[360] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[357] = nativeContext.LoadFunction( + : _slots[360] = nativeContext.LoadFunction( "SDL_GetJoystickConnectionState", "SDL3" ) @@ -73845,9 +75109,9 @@ public static JoystickConnectionState GetJoystickConnectionState(JoystickHandle ushort ISdl.GetJoystickFirmwareVersion(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[358] is not null and var loadedFnPtr + _slots[361] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[358] = nativeContext.LoadFunction( + : _slots[361] = nativeContext.LoadFunction( "SDL_GetJoystickFirmwareVersion", "SDL3" ) @@ -73864,9 +75128,9 @@ public static ushort GetJoystickFirmwareVersion(JoystickHandle joystick) => JoystickHandle ISdl.GetJoystickFromID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[359] is not null and var loadedFnPtr + _slots[362] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[359] = nativeContext.LoadFunction("SDL_GetJoystickFromID", "SDL3") + : _slots[362] = nativeContext.LoadFunction("SDL_GetJoystickFromID", "SDL3") ) )(instance_id); @@ -73880,9 +75144,9 @@ public static JoystickHandle GetJoystickFromID( JoystickHandle ISdl.GetJoystickFromPlayerIndex(int player_index) => ( (delegate* unmanaged)( - _slots[360] is not null and var loadedFnPtr + _slots[363] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[360] = nativeContext.LoadFunction( + : _slots[363] = nativeContext.LoadFunction( "SDL_GetJoystickFromPlayerIndex", "SDL3" ) @@ -73898,9 +75162,9 @@ public static JoystickHandle GetJoystickFromPlayerIndex(int player_index) => Guid ISdl.GetJoystickGuid(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[361] is not null and var loadedFnPtr + _slots[364] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[361] = nativeContext.LoadFunction("SDL_GetJoystickGUID", "SDL3") + : _slots[364] = nativeContext.LoadFunction("SDL_GetJoystickGUID", "SDL3") ) )(joystick); @@ -73913,9 +75177,9 @@ public static Guid GetJoystickGuid(JoystickHandle joystick) => Guid ISdl.GetJoystickGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[362] is not null and var loadedFnPtr + _slots[365] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[362] = nativeContext.LoadFunction("SDL_GetJoystickGUIDForID", "SDL3") + : _slots[365] = nativeContext.LoadFunction("SDL_GetJoystickGUIDForID", "SDL3") ) )(instance_id); @@ -73934,9 +75198,9 @@ void ISdl.GetJoystickGuidInfo( ) => ( (delegate* unmanaged)( - _slots[363] is not null and var loadedFnPtr + _slots[366] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[363] = nativeContext.LoadFunction("SDL_GetJoystickGUIDInfo", "SDL3") + : _slots[366] = nativeContext.LoadFunction("SDL_GetJoystickGUIDInfo", "SDL3") ) )(guid, vendor, product, version, crc16); @@ -73989,9 +75253,9 @@ public static void GetJoystickGuidInfo( byte ISdl.GetJoystickHat(JoystickHandle joystick, int hat) => ( (delegate* unmanaged)( - _slots[364] is not null and var loadedFnPtr + _slots[367] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[364] = nativeContext.LoadFunction("SDL_GetJoystickHat", "SDL3") + : _slots[367] = nativeContext.LoadFunction("SDL_GetJoystickHat", "SDL3") ) )(joystick, hat); @@ -74005,9 +75269,9 @@ public static byte GetJoystickHat(JoystickHandle joystick, int hat) => uint ISdl.GetJoystickID(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[365] is not null and var loadedFnPtr + _slots[368] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[365] = nativeContext.LoadFunction("SDL_GetJoystickID", "SDL3") + : _slots[368] = nativeContext.LoadFunction("SDL_GetJoystickID", "SDL3") ) )(joystick); @@ -74043,9 +75307,9 @@ public static Ptr GetJoystickNameForID( sbyte* ISdl.GetJoystickNameForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[367] is not null and var loadedFnPtr + _slots[370] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[367] = nativeContext.LoadFunction("SDL_GetJoystickNameForID", "SDL3") + : _slots[370] = nativeContext.LoadFunction("SDL_GetJoystickNameForID", "SDL3") ) )(instance_id); @@ -74060,9 +75324,9 @@ _slots[367] is not null and var loadedFnPtr sbyte* ISdl.GetJoystickNameRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[366] is not null and var loadedFnPtr + _slots[369] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[366] = nativeContext.LoadFunction("SDL_GetJoystickName", "SDL3") + : _slots[369] = nativeContext.LoadFunction("SDL_GetJoystickName", "SDL3") ) )(joystick); @@ -74099,9 +75363,9 @@ public static Ptr GetJoystickPathForID( sbyte* ISdl.GetJoystickPathForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[369] is not null and var loadedFnPtr + _slots[372] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[369] = nativeContext.LoadFunction("SDL_GetJoystickPathForID", "SDL3") + : _slots[372] = nativeContext.LoadFunction("SDL_GetJoystickPathForID", "SDL3") ) )(instance_id); @@ -74116,9 +75380,9 @@ _slots[369] is not null and var loadedFnPtr sbyte* ISdl.GetJoystickPathRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[368] is not null and var loadedFnPtr + _slots[371] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[368] = nativeContext.LoadFunction("SDL_GetJoystickPath", "SDL3") + : _slots[371] = nativeContext.LoadFunction("SDL_GetJoystickPath", "SDL3") ) )(joystick); @@ -74132,9 +75396,9 @@ _slots[368] is not null and var loadedFnPtr int ISdl.GetJoystickPlayerIndex(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[370] is not null and var loadedFnPtr + _slots[373] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[370] = nativeContext.LoadFunction("SDL_GetJoystickPlayerIndex", "SDL3") + : _slots[373] = nativeContext.LoadFunction("SDL_GetJoystickPlayerIndex", "SDL3") ) )(joystick); @@ -74147,9 +75411,9 @@ public static int GetJoystickPlayerIndex(JoystickHandle joystick) => int ISdl.GetJoystickPlayerIndexForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[371] is not null and var loadedFnPtr + _slots[374] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[371] = nativeContext.LoadFunction( + : _slots[374] = nativeContext.LoadFunction( "SDL_GetJoystickPlayerIndexForID", "SDL3" ) @@ -74166,9 +75430,9 @@ public static int GetJoystickPlayerIndexForID( PowerState ISdl.GetJoystickPowerInfo(JoystickHandle joystick, int* percent) => ( (delegate* unmanaged)( - _slots[372] is not null and var loadedFnPtr + _slots[375] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[372] = nativeContext.LoadFunction("SDL_GetJoystickPowerInfo", "SDL3") + : _slots[375] = nativeContext.LoadFunction("SDL_GetJoystickPowerInfo", "SDL3") ) )(joystick, percent); @@ -74196,9 +75460,9 @@ public static PowerState GetJoystickPowerInfo(JoystickHandle joystick, Ref ushort ISdl.GetJoystickProduct(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[373] is not null and var loadedFnPtr + _slots[376] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[373] = nativeContext.LoadFunction("SDL_GetJoystickProduct", "SDL3") + : _slots[376] = nativeContext.LoadFunction("SDL_GetJoystickProduct", "SDL3") ) )(joystick); @@ -74212,9 +75476,9 @@ public static ushort GetJoystickProduct(JoystickHandle joystick) => ushort ISdl.GetJoystickProductForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[374] is not null and var loadedFnPtr + _slots[377] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[374] = nativeContext.LoadFunction( + : _slots[377] = nativeContext.LoadFunction( "SDL_GetJoystickProductForID", "SDL3" ) @@ -74232,9 +75496,9 @@ public static ushort GetJoystickProductForID( ushort ISdl.GetJoystickProductVersion(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[375] is not null and var loadedFnPtr + _slots[378] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[375] = nativeContext.LoadFunction( + : _slots[378] = nativeContext.LoadFunction( "SDL_GetJoystickProductVersion", "SDL3" ) @@ -74253,9 +75517,9 @@ ushort ISdl.GetJoystickProductVersionForID( ) => ( (delegate* unmanaged)( - _slots[376] is not null and var loadedFnPtr + _slots[379] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[376] = nativeContext.LoadFunction( + : _slots[379] = nativeContext.LoadFunction( "SDL_GetJoystickProductVersionForID", "SDL3" ) @@ -74273,9 +75537,9 @@ public static ushort GetJoystickProductVersionForID( uint ISdl.GetJoystickProperties(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[377] is not null and var loadedFnPtr + _slots[380] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[377] = nativeContext.LoadFunction("SDL_GetJoystickProperties", "SDL3") + : _slots[380] = nativeContext.LoadFunction("SDL_GetJoystickProperties", "SDL3") ) )(joystick); @@ -74289,9 +75553,9 @@ public static uint GetJoystickProperties(JoystickHandle joystick) => uint* ISdl.GetJoysticks(int* count) => ( (delegate* unmanaged)( - _slots[378] is not null and var loadedFnPtr + _slots[381] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[378] = nativeContext.LoadFunction("SDL_GetJoysticks", "SDL3") + : _slots[381] = nativeContext.LoadFunction("SDL_GetJoysticks", "SDL3") ) )(count); @@ -74330,9 +75594,9 @@ public static Ptr GetJoystickSerial(JoystickHandle joystick) => sbyte* ISdl.GetJoystickSerialRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[379] is not null and var loadedFnPtr + _slots[382] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[379] = nativeContext.LoadFunction("SDL_GetJoystickSerial", "SDL3") + : _slots[382] = nativeContext.LoadFunction("SDL_GetJoystickSerial", "SDL3") ) )(joystick); @@ -74346,9 +75610,9 @@ _slots[379] is not null and var loadedFnPtr JoystickType ISdl.GetJoystickType(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[380] is not null and var loadedFnPtr + _slots[383] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[380] = nativeContext.LoadFunction("SDL_GetJoystickType", "SDL3") + : _slots[383] = nativeContext.LoadFunction("SDL_GetJoystickType", "SDL3") ) )(joystick); @@ -74361,9 +75625,9 @@ public static JoystickType GetJoystickType(JoystickHandle joystick) => JoystickType ISdl.GetJoystickTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[381] is not null and var loadedFnPtr + _slots[384] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[381] = nativeContext.LoadFunction("SDL_GetJoystickTypeForID", "SDL3") + : _slots[384] = nativeContext.LoadFunction("SDL_GetJoystickTypeForID", "SDL3") ) )(instance_id); @@ -74377,9 +75641,9 @@ public static JoystickType GetJoystickTypeForID( ushort ISdl.GetJoystickVendor(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[382] is not null and var loadedFnPtr + _slots[385] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[382] = nativeContext.LoadFunction("SDL_GetJoystickVendor", "SDL3") + : _slots[385] = nativeContext.LoadFunction("SDL_GetJoystickVendor", "SDL3") ) )(joystick); @@ -74393,9 +75657,9 @@ public static ushort GetJoystickVendor(JoystickHandle joystick) => ushort ISdl.GetJoystickVendorForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[383] is not null and var loadedFnPtr + _slots[386] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[383] = nativeContext.LoadFunction("SDL_GetJoystickVendorForID", "SDL3") + : _slots[386] = nativeContext.LoadFunction("SDL_GetJoystickVendorForID", "SDL3") ) )(instance_id); @@ -74410,9 +75674,9 @@ public static ushort GetJoystickVendorForID( WindowHandle ISdl.GetKeyboardFocus() => ( (delegate* unmanaged)( - _slots[384] is not null and var loadedFnPtr + _slots[387] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[384] = nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") + : _slots[387] = nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") ) )(); @@ -74436,9 +75700,9 @@ public static Ptr GetKeyboardNameForID( sbyte* ISdl.GetKeyboardNameForIDRaw([NativeTypeName("SDL_KeyboardID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[385] is not null and var loadedFnPtr + _slots[388] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[385] = nativeContext.LoadFunction("SDL_GetKeyboardNameForID", "SDL3") + : _slots[388] = nativeContext.LoadFunction("SDL_GetKeyboardNameForID", "SDL3") ) )(instance_id); @@ -74453,9 +75717,9 @@ _slots[385] is not null and var loadedFnPtr uint* ISdl.GetKeyboards(int* count) => ( (delegate* unmanaged)( - _slots[386] is not null and var loadedFnPtr + _slots[389] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[386] = nativeContext.LoadFunction("SDL_GetKeyboards", "SDL3") + : _slots[389] = nativeContext.LoadFunction("SDL_GetKeyboards", "SDL3") ) )(count); @@ -74483,9 +75747,9 @@ Ptr ISdl.GetKeyboards(Ref count) bool* ISdl.GetKeyboardState(int* numkeys) => ( (delegate* unmanaged)( - _slots[387] is not null and var loadedFnPtr + _slots[390] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[387] = nativeContext.LoadFunction("SDL_GetKeyboardState", "SDL3") + : _slots[390] = nativeContext.LoadFunction("SDL_GetKeyboardState", "SDL3") ) )(numkeys); @@ -74514,9 +75778,9 @@ public static Ptr GetKeyboardState(Ref numkeys) => uint ISdl.GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[388] is not null and var loadedFnPtr + _slots[391] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[388] = nativeContext.LoadFunction("SDL_GetKeyFromName", "SDL3") + : _slots[391] = nativeContext.LoadFunction("SDL_GetKeyFromName", "SDL3") ) )(name); @@ -74550,9 +75814,9 @@ uint ISdl.GetKeyFromScancode( ) => ( (delegate* unmanaged)( - _slots[389] is not null and var loadedFnPtr + _slots[392] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[389] = nativeContext.LoadFunction("SDL_GetKeyFromScancode", "SDL3") + : _slots[392] = nativeContext.LoadFunction("SDL_GetKeyFromScancode", "SDL3") ) )(scancode, modstate, key_event); @@ -74597,9 +75861,9 @@ public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] uint key) => sbyte* ISdl.GetKeyNameRaw([NativeTypeName("SDL_Keycode")] uint key) => ( (delegate* unmanaged)( - _slots[390] is not null and var loadedFnPtr + _slots[393] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[390] = nativeContext.LoadFunction("SDL_GetKeyName", "SDL3") + : _slots[393] = nativeContext.LoadFunction("SDL_GetKeyName", "SDL3") ) )(key); @@ -74616,9 +75880,9 @@ void ISdl.GetLogOutputFunction( ) => ( (delegate* unmanaged)( - _slots[391] is not null and var loadedFnPtr + _slots[394] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[391] = nativeContext.LoadFunction("SDL_GetLogOutputFunction", "SDL3") + : _slots[394] = nativeContext.LoadFunction("SDL_GetLogOutputFunction", "SDL3") ) )(callback, userdata); @@ -74654,9 +75918,9 @@ Ref2D userdata LogPriority ISdl.GetLogPriority(int category) => ( (delegate* unmanaged)( - _slots[392] is not null and var loadedFnPtr + _slots[395] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[392] = nativeContext.LoadFunction("SDL_GetLogPriority", "SDL3") + : _slots[395] = nativeContext.LoadFunction("SDL_GetLogPriority", "SDL3") ) )(category); @@ -74675,9 +75939,9 @@ byte ISdl.GetMasksForPixelFormat( ) => ( (delegate* unmanaged)( - _slots[393] is not null and var loadedFnPtr + _slots[396] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[393] = nativeContext.LoadFunction("SDL_GetMasksForPixelFormat", "SDL3") + : _slots[396] = nativeContext.LoadFunction("SDL_GetMasksForPixelFormat", "SDL3") ) )(format, bpp, Rmask, Gmask, Bmask, Amask); @@ -74739,9 +76003,9 @@ public static MaybeBool GetMasksForPixelFormat( int ISdl.GetMaxHapticEffects(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[394] is not null and var loadedFnPtr + _slots[397] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[394] = nativeContext.LoadFunction("SDL_GetMaxHapticEffects", "SDL3") + : _slots[397] = nativeContext.LoadFunction("SDL_GetMaxHapticEffects", "SDL3") ) )(haptic); @@ -74754,9 +76018,9 @@ public static int GetMaxHapticEffects(HapticHandle haptic) => int ISdl.GetMaxHapticEffectsPlaying(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[395] is not null and var loadedFnPtr + _slots[398] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[395] = nativeContext.LoadFunction( + : _slots[398] = nativeContext.LoadFunction( "SDL_GetMaxHapticEffectsPlaying", "SDL3" ) @@ -74777,9 +76041,9 @@ void ISdl.GetMemoryFunctions( ) => ( (delegate* unmanaged)( - _slots[396] is not null and var loadedFnPtr + _slots[399] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[396] = nativeContext.LoadFunction("SDL_GetMemoryFunctions", "SDL3") + : _slots[399] = nativeContext.LoadFunction("SDL_GetMemoryFunctions", "SDL3") ) )(malloc_func, calloc_func, realloc_func, free_func); @@ -74828,9 +76092,9 @@ public static void GetMemoryFunctions( uint* ISdl.GetMice(int* count) => ( (delegate* unmanaged)( - _slots[397] is not null and var loadedFnPtr + _slots[400] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[397] = nativeContext.LoadFunction("SDL_GetMice", "SDL3") + : _slots[400] = nativeContext.LoadFunction("SDL_GetMice", "SDL3") ) )(count); @@ -74858,9 +76122,9 @@ Ptr ISdl.GetMice(Ref count) ushort ISdl.GetModState() => ( (delegate* unmanaged)( - _slots[398] is not null and var loadedFnPtr + _slots[401] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[398] = nativeContext.LoadFunction("SDL_GetModState", "SDL3") + : _slots[401] = nativeContext.LoadFunction("SDL_GetModState", "SDL3") ) )(); @@ -74873,9 +76137,9 @@ _slots[398] is not null and var loadedFnPtr WindowHandle ISdl.GetMouseFocus() => ( (delegate* unmanaged)( - _slots[399] is not null and var loadedFnPtr + _slots[402] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[399] = nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") + : _slots[402] = nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") ) )(); @@ -74898,9 +76162,9 @@ public static Ptr GetMouseNameForID([NativeTypeName("SDL_MouseID")] uint sbyte* ISdl.GetMouseNameForIDRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[400] is not null and var loadedFnPtr + _slots[403] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[400] = nativeContext.LoadFunction("SDL_GetMouseNameForID", "SDL3") + : _slots[403] = nativeContext.LoadFunction("SDL_GetMouseNameForID", "SDL3") ) )(instance_id); @@ -74914,9 +76178,9 @@ _slots[400] is not null and var loadedFnPtr uint ISdl.GetMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[401] is not null and var loadedFnPtr + _slots[404] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[401] = nativeContext.LoadFunction("SDL_GetMouseState", "SDL3") + : _slots[404] = nativeContext.LoadFunction("SDL_GetMouseState", "SDL3") ) )(x, y); @@ -74947,9 +76211,9 @@ DisplayOrientation ISdl.GetNaturalDisplayOrientation( ) => ( (delegate* unmanaged)( - _slots[402] is not null and var loadedFnPtr + _slots[405] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[402] = nativeContext.LoadFunction( + : _slots[405] = nativeContext.LoadFunction( "SDL_GetNaturalDisplayOrientation", "SDL3" ) @@ -74966,9 +76230,9 @@ public static DisplayOrientation GetNaturalDisplayOrientation( int ISdl.GetNumAllocations() => ( (delegate* unmanaged)( - _slots[403] is not null and var loadedFnPtr + _slots[406] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[403] = nativeContext.LoadFunction("SDL_GetNumAllocations", "SDL3") + : _slots[406] = nativeContext.LoadFunction("SDL_GetNumAllocations", "SDL3") ) )(); @@ -74980,9 +76244,9 @@ _slots[403] is not null and var loadedFnPtr int ISdl.GetNumAudioDrivers() => ( (delegate* unmanaged)( - _slots[404] is not null and var loadedFnPtr + _slots[407] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[404] = nativeContext.LoadFunction("SDL_GetNumAudioDrivers", "SDL3") + : _slots[407] = nativeContext.LoadFunction("SDL_GetNumAudioDrivers", "SDL3") ) )(); @@ -74998,9 +76262,9 @@ long ISdl.GetNumberProperty( ) => ( (delegate* unmanaged)( - _slots[405] is not null and var loadedFnPtr + _slots[408] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[405] = nativeContext.LoadFunction("SDL_GetNumberProperty", "SDL3") + : _slots[408] = nativeContext.LoadFunction("SDL_GetNumberProperty", "SDL3") ) )(props, name, default_value); @@ -75040,9 +76304,9 @@ public static long GetNumberProperty( int ISdl.GetNumCameraDrivers() => ( (delegate* unmanaged)( - _slots[406] is not null and var loadedFnPtr + _slots[409] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[406] = nativeContext.LoadFunction("SDL_GetNumCameraDrivers", "SDL3") + : _slots[409] = nativeContext.LoadFunction("SDL_GetNumCameraDrivers", "SDL3") ) )(); @@ -75054,9 +76318,9 @@ _slots[406] is not null and var loadedFnPtr int ISdl.GetNumGamepadTouchpadFingers(GamepadHandle gamepad, int touchpad) => ( (delegate* unmanaged)( - _slots[407] is not null and var loadedFnPtr + _slots[410] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[407] = nativeContext.LoadFunction( + : _slots[410] = nativeContext.LoadFunction( "SDL_GetNumGamepadTouchpadFingers", "SDL3" ) @@ -75072,9 +76336,9 @@ public static int GetNumGamepadTouchpadFingers(GamepadHandle gamepad, int touchp int ISdl.GetNumGamepadTouchpads(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[408] is not null and var loadedFnPtr + _slots[411] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[408] = nativeContext.LoadFunction("SDL_GetNumGamepadTouchpads", "SDL3") + : _slots[411] = nativeContext.LoadFunction("SDL_GetNumGamepadTouchpads", "SDL3") ) )(gamepad); @@ -75087,9 +76351,9 @@ public static int GetNumGamepadTouchpads(GamepadHandle gamepad) => int ISdl.GetNumGPUDrivers() => ( (delegate* unmanaged)( - _slots[409] is not null and var loadedFnPtr + _slots[412] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[409] = nativeContext.LoadFunction("SDL_GetNumGPUDrivers", "SDL3") + : _slots[412] = nativeContext.LoadFunction("SDL_GetNumGPUDrivers", "SDL3") ) )(); @@ -75101,9 +76365,9 @@ _slots[409] is not null and var loadedFnPtr int ISdl.GetNumHapticAxes(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[410] is not null and var loadedFnPtr + _slots[413] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[410] = nativeContext.LoadFunction("SDL_GetNumHapticAxes", "SDL3") + : _slots[413] = nativeContext.LoadFunction("SDL_GetNumHapticAxes", "SDL3") ) )(haptic); @@ -75115,9 +76379,9 @@ _slots[410] is not null and var loadedFnPtr int ISdl.GetNumJoystickAxes(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[411] is not null and var loadedFnPtr + _slots[414] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[411] = nativeContext.LoadFunction("SDL_GetNumJoystickAxes", "SDL3") + : _slots[414] = nativeContext.LoadFunction("SDL_GetNumJoystickAxes", "SDL3") ) )(joystick); @@ -75130,9 +76394,9 @@ public static int GetNumJoystickAxes(JoystickHandle joystick) => int ISdl.GetNumJoystickBalls(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[412] is not null and var loadedFnPtr + _slots[415] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[412] = nativeContext.LoadFunction("SDL_GetNumJoystickBalls", "SDL3") + : _slots[415] = nativeContext.LoadFunction("SDL_GetNumJoystickBalls", "SDL3") ) )(joystick); @@ -75145,9 +76409,9 @@ public static int GetNumJoystickBalls(JoystickHandle joystick) => int ISdl.GetNumJoystickButtons(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[413] is not null and var loadedFnPtr + _slots[416] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[413] = nativeContext.LoadFunction("SDL_GetNumJoystickButtons", "SDL3") + : _slots[416] = nativeContext.LoadFunction("SDL_GetNumJoystickButtons", "SDL3") ) )(joystick); @@ -75160,9 +76424,9 @@ public static int GetNumJoystickButtons(JoystickHandle joystick) => int ISdl.GetNumJoystickHats(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[414] is not null and var loadedFnPtr + _slots[417] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[414] = nativeContext.LoadFunction("SDL_GetNumJoystickHats", "SDL3") + : _slots[417] = nativeContext.LoadFunction("SDL_GetNumJoystickHats", "SDL3") ) )(joystick); @@ -75175,9 +76439,9 @@ public static int GetNumJoystickHats(JoystickHandle joystick) => int ISdl.GetNumLogicalCPUCores() => ( (delegate* unmanaged)( - _slots[415] is not null and var loadedFnPtr + _slots[418] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[415] = nativeContext.LoadFunction("SDL_GetNumLogicalCPUCores", "SDL3") + : _slots[418] = nativeContext.LoadFunction("SDL_GetNumLogicalCPUCores", "SDL3") ) )(); @@ -75189,9 +76453,9 @@ _slots[415] is not null and var loadedFnPtr int ISdl.GetNumRenderDrivers() => ( (delegate* unmanaged)( - _slots[416] is not null and var loadedFnPtr + _slots[419] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[416] = nativeContext.LoadFunction("SDL_GetNumRenderDrivers", "SDL3") + : _slots[419] = nativeContext.LoadFunction("SDL_GetNumRenderDrivers", "SDL3") ) )(); @@ -75203,9 +76467,9 @@ _slots[416] is not null and var loadedFnPtr int ISdl.GetNumVideoDrivers() => ( (delegate* unmanaged)( - _slots[417] is not null and var loadedFnPtr + _slots[420] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[417] = nativeContext.LoadFunction("SDL_GetNumVideoDrivers", "SDL3") + : _slots[420] = nativeContext.LoadFunction("SDL_GetNumVideoDrivers", "SDL3") ) )(); @@ -75222,9 +76486,9 @@ void ISdl.GetOriginalMemoryFunctions( ) => ( (delegate* unmanaged)( - _slots[418] is not null and var loadedFnPtr + _slots[421] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[418] = nativeContext.LoadFunction( + : _slots[421] = nativeContext.LoadFunction( "SDL_GetOriginalMemoryFunctions", "SDL3" ) @@ -75276,9 +76540,9 @@ public static void GetOriginalMemoryFunctions( byte ISdl.GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => ( (delegate* unmanaged)( - _slots[419] is not null and var loadedFnPtr + _slots[422] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[419] = nativeContext.LoadFunction("SDL_GetPathInfo", "SDL3") + : _slots[422] = nativeContext.LoadFunction("SDL_GetPathInfo", "SDL3") ) )(path, info); @@ -75314,9 +76578,9 @@ Ref info ulong ISdl.GetPerformanceCounter() => ( (delegate* unmanaged)( - _slots[420] is not null and var loadedFnPtr + _slots[423] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[420] = nativeContext.LoadFunction("SDL_GetPerformanceCounter", "SDL3") + : _slots[423] = nativeContext.LoadFunction("SDL_GetPerformanceCounter", "SDL3") ) )(); @@ -75329,9 +76593,9 @@ _slots[420] is not null and var loadedFnPtr ulong ISdl.GetPerformanceFrequency() => ( (delegate* unmanaged)( - _slots[421] is not null and var loadedFnPtr + _slots[424] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[421] = nativeContext.LoadFunction( + : _slots[424] = nativeContext.LoadFunction( "SDL_GetPerformanceFrequency", "SDL3" ) @@ -75358,9 +76622,9 @@ public static Ptr GetPixelFormatDetails(PixelFormat format) PixelFormatDetails* ISdl.GetPixelFormatDetailsRaw(PixelFormat format) => ( (delegate* unmanaged)( - _slots[422] is not null and var loadedFnPtr + _slots[425] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[422] = nativeContext.LoadFunction("SDL_GetPixelFormatDetails", "SDL3") + : _slots[425] = nativeContext.LoadFunction("SDL_GetPixelFormatDetails", "SDL3") ) )(format); @@ -75380,9 +76644,9 @@ PixelFormat ISdl.GetPixelFormatForMasks( ) => ( (delegate* unmanaged)( - _slots[423] is not null and var loadedFnPtr + _slots[426] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[423] = nativeContext.LoadFunction("SDL_GetPixelFormatForMasks", "SDL3") + : _slots[426] = nativeContext.LoadFunction("SDL_GetPixelFormatForMasks", "SDL3") ) )(bpp, Rmask, Gmask, Bmask, Amask); @@ -75411,9 +76675,9 @@ public static Ptr GetPixelFormatName(PixelFormat format) => sbyte* ISdl.GetPixelFormatNameRaw(PixelFormat format) => ( (delegate* unmanaged)( - _slots[424] is not null and var loadedFnPtr + _slots[427] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[424] = nativeContext.LoadFunction("SDL_GetPixelFormatName", "SDL3") + : _slots[427] = nativeContext.LoadFunction("SDL_GetPixelFormatName", "SDL3") ) )(format); @@ -75436,9 +76700,9 @@ _slots[424] is not null and var loadedFnPtr sbyte* ISdl.GetPlatformRaw() => ( (delegate* unmanaged)( - _slots[425] is not null and var loadedFnPtr + _slots[428] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[425] = nativeContext.LoadFunction("SDL_GetPlatform", "SDL3") + : _slots[428] = nativeContext.LoadFunction("SDL_GetPlatform", "SDL3") ) )(); @@ -75455,9 +76719,9 @@ _slots[425] is not null and var loadedFnPtr ) => ( (delegate* unmanaged)( - _slots[426] is not null and var loadedFnPtr + _slots[429] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[426] = nativeContext.LoadFunction("SDL_GetPointerProperty", "SDL3") + : _slots[429] = nativeContext.LoadFunction("SDL_GetPointerProperty", "SDL3") ) )(props, name, default_value); @@ -75496,9 +76760,9 @@ Ref default_value PowerState ISdl.GetPowerInfo(int* seconds, int* percent) => ( (delegate* unmanaged)( - _slots[427] is not null and var loadedFnPtr + _slots[430] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[427] = nativeContext.LoadFunction("SDL_GetPowerInfo", "SDL3") + : _slots[430] = nativeContext.LoadFunction("SDL_GetPowerInfo", "SDL3") ) )(seconds, percent); @@ -75527,9 +76791,9 @@ public static PowerState GetPowerInfo(Ref seconds, Ref percent) => Locale** ISdl.GetPreferredLocales(int* count) => ( (delegate* unmanaged)( - _slots[428] is not null and var loadedFnPtr + _slots[431] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[428] = nativeContext.LoadFunction("SDL_GetPreferredLocales", "SDL3") + : _slots[431] = nativeContext.LoadFunction("SDL_GetPreferredLocales", "SDL3") ) )(count); @@ -75559,9 +76823,9 @@ public static Ptr2D GetPreferredLocales(Ref count) => ) => ( (delegate* unmanaged)( - _slots[429] is not null and var loadedFnPtr + _slots[432] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[429] = nativeContext.LoadFunction("SDL_GetPrefPath", "SDL3") + : _slots[432] = nativeContext.LoadFunction("SDL_GetPrefPath", "SDL3") ) )(org, app); @@ -75599,9 +76863,9 @@ public static Ptr GetPrefPath( uint ISdl.GetPrimaryDisplay() => ( (delegate* unmanaged)( - _slots[430] is not null and var loadedFnPtr + _slots[433] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[430] = nativeContext.LoadFunction("SDL_GetPrimaryDisplay", "SDL3") + : _slots[433] = nativeContext.LoadFunction("SDL_GetPrimaryDisplay", "SDL3") ) )(); @@ -75623,9 +76887,9 @@ _slots[430] is not null and var loadedFnPtr sbyte* ISdl.GetPrimarySelectionTextRaw() => ( (delegate* unmanaged)( - _slots[431] is not null and var loadedFnPtr + _slots[434] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[431] = nativeContext.LoadFunction( + : _slots[434] = nativeContext.LoadFunction( "SDL_GetPrimarySelectionText", "SDL3" ) @@ -75641,9 +76905,9 @@ _slots[431] is not null and var loadedFnPtr IOStreamHandle ISdl.GetProcessInput(ProcessHandle process) => ( (delegate* unmanaged)( - _slots[432] is not null and var loadedFnPtr + _slots[435] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[432] = nativeContext.LoadFunction("SDL_GetProcessInput", "SDL3") + : _slots[435] = nativeContext.LoadFunction("SDL_GetProcessInput", "SDL3") ) )(process); @@ -75656,9 +76920,9 @@ public static IOStreamHandle GetProcessInput(ProcessHandle process) => IOStreamHandle ISdl.GetProcessOutput(ProcessHandle process) => ( (delegate* unmanaged)( - _slots[433] is not null and var loadedFnPtr + _slots[436] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[433] = nativeContext.LoadFunction("SDL_GetProcessOutput", "SDL3") + : _slots[436] = nativeContext.LoadFunction("SDL_GetProcessOutput", "SDL3") ) )(process); @@ -75671,9 +76935,9 @@ public static IOStreamHandle GetProcessOutput(ProcessHandle process) => uint ISdl.GetProcessProperties(ProcessHandle process) => ( (delegate* unmanaged)( - _slots[434] is not null and var loadedFnPtr + _slots[437] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[434] = nativeContext.LoadFunction("SDL_GetProcessProperties", "SDL3") + : _slots[437] = nativeContext.LoadFunction("SDL_GetProcessProperties", "SDL3") ) )(process); @@ -75690,9 +76954,9 @@ PropertyType ISdl.GetPropertyType( ) => ( (delegate* unmanaged)( - _slots[435] is not null and var loadedFnPtr + _slots[438] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[435] = nativeContext.LoadFunction("SDL_GetPropertyType", "SDL3") + : _slots[438] = nativeContext.LoadFunction("SDL_GetPropertyType", "SDL3") ) )(props, name); @@ -75727,9 +76991,9 @@ public static PropertyType GetPropertyType( GamepadType ISdl.GetRealGamepadType(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[436] is not null and var loadedFnPtr + _slots[439] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[436] = nativeContext.LoadFunction("SDL_GetRealGamepadType", "SDL3") + : _slots[439] = nativeContext.LoadFunction("SDL_GetRealGamepadType", "SDL3") ) )(gamepad); @@ -75742,9 +77006,9 @@ public static GamepadType GetRealGamepadType(GamepadHandle gamepad) => GamepadType ISdl.GetRealGamepadTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[437] is not null and var loadedFnPtr + _slots[440] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[437] = nativeContext.LoadFunction( + : _slots[440] = nativeContext.LoadFunction( "SDL_GetRealGamepadTypeForID", "SDL3" ) @@ -75767,9 +77031,9 @@ byte ISdl.GetRectAndLineIntersection( ) => ( (delegate* unmanaged)( - _slots[438] is not null and var loadedFnPtr + _slots[441] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[438] = nativeContext.LoadFunction( + : _slots[441] = nativeContext.LoadFunction( "SDL_GetRectAndLineIntersection", "SDL3" ) @@ -75836,9 +77100,9 @@ byte ISdl.GetRectAndLineIntersectionFloat( ) => ( (delegate* unmanaged)( - _slots[439] is not null and var loadedFnPtr + _slots[442] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[439] = nativeContext.LoadFunction( + : _slots[442] = nativeContext.LoadFunction( "SDL_GetRectAndLineIntersectionFloat", "SDL3" ) @@ -75904,9 +77168,9 @@ byte ISdl.GetRectEnclosingPoints( ) => ( (delegate* unmanaged)( - _slots[440] is not null and var loadedFnPtr + _slots[443] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[440] = nativeContext.LoadFunction("SDL_GetRectEnclosingPoints", "SDL3") + : _slots[443] = nativeContext.LoadFunction("SDL_GetRectEnclosingPoints", "SDL3") ) )(points, count, clip, result); @@ -75963,9 +77227,9 @@ byte ISdl.GetRectEnclosingPointsFloat( ) => ( (delegate* unmanaged)( - _slots[441] is not null and var loadedFnPtr + _slots[444] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[441] = nativeContext.LoadFunction( + : _slots[444] = nativeContext.LoadFunction( "SDL_GetRectEnclosingPointsFloat", "SDL3" ) @@ -76024,9 +77288,9 @@ byte ISdl.GetRectIntersection( ) => ( (delegate* unmanaged)( - _slots[442] is not null and var loadedFnPtr + _slots[445] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[442] = nativeContext.LoadFunction("SDL_GetRectIntersection", "SDL3") + : _slots[445] = nativeContext.LoadFunction("SDL_GetRectIntersection", "SDL3") ) )(A, B, result); @@ -76073,9 +77337,9 @@ byte ISdl.GetRectIntersectionFloat( ) => ( (delegate* unmanaged)( - _slots[443] is not null and var loadedFnPtr + _slots[446] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[443] = nativeContext.LoadFunction( + : _slots[446] = nativeContext.LoadFunction( "SDL_GetRectIntersectionFloat", "SDL3" ) @@ -76125,9 +77389,9 @@ byte ISdl.GetRectUnion( ) => ( (delegate* unmanaged)( - _slots[444] is not null and var loadedFnPtr + _slots[447] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[444] = nativeContext.LoadFunction("SDL_GetRectUnion", "SDL3") + : _slots[447] = nativeContext.LoadFunction("SDL_GetRectUnion", "SDL3") ) )(A, B, result); @@ -76173,9 +77437,9 @@ byte ISdl.GetRectUnionFloat( ) => ( (delegate* unmanaged)( - _slots[445] is not null and var loadedFnPtr + _slots[448] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[445] = nativeContext.LoadFunction("SDL_GetRectUnionFloat", "SDL3") + : _slots[448] = nativeContext.LoadFunction("SDL_GetRectUnionFloat", "SDL3") ) )(A, B, result); @@ -76218,9 +77482,9 @@ Ref result uint ISdl.GetRelativeMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[446] is not null and var loadedFnPtr + _slots[449] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[446] = nativeContext.LoadFunction("SDL_GetRelativeMouseState", "SDL3") + : _slots[449] = nativeContext.LoadFunction("SDL_GetRelativeMouseState", "SDL3") ) )(x, y); @@ -76251,9 +77515,9 @@ public static uint GetRelativeMouseState(Ref x, Ref y) => byte ISdl.GetRenderClipRect(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[447] is not null and var loadedFnPtr + _slots[450] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[447] = nativeContext.LoadFunction("SDL_GetRenderClipRect", "SDL3") + : _slots[450] = nativeContext.LoadFunction("SDL_GetRenderClipRect", "SDL3") ) )(renderer, rect); @@ -76283,9 +77547,9 @@ public static MaybeBool GetRenderClipRect(RendererHandle renderer, Ref ( (delegate* unmanaged)( - _slots[448] is not null and var loadedFnPtr + _slots[451] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[448] = nativeContext.LoadFunction("SDL_GetRenderColorScale", "SDL3") + : _slots[451] = nativeContext.LoadFunction("SDL_GetRenderColorScale", "SDL3") ) )(renderer, scale); @@ -76318,9 +77582,9 @@ byte ISdl.GetRenderDrawBlendMode( ) => ( (delegate* unmanaged)( - _slots[449] is not null and var loadedFnPtr + _slots[452] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[449] = nativeContext.LoadFunction("SDL_GetRenderDrawBlendMode", "SDL3") + : _slots[452] = nativeContext.LoadFunction("SDL_GetRenderDrawBlendMode", "SDL3") ) )(renderer, blendMode); @@ -76364,9 +77628,9 @@ byte ISdl.GetRenderDrawColor( ) => ( (delegate* unmanaged)( - _slots[450] is not null and var loadedFnPtr + _slots[453] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[450] = nativeContext.LoadFunction("SDL_GetRenderDrawColor", "SDL3") + : _slots[453] = nativeContext.LoadFunction("SDL_GetRenderDrawColor", "SDL3") ) )(renderer, r, g, b, a); @@ -76422,9 +77686,9 @@ byte ISdl.GetRenderDrawColorFloat( ) => ( (delegate* unmanaged)( - _slots[451] is not null and var loadedFnPtr + _slots[454] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[451] = nativeContext.LoadFunction( + : _slots[454] = nativeContext.LoadFunction( "SDL_GetRenderDrawColorFloat", "SDL3" ) @@ -76493,9 +77757,9 @@ Ref a sbyte* ISdl.GetRenderDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[452] is not null and var loadedFnPtr + _slots[455] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[452] = nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") + : _slots[455] = nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") ) )(index); @@ -76508,9 +77772,9 @@ _slots[452] is not null and var loadedFnPtr RendererHandle ISdl.GetRenderer(WindowHandle window) => ( (delegate* unmanaged)( - _slots[453] is not null and var loadedFnPtr + _slots[456] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[453] = nativeContext.LoadFunction("SDL_GetRenderer", "SDL3") + : _slots[456] = nativeContext.LoadFunction("SDL_GetRenderer", "SDL3") ) )(window); @@ -76522,9 +77786,9 @@ _slots[453] is not null and var loadedFnPtr RendererHandle ISdl.GetRendererFromTexture(Texture* texture) => ( (delegate* unmanaged)( - _slots[454] is not null and var loadedFnPtr + _slots[457] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[454] = nativeContext.LoadFunction("SDL_GetRendererFromTexture", "SDL3") + : _slots[457] = nativeContext.LoadFunction("SDL_GetRendererFromTexture", "SDL3") ) )(texture); @@ -76563,9 +77827,9 @@ public static Ptr GetRendererName(RendererHandle renderer) => sbyte* ISdl.GetRendererNameRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[455] is not null and var loadedFnPtr + _slots[458] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[455] = nativeContext.LoadFunction("SDL_GetRendererName", "SDL3") + : _slots[458] = nativeContext.LoadFunction("SDL_GetRendererName", "SDL3") ) )(renderer); @@ -76579,9 +77843,9 @@ _slots[455] is not null and var loadedFnPtr uint ISdl.GetRendererProperties(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[456] is not null and var loadedFnPtr + _slots[459] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[456] = nativeContext.LoadFunction("SDL_GetRendererProperties", "SDL3") + : _slots[459] = nativeContext.LoadFunction("SDL_GetRendererProperties", "SDL3") ) )(renderer); @@ -76600,9 +77864,9 @@ byte ISdl.GetRenderLogicalPresentation( ) => ( (delegate* unmanaged)( - _slots[457] is not null and var loadedFnPtr + _slots[460] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[457] = nativeContext.LoadFunction( + : _slots[460] = nativeContext.LoadFunction( "SDL_GetRenderLogicalPresentation", "SDL3" ) @@ -76657,9 +77921,9 @@ Ref mode byte ISdl.GetRenderLogicalPresentationRect(RendererHandle renderer, FRect* rect) => ( (delegate* unmanaged)( - _slots[458] is not null and var loadedFnPtr + _slots[461] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[458] = nativeContext.LoadFunction( + : _slots[461] = nativeContext.LoadFunction( "SDL_GetRenderLogicalPresentationRect", "SDL3" ) @@ -76705,9 +77969,9 @@ public static Ptr GetRenderMetalCommandEncoder(RendererHandle renderer) => void* ISdl.GetRenderMetalCommandEncoderRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[459] is not null and var loadedFnPtr + _slots[462] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[459] = nativeContext.LoadFunction( + : _slots[462] = nativeContext.LoadFunction( "SDL_GetRenderMetalCommandEncoder", "SDL3" ) @@ -76733,9 +77997,9 @@ public static Ptr GetRenderMetalLayer(RendererHandle renderer) => void* ISdl.GetRenderMetalLayerRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[460] is not null and var loadedFnPtr + _slots[463] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[460] = nativeContext.LoadFunction("SDL_GetRenderMetalLayer", "SDL3") + : _slots[463] = nativeContext.LoadFunction("SDL_GetRenderMetalLayer", "SDL3") ) )(renderer); @@ -76748,9 +78012,9 @@ _slots[460] is not null and var loadedFnPtr byte ISdl.GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => ( (delegate* unmanaged)( - _slots[461] is not null and var loadedFnPtr + _slots[464] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[461] = nativeContext.LoadFunction("SDL_GetRenderOutputSize", "SDL3") + : _slots[464] = nativeContext.LoadFunction("SDL_GetRenderOutputSize", "SDL3") ) )(renderer, w, h); @@ -76785,9 +78049,9 @@ Ref h byte ISdl.GetRenderSafeArea(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[462] is not null and var loadedFnPtr + _slots[465] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[462] = nativeContext.LoadFunction("SDL_GetRenderSafeArea", "SDL3") + : _slots[465] = nativeContext.LoadFunction("SDL_GetRenderSafeArea", "SDL3") ) )(renderer, rect); @@ -76817,9 +78081,9 @@ public static MaybeBool GetRenderSafeArea(RendererHandle renderer, Ref ( (delegate* unmanaged)( - _slots[463] is not null and var loadedFnPtr + _slots[466] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[463] = nativeContext.LoadFunction("SDL_GetRenderScale", "SDL3") + : _slots[466] = nativeContext.LoadFunction("SDL_GetRenderScale", "SDL3") ) )(renderer, scaleX, scaleY); @@ -76868,9 +78132,9 @@ public static Ptr GetRenderTarget(RendererHandle renderer) => Texture* ISdl.GetRenderTargetRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[464] is not null and var loadedFnPtr + _slots[467] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[464] = nativeContext.LoadFunction("SDL_GetRenderTarget", "SDL3") + : _slots[467] = nativeContext.LoadFunction("SDL_GetRenderTarget", "SDL3") ) )(renderer); @@ -76883,9 +78147,9 @@ _slots[464] is not null and var loadedFnPtr byte ISdl.GetRenderViewport(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[465] is not null and var loadedFnPtr + _slots[468] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[465] = nativeContext.LoadFunction("SDL_GetRenderViewport", "SDL3") + : _slots[468] = nativeContext.LoadFunction("SDL_GetRenderViewport", "SDL3") ) )(renderer, rect); @@ -76915,9 +78179,9 @@ public static MaybeBool GetRenderViewport(RendererHandle renderer, Ref ( (delegate* unmanaged)( - _slots[466] is not null and var loadedFnPtr + _slots[469] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[466] = nativeContext.LoadFunction("SDL_GetRenderVSync", "SDL3") + : _slots[469] = nativeContext.LoadFunction("SDL_GetRenderVSync", "SDL3") ) )(renderer, vsync); @@ -76947,9 +78211,9 @@ public static MaybeBool GetRenderVSync(RendererHandle renderer, Ref v WindowHandle ISdl.GetRenderWindow(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[467] is not null and var loadedFnPtr + _slots[470] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[467] = nativeContext.LoadFunction("SDL_GetRenderWindow", "SDL3") + : _slots[470] = nativeContext.LoadFunction("SDL_GetRenderWindow", "SDL3") ) )(renderer); @@ -76971,9 +78235,9 @@ public static WindowHandle GetRenderWindow(RendererHandle renderer) => sbyte* ISdl.GetRevisionRaw() => ( (delegate* unmanaged)( - _slots[468] is not null and var loadedFnPtr + _slots[471] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[468] = nativeContext.LoadFunction("SDL_GetRevision", "SDL3") + : _slots[471] = nativeContext.LoadFunction("SDL_GetRevision", "SDL3") ) )(); @@ -76993,9 +78257,9 @@ void ISdl.GetRGB( ) => ( (delegate* unmanaged)( - _slots[469] is not null and var loadedFnPtr + _slots[472] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[469] = nativeContext.LoadFunction("SDL_GetRGB", "SDL3") + : _slots[472] = nativeContext.LoadFunction("SDL_GetRGB", "SDL3") ) )(pixel, format, palette, r, g, b); @@ -77062,9 +78326,9 @@ void ISdl.GetRgba( byte*, byte*, void>)( - _slots[470] is not null and var loadedFnPtr + _slots[473] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[470] = nativeContext.LoadFunction("SDL_GetRGBA", "SDL3") + : _slots[473] = nativeContext.LoadFunction("SDL_GetRGBA", "SDL3") ) )(pixel, format, palette, r, g, b, a); @@ -77127,9 +78391,9 @@ public static void GetRgba( Sandbox ISdl.GetSandbox() => ( (delegate* unmanaged)( - _slots[471] is not null and var loadedFnPtr + _slots[474] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[471] = nativeContext.LoadFunction("SDL_GetSandbox", "SDL3") + : _slots[474] = nativeContext.LoadFunction("SDL_GetSandbox", "SDL3") ) )(); @@ -77144,9 +78408,9 @@ Scancode ISdl.GetScancodeFromKey( ) => ( (delegate* unmanaged)( - _slots[472] is not null and var loadedFnPtr + _slots[475] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[472] = nativeContext.LoadFunction("SDL_GetScancodeFromKey", "SDL3") + : _slots[475] = nativeContext.LoadFunction("SDL_GetScancodeFromKey", "SDL3") ) )(key, modstate); @@ -77181,9 +78445,9 @@ public static Scancode GetScancodeFromKey( Scancode ISdl.GetScancodeFromName([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[473] is not null and var loadedFnPtr + _slots[476] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[473] = nativeContext.LoadFunction("SDL_GetScancodeFromName", "SDL3") + : _slots[476] = nativeContext.LoadFunction("SDL_GetScancodeFromName", "SDL3") ) )(name); @@ -77222,9 +78486,9 @@ public static Ptr GetScancodeName(Scancode scancode) => sbyte* ISdl.GetScancodeNameRaw(Scancode scancode) => ( (delegate* unmanaged)( - _slots[474] is not null and var loadedFnPtr + _slots[477] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[474] = nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") + : _slots[477] = nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") ) )(scancode); @@ -77238,9 +78502,9 @@ _slots[474] is not null and var loadedFnPtr uint ISdl.GetSemaphoreValue(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[475] is not null and var loadedFnPtr + _slots[478] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[475] = nativeContext.LoadFunction("SDL_GetSemaphoreValue", "SDL3") + : _slots[478] = nativeContext.LoadFunction("SDL_GetSemaphoreValue", "SDL3") ) )(sem); @@ -77253,9 +78517,9 @@ _slots[475] is not null and var loadedFnPtr byte ISdl.GetSensorData(SensorHandle sensor, float* data, int num_values) => ( (delegate* unmanaged)( - _slots[476] is not null and var loadedFnPtr + _slots[479] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[476] = nativeContext.LoadFunction("SDL_GetSensorData", "SDL3") + : _slots[479] = nativeContext.LoadFunction("SDL_GetSensorData", "SDL3") ) )(sensor, data, num_values); @@ -77289,9 +78553,9 @@ int num_values SensorHandle ISdl.GetSensorFromID([NativeTypeName("SDL_SensorID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[477] is not null and var loadedFnPtr + _slots[480] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[477] = nativeContext.LoadFunction("SDL_GetSensorFromID", "SDL3") + : _slots[480] = nativeContext.LoadFunction("SDL_GetSensorFromID", "SDL3") ) )(instance_id); @@ -77304,9 +78568,9 @@ public static SensorHandle GetSensorFromID([NativeTypeName("SDL_SensorID")] uint uint ISdl.GetSensorID(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[478] is not null and var loadedFnPtr + _slots[481] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[478] = nativeContext.LoadFunction("SDL_GetSensorID", "SDL3") + : _slots[481] = nativeContext.LoadFunction("SDL_GetSensorID", "SDL3") ) )(sensor); @@ -77341,9 +78605,9 @@ public static Ptr GetSensorNameForID( sbyte* ISdl.GetSensorNameForIDRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[480] is not null and var loadedFnPtr + _slots[483] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[480] = nativeContext.LoadFunction("SDL_GetSensorNameForID", "SDL3") + : _slots[483] = nativeContext.LoadFunction("SDL_GetSensorNameForID", "SDL3") ) )(instance_id); @@ -77357,9 +78621,9 @@ _slots[480] is not null and var loadedFnPtr sbyte* ISdl.GetSensorNameRaw(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[479] is not null and var loadedFnPtr + _slots[482] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[479] = nativeContext.LoadFunction("SDL_GetSensorName", "SDL3") + : _slots[482] = nativeContext.LoadFunction("SDL_GetSensorName", "SDL3") ) )(sensor); @@ -77373,9 +78637,9 @@ _slots[479] is not null and var loadedFnPtr int ISdl.GetSensorNonPortableType(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[481] is not null and var loadedFnPtr + _slots[484] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[481] = nativeContext.LoadFunction( + : _slots[484] = nativeContext.LoadFunction( "SDL_GetSensorNonPortableType", "SDL3" ) @@ -77391,9 +78655,9 @@ public static int GetSensorNonPortableType(SensorHandle sensor) => int ISdl.GetSensorNonPortableTypeForID([NativeTypeName("SDL_SensorID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[482] is not null and var loadedFnPtr + _slots[485] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[482] = nativeContext.LoadFunction( + : _slots[485] = nativeContext.LoadFunction( "SDL_GetSensorNonPortableTypeForID", "SDL3" ) @@ -77410,9 +78674,9 @@ public static int GetSensorNonPortableTypeForID( uint ISdl.GetSensorProperties(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[483] is not null and var loadedFnPtr + _slots[486] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[483] = nativeContext.LoadFunction("SDL_GetSensorProperties", "SDL3") + : _slots[486] = nativeContext.LoadFunction("SDL_GetSensorProperties", "SDL3") ) )(sensor); @@ -77426,9 +78690,9 @@ public static uint GetSensorProperties(SensorHandle sensor) => uint* ISdl.GetSensors(int* count) => ( (delegate* unmanaged)( - _slots[484] is not null and var loadedFnPtr + _slots[487] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[484] = nativeContext.LoadFunction("SDL_GetSensors", "SDL3") + : _slots[487] = nativeContext.LoadFunction("SDL_GetSensors", "SDL3") ) )(count); @@ -77456,9 +78720,9 @@ Ptr ISdl.GetSensors(Ref count) SensorType ISdl.GetSensorType(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[485] is not null and var loadedFnPtr + _slots[488] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[485] = nativeContext.LoadFunction("SDL_GetSensorType", "SDL3") + : _slots[488] = nativeContext.LoadFunction("SDL_GetSensorType", "SDL3") ) )(sensor); @@ -77470,9 +78734,9 @@ _slots[485] is not null and var loadedFnPtr SensorType ISdl.GetSensorTypeForID([NativeTypeName("SDL_SensorID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[486] is not null and var loadedFnPtr + _slots[489] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[486] = nativeContext.LoadFunction("SDL_GetSensorTypeForID", "SDL3") + : _slots[489] = nativeContext.LoadFunction("SDL_GetSensorTypeForID", "SDL3") ) )(instance_id); @@ -77486,9 +78750,9 @@ public static SensorType GetSensorTypeForID( int ISdl.GetSilenceValueForFormat(AudioFormat format) => ( (delegate* unmanaged)( - _slots[487] is not null and var loadedFnPtr + _slots[490] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[487] = nativeContext.LoadFunction( + : _slots[490] = nativeContext.LoadFunction( "SDL_GetSilenceValueForFormat", "SDL3" ) @@ -77504,9 +78768,9 @@ public static int GetSilenceValueForFormat(AudioFormat format) => nuint ISdl.GetSimdAlignment() => ( (delegate* unmanaged)( - _slots[488] is not null and var loadedFnPtr + _slots[491] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[488] = nativeContext.LoadFunction("SDL_GetSIMDAlignment", "SDL3") + : _slots[491] = nativeContext.LoadFunction("SDL_GetSIMDAlignment", "SDL3") ) )(); @@ -77523,9 +78787,9 @@ byte ISdl.GetStorageFileSize( ) => ( (delegate* unmanaged)( - _slots[489] is not null and var loadedFnPtr + _slots[492] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[489] = nativeContext.LoadFunction("SDL_GetStorageFileSize", "SDL3") + : _slots[492] = nativeContext.LoadFunction("SDL_GetStorageFileSize", "SDL3") ) )(storage, path, length); @@ -77571,9 +78835,9 @@ byte ISdl.GetStoragePathInfo( ) => ( (delegate* unmanaged)( - _slots[490] is not null and var loadedFnPtr + _slots[493] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[490] = nativeContext.LoadFunction("SDL_GetStoragePathInfo", "SDL3") + : _slots[493] = nativeContext.LoadFunction("SDL_GetStoragePathInfo", "SDL3") ) )(storage, path, info); @@ -77615,9 +78879,9 @@ Ref info ulong ISdl.GetStorageSpaceRemaining(StorageHandle storage) => ( (delegate* unmanaged)( - _slots[491] is not null and var loadedFnPtr + _slots[494] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[491] = nativeContext.LoadFunction( + : _slots[494] = nativeContext.LoadFunction( "SDL_GetStorageSpaceRemaining", "SDL3" ) @@ -77638,9 +78902,9 @@ public static ulong GetStorageSpaceRemaining(StorageHandle storage) => ) => ( (delegate* unmanaged)( - _slots[492] is not null and var loadedFnPtr + _slots[495] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[492] = nativeContext.LoadFunction("SDL_GetStringProperty", "SDL3") + : _slots[495] = nativeContext.LoadFunction("SDL_GetStringProperty", "SDL3") ) )(props, name, default_value); @@ -77681,9 +78945,9 @@ public static Ptr GetStringProperty( byte ISdl.GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha) => ( (delegate* unmanaged)( - _slots[493] is not null and var loadedFnPtr + _slots[496] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[493] = nativeContext.LoadFunction("SDL_GetSurfaceAlphaMod", "SDL3") + : _slots[496] = nativeContext.LoadFunction("SDL_GetSurfaceAlphaMod", "SDL3") ) )(surface, alpha); @@ -77725,9 +78989,9 @@ byte ISdl.GetSurfaceBlendMode( ) => ( (delegate* unmanaged)( - _slots[494] is not null and var loadedFnPtr + _slots[497] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[494] = nativeContext.LoadFunction("SDL_GetSurfaceBlendMode", "SDL3") + : _slots[497] = nativeContext.LoadFunction("SDL_GetSurfaceBlendMode", "SDL3") ) )(surface, blendMode); @@ -77766,9 +79030,9 @@ public static MaybeBool GetSurfaceBlendMode( byte ISdl.GetSurfaceClipRect(Surface* surface, Rect* rect) => ( (delegate* unmanaged)( - _slots[495] is not null and var loadedFnPtr + _slots[498] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[495] = nativeContext.LoadFunction("SDL_GetSurfaceClipRect", "SDL3") + : _slots[498] = nativeContext.LoadFunction("SDL_GetSurfaceClipRect", "SDL3") ) )(surface, rect); @@ -77800,9 +79064,9 @@ public static MaybeBool GetSurfaceClipRect(Ref surface, Ref byte ISdl.GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key) => ( (delegate* unmanaged)( - _slots[496] is not null and var loadedFnPtr + _slots[499] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[496] = nativeContext.LoadFunction("SDL_GetSurfaceColorKey", "SDL3") + : _slots[499] = nativeContext.LoadFunction("SDL_GetSurfaceColorKey", "SDL3") ) )(surface, key); @@ -77845,9 +79109,9 @@ byte ISdl.GetSurfaceColorMod( ) => ( (delegate* unmanaged)( - _slots[497] is not null and var loadedFnPtr + _slots[500] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[497] = nativeContext.LoadFunction("SDL_GetSurfaceColorMod", "SDL3") + : _slots[500] = nativeContext.LoadFunction("SDL_GetSurfaceColorMod", "SDL3") ) )(surface, r, g, b); @@ -77894,9 +79158,9 @@ public static MaybeBool GetSurfaceColorMod( Colorspace ISdl.GetSurfaceColorspace(Surface* surface) => ( (delegate* unmanaged)( - _slots[498] is not null and var loadedFnPtr + _slots[501] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[498] = nativeContext.LoadFunction("SDL_GetSurfaceColorspace", "SDL3") + : _slots[501] = nativeContext.LoadFunction("SDL_GetSurfaceColorspace", "SDL3") ) )(surface); @@ -77924,9 +79188,9 @@ public static Colorspace GetSurfaceColorspace(Ref surface) => Surface** ISdl.GetSurfaceImages(Surface* surface, int* count) => ( (delegate* unmanaged)( - _slots[499] is not null and var loadedFnPtr + _slots[502] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[499] = nativeContext.LoadFunction("SDL_GetSurfaceImages", "SDL3") + : _slots[502] = nativeContext.LoadFunction("SDL_GetSurfaceImages", "SDL3") ) )(surface, count); @@ -77955,9 +79219,9 @@ public static Ptr2D GetSurfaceImages(Ref surface, Ref cou Palette* ISdl.GetSurfacePalette(Surface* surface) => ( (delegate* unmanaged)( - _slots[500] is not null and var loadedFnPtr + _slots[503] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[500] = nativeContext.LoadFunction("SDL_GetSurfacePalette", "SDL3") + : _slots[503] = nativeContext.LoadFunction("SDL_GetSurfacePalette", "SDL3") ) )(surface); @@ -77985,9 +79249,9 @@ public static Ptr GetSurfacePalette(Ref surface) => uint ISdl.GetSurfaceProperties(Surface* surface) => ( (delegate* unmanaged)( - _slots[501] is not null and var loadedFnPtr + _slots[504] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[501] = nativeContext.LoadFunction("SDL_GetSurfaceProperties", "SDL3") + : _slots[504] = nativeContext.LoadFunction("SDL_GetSurfaceProperties", "SDL3") ) )(surface); @@ -78017,9 +79281,9 @@ public static uint GetSurfaceProperties(Ref surface) => int ISdl.GetSystemRAM() => ( (delegate* unmanaged)( - _slots[502] is not null and var loadedFnPtr + _slots[505] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[502] = nativeContext.LoadFunction("SDL_GetSystemRAM", "SDL3") + : _slots[505] = nativeContext.LoadFunction("SDL_GetSystemRAM", "SDL3") ) )(); @@ -78031,9 +79295,9 @@ _slots[502] is not null and var loadedFnPtr SystemTheme ISdl.GetSystemTheme() => ( (delegate* unmanaged)( - _slots[503] is not null and var loadedFnPtr + _slots[506] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[503] = nativeContext.LoadFunction("SDL_GetSystemTheme", "SDL3") + : _slots[506] = nativeContext.LoadFunction("SDL_GetSystemTheme", "SDL3") ) )(); @@ -78045,9 +79309,9 @@ _slots[503] is not null and var loadedFnPtr byte ISdl.GetTextInputArea(WindowHandle window, Rect* rect, int* cursor) => ( (delegate* unmanaged)( - _slots[504] is not null and var loadedFnPtr + _slots[507] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[504] = nativeContext.LoadFunction("SDL_GetTextInputArea", "SDL3") + : _slots[507] = nativeContext.LoadFunction("SDL_GetTextInputArea", "SDL3") ) )(window, rect, cursor); @@ -78082,9 +79346,9 @@ Ref cursor byte ISdl.GetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha) => ( (delegate* unmanaged)( - _slots[505] is not null and var loadedFnPtr + _slots[508] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[505] = nativeContext.LoadFunction("SDL_GetTextureAlphaMod", "SDL3") + : _slots[508] = nativeContext.LoadFunction("SDL_GetTextureAlphaMod", "SDL3") ) )(texture, alpha); @@ -78123,9 +79387,9 @@ public static MaybeBool GetTextureAlphaMod( byte ISdl.GetTextureAlphaModFloat(Texture* texture, float* alpha) => ( (delegate* unmanaged)( - _slots[506] is not null and var loadedFnPtr + _slots[509] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[506] = nativeContext.LoadFunction( + : _slots[509] = nativeContext.LoadFunction( "SDL_GetTextureAlphaModFloat", "SDL3" ) @@ -78163,9 +79427,9 @@ byte ISdl.GetTextureBlendMode( ) => ( (delegate* unmanaged)( - _slots[507] is not null and var loadedFnPtr + _slots[510] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[507] = nativeContext.LoadFunction("SDL_GetTextureBlendMode", "SDL3") + : _slots[510] = nativeContext.LoadFunction("SDL_GetTextureBlendMode", "SDL3") ) )(texture, blendMode); @@ -78209,9 +79473,9 @@ byte ISdl.GetTextureColorMod( ) => ( (delegate* unmanaged)( - _slots[508] is not null and var loadedFnPtr + _slots[511] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[508] = nativeContext.LoadFunction("SDL_GetTextureColorMod", "SDL3") + : _slots[511] = nativeContext.LoadFunction("SDL_GetTextureColorMod", "SDL3") ) )(texture, r, g, b); @@ -78258,9 +79522,9 @@ public static MaybeBool GetTextureColorMod( byte ISdl.GetTextureColorModFloat(Texture* texture, float* r, float* g, float* b) => ( (delegate* unmanaged)( - _slots[509] is not null and var loadedFnPtr + _slots[512] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[509] = nativeContext.LoadFunction( + : _slots[512] = nativeContext.LoadFunction( "SDL_GetTextureColorModFloat", "SDL3" ) @@ -78307,9 +79571,9 @@ Ref b uint ISdl.GetTextureProperties(Texture* texture) => ( (delegate* unmanaged)( - _slots[510] is not null and var loadedFnPtr + _slots[513] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[510] = nativeContext.LoadFunction("SDL_GetTextureProperties", "SDL3") + : _slots[513] = nativeContext.LoadFunction("SDL_GetTextureProperties", "SDL3") ) )(texture); @@ -78339,9 +79603,9 @@ public static uint GetTextureProperties(Ref texture) => byte ISdl.GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode) => ( (delegate* unmanaged)( - _slots[511] is not null and var loadedFnPtr + _slots[514] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[511] = nativeContext.LoadFunction("SDL_GetTextureScaleMode", "SDL3") + : _slots[514] = nativeContext.LoadFunction("SDL_GetTextureScaleMode", "SDL3") ) )(texture, scaleMode); @@ -78375,9 +79639,9 @@ Ref scaleMode byte ISdl.GetTextureSize(Texture* texture, float* w, float* h) => ( (delegate* unmanaged)( - _slots[512] is not null and var loadedFnPtr + _slots[515] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[512] = nativeContext.LoadFunction("SDL_GetTextureSize", "SDL3") + : _slots[515] = nativeContext.LoadFunction("SDL_GetTextureSize", "SDL3") ) )(texture, w, h); @@ -78413,9 +79677,9 @@ Ref h ulong ISdl.GetThreadID(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[513] is not null and var loadedFnPtr + _slots[516] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[513] = nativeContext.LoadFunction("SDL_GetThreadID", "SDL3") + : _slots[516] = nativeContext.LoadFunction("SDL_GetThreadID", "SDL3") ) )(thread); @@ -78438,9 +79702,9 @@ Ptr ISdl.GetThreadName(ThreadHandle thread) => sbyte* ISdl.GetThreadNameRaw(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[514] is not null and var loadedFnPtr + _slots[517] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[514] = nativeContext.LoadFunction("SDL_GetThreadName", "SDL3") + : _slots[517] = nativeContext.LoadFunction("SDL_GetThreadName", "SDL3") ) )(thread); @@ -78450,13 +79714,28 @@ _slots[514] is not null and var loadedFnPtr public static sbyte* GetThreadNameRaw(ThreadHandle thread) => DllImport.GetThreadNameRaw(thread); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ThreadState ISdl.GetThreadState(ThreadHandle thread) => + ( + (delegate* unmanaged)( + _slots[518] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[518] = nativeContext.LoadFunction("SDL_GetThreadState", "SDL3") + ) + )(thread); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ThreadState GetThreadState(ThreadHandle thread) => + DllImport.GetThreadState(thread); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetTicks() => ( (delegate* unmanaged)( - _slots[515] is not null and var loadedFnPtr + _slots[519] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[515] = nativeContext.LoadFunction("SDL_GetTicks", "SDL3") + : _slots[519] = nativeContext.LoadFunction("SDL_GetTicks", "SDL3") ) )(); @@ -78469,9 +79748,9 @@ _slots[515] is not null and var loadedFnPtr ulong ISdl.GetTicksNS() => ( (delegate* unmanaged)( - _slots[516] is not null and var loadedFnPtr + _slots[520] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[516] = nativeContext.LoadFunction("SDL_GetTicksNS", "SDL3") + : _slots[520] = nativeContext.LoadFunction("SDL_GetTicksNS", "SDL3") ) )(); @@ -78484,9 +79763,9 @@ _slots[516] is not null and var loadedFnPtr void* ISdl.GetTLS([NativeTypeName("SDL_TLSID *")] AtomicInt* id) => ( (delegate* unmanaged)( - _slots[517] is not null and var loadedFnPtr + _slots[521] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[517] = nativeContext.LoadFunction("SDL_GetTLS", "SDL3") + : _slots[521] = nativeContext.LoadFunction("SDL_GetTLS", "SDL3") ) )(id); @@ -78525,9 +79804,9 @@ public static Ptr GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulon sbyte* ISdl.GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID) => ( (delegate* unmanaged)( - _slots[518] is not null and var loadedFnPtr + _slots[522] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[518] = nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") + : _slots[522] = nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") ) )(touchID); @@ -78541,9 +79820,9 @@ _slots[518] is not null and var loadedFnPtr ulong* ISdl.GetTouchDevices(int* count) => ( (delegate* unmanaged)( - _slots[519] is not null and var loadedFnPtr + _slots[523] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[519] = nativeContext.LoadFunction("SDL_GetTouchDevices", "SDL3") + : _slots[523] = nativeContext.LoadFunction("SDL_GetTouchDevices", "SDL3") ) )(count); @@ -78571,9 +79850,9 @@ Ptr ISdl.GetTouchDevices(Ref count) TouchDeviceType ISdl.GetTouchDeviceType([NativeTypeName("SDL_TouchID")] ulong touchID) => ( (delegate* unmanaged)( - _slots[520] is not null and var loadedFnPtr + _slots[524] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[520] = nativeContext.LoadFunction("SDL_GetTouchDeviceType", "SDL3") + : _slots[524] = nativeContext.LoadFunction("SDL_GetTouchDeviceType", "SDL3") ) )(touchID); @@ -78587,9 +79866,9 @@ public static TouchDeviceType GetTouchDeviceType( Finger** ISdl.GetTouchFingers([NativeTypeName("SDL_TouchID")] ulong touchID, int* count) => ( (delegate* unmanaged)( - _slots[521] is not null and var loadedFnPtr + _slots[525] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[521] = nativeContext.LoadFunction("SDL_GetTouchFingers", "SDL3") + : _slots[525] = nativeContext.LoadFunction("SDL_GetTouchFingers", "SDL3") ) )(touchID, count); @@ -78633,9 +79912,9 @@ Ref count sbyte* ISdl.GetUserFolderRaw(Folder folder) => ( (delegate* unmanaged)( - _slots[522] is not null and var loadedFnPtr + _slots[526] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[522] = nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") + : _slots[526] = nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") ) )(folder); @@ -78648,9 +79927,9 @@ _slots[522] is not null and var loadedFnPtr int ISdl.GetVersion() => ( (delegate* unmanaged)( - _slots[523] is not null and var loadedFnPtr + _slots[527] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[523] = nativeContext.LoadFunction("SDL_GetVersion", "SDL3") + : _slots[527] = nativeContext.LoadFunction("SDL_GetVersion", "SDL3") ) )(); @@ -78671,9 +79950,9 @@ _slots[523] is not null and var loadedFnPtr sbyte* ISdl.GetVideoDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[524] is not null and var loadedFnPtr + _slots[528] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[524] = nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") + : _slots[528] = nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") ) )(index); @@ -78686,9 +79965,9 @@ _slots[524] is not null and var loadedFnPtr byte ISdl.GetWindowAspectRatio(WindowHandle window, float* min_aspect, float* max_aspect) => ( (delegate* unmanaged)( - _slots[525] is not null and var loadedFnPtr + _slots[529] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[525] = nativeContext.LoadFunction("SDL_GetWindowAspectRatio", "SDL3") + : _slots[529] = nativeContext.LoadFunction("SDL_GetWindowAspectRatio", "SDL3") ) )(window, min_aspect, max_aspect); @@ -78736,9 +80015,9 @@ byte ISdl.GetWindowBordersSize( ) => ( (delegate* unmanaged)( - _slots[526] is not null and var loadedFnPtr + _slots[530] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[526] = nativeContext.LoadFunction("SDL_GetWindowBordersSize", "SDL3") + : _slots[530] = nativeContext.LoadFunction("SDL_GetWindowBordersSize", "SDL3") ) )(window, top, left, bottom, right); @@ -78795,9 +80074,9 @@ Ref right float ISdl.GetWindowDisplayScale(WindowHandle window) => ( (delegate* unmanaged)( - _slots[527] is not null and var loadedFnPtr + _slots[531] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[527] = nativeContext.LoadFunction("SDL_GetWindowDisplayScale", "SDL3") + : _slots[531] = nativeContext.LoadFunction("SDL_GetWindowDisplayScale", "SDL3") ) )(window); @@ -78810,9 +80089,9 @@ public static float GetWindowDisplayScale(WindowHandle window) => ulong ISdl.GetWindowFlags(WindowHandle window) => ( (delegate* unmanaged)( - _slots[528] is not null and var loadedFnPtr + _slots[532] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[528] = nativeContext.LoadFunction("SDL_GetWindowFlags", "SDL3") + : _slots[532] = nativeContext.LoadFunction("SDL_GetWindowFlags", "SDL3") ) )(window); @@ -78825,9 +80104,9 @@ _slots[528] is not null and var loadedFnPtr WindowHandle ISdl.GetWindowFromEvent([NativeTypeName("const SDL_Event *")] Event* @event) => ( (delegate* unmanaged)( - _slots[529] is not null and var loadedFnPtr + _slots[533] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[529] = nativeContext.LoadFunction("SDL_GetWindowFromEvent", "SDL3") + : _slots[533] = nativeContext.LoadFunction("SDL_GetWindowFromEvent", "SDL3") ) )(@event); @@ -78857,9 +80136,9 @@ public static WindowHandle GetWindowFromEvent( WindowHandle ISdl.GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id) => ( (delegate* unmanaged)( - _slots[530] is not null and var loadedFnPtr + _slots[534] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[530] = nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") + : _slots[534] = nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") ) )(id); @@ -78883,9 +80162,9 @@ public static Ptr GetWindowFullscreenMode(WindowHandle window) => DisplayMode* ISdl.GetWindowFullscreenModeRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[531] is not null and var loadedFnPtr + _slots[535] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[531] = nativeContext.LoadFunction( + : _slots[535] = nativeContext.LoadFunction( "SDL_GetWindowFullscreenMode", "SDL3" ) @@ -78902,9 +80181,9 @@ _slots[531] is not null and var loadedFnPtr void* ISdl.GetWindowICCProfile(WindowHandle window, [NativeTypeName("size_t *")] nuint* size) => ( (delegate* unmanaged)( - _slots[532] is not null and var loadedFnPtr + _slots[536] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[532] = nativeContext.LoadFunction("SDL_GetWindowICCProfile", "SDL3") + : _slots[536] = nativeContext.LoadFunction("SDL_GetWindowICCProfile", "SDL3") ) )(window, size); @@ -78936,9 +80215,9 @@ public static Ptr GetWindowICCProfile( uint ISdl.GetWindowID(WindowHandle window) => ( (delegate* unmanaged)( - _slots[533] is not null and var loadedFnPtr + _slots[537] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[533] = nativeContext.LoadFunction("SDL_GetWindowID", "SDL3") + : _slots[537] = nativeContext.LoadFunction("SDL_GetWindowID", "SDL3") ) )(window); @@ -78962,9 +80241,9 @@ public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => byte ISdl.GetWindowKeyboardGrabRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[534] is not null and var loadedFnPtr + _slots[538] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[534] = nativeContext.LoadFunction("SDL_GetWindowKeyboardGrab", "SDL3") + : _slots[538] = nativeContext.LoadFunction("SDL_GetWindowKeyboardGrab", "SDL3") ) )(window); @@ -78978,9 +80257,9 @@ public static byte GetWindowKeyboardGrabRaw(WindowHandle window) => byte ISdl.GetWindowMaximumSize(WindowHandle window, int* w, int* h) => ( (delegate* unmanaged)( - _slots[535] is not null and var loadedFnPtr + _slots[539] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[535] = nativeContext.LoadFunction("SDL_GetWindowMaximumSize", "SDL3") + : _slots[539] = nativeContext.LoadFunction("SDL_GetWindowMaximumSize", "SDL3") ) )(window, w, h); @@ -79015,9 +80294,9 @@ Ref h byte ISdl.GetWindowMinimumSize(WindowHandle window, int* w, int* h) => ( (delegate* unmanaged)( - _slots[536] is not null and var loadedFnPtr + _slots[540] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[536] = nativeContext.LoadFunction("SDL_GetWindowMinimumSize", "SDL3") + : _slots[540] = nativeContext.LoadFunction("SDL_GetWindowMinimumSize", "SDL3") ) )(window, w, h); @@ -79063,9 +80342,9 @@ public static MaybeBool GetWindowMouseGrab(WindowHandle window) => byte ISdl.GetWindowMouseGrabRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[537] is not null and var loadedFnPtr + _slots[541] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[537] = nativeContext.LoadFunction("SDL_GetWindowMouseGrab", "SDL3") + : _slots[541] = nativeContext.LoadFunction("SDL_GetWindowMouseGrab", "SDL3") ) )(window); @@ -79090,9 +80369,9 @@ public static Ptr GetWindowMouseRect(WindowHandle window) => Rect* ISdl.GetWindowMouseRectRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[538] is not null and var loadedFnPtr + _slots[542] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[538] = nativeContext.LoadFunction("SDL_GetWindowMouseRect", "SDL3") + : _slots[542] = nativeContext.LoadFunction("SDL_GetWindowMouseRect", "SDL3") ) )(window); @@ -79106,9 +80385,9 @@ _slots[538] is not null and var loadedFnPtr float ISdl.GetWindowOpacity(WindowHandle window) => ( (delegate* unmanaged)( - _slots[539] is not null and var loadedFnPtr + _slots[543] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[539] = nativeContext.LoadFunction("SDL_GetWindowOpacity", "SDL3") + : _slots[543] = nativeContext.LoadFunction("SDL_GetWindowOpacity", "SDL3") ) )(window); @@ -79120,9 +80399,9 @@ _slots[539] is not null and var loadedFnPtr WindowHandle ISdl.GetWindowParent(WindowHandle window) => ( (delegate* unmanaged)( - _slots[540] is not null and var loadedFnPtr + _slots[544] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[540] = nativeContext.LoadFunction("SDL_GetWindowParent", "SDL3") + : _slots[544] = nativeContext.LoadFunction("SDL_GetWindowParent", "SDL3") ) )(window); @@ -79135,9 +80414,9 @@ public static WindowHandle GetWindowParent(WindowHandle window) => float ISdl.GetWindowPixelDensity(WindowHandle window) => ( (delegate* unmanaged)( - _slots[541] is not null and var loadedFnPtr + _slots[545] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[541] = nativeContext.LoadFunction("SDL_GetWindowPixelDensity", "SDL3") + : _slots[545] = nativeContext.LoadFunction("SDL_GetWindowPixelDensity", "SDL3") ) )(window); @@ -79150,9 +80429,9 @@ public static float GetWindowPixelDensity(WindowHandle window) => PixelFormat ISdl.GetWindowPixelFormat(WindowHandle window) => ( (delegate* unmanaged)( - _slots[542] is not null and var loadedFnPtr + _slots[546] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[542] = nativeContext.LoadFunction("SDL_GetWindowPixelFormat", "SDL3") + : _slots[546] = nativeContext.LoadFunction("SDL_GetWindowPixelFormat", "SDL3") ) )(window); @@ -79165,9 +80444,9 @@ public static PixelFormat GetWindowPixelFormat(WindowHandle window) => byte ISdl.GetWindowPosition(WindowHandle window, int* x, int* y) => ( (delegate* unmanaged)( - _slots[543] is not null and var loadedFnPtr + _slots[547] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[543] = nativeContext.LoadFunction("SDL_GetWindowPosition", "SDL3") + : _slots[547] = nativeContext.LoadFunction("SDL_GetWindowPosition", "SDL3") ) )(window, x, y); @@ -79198,9 +80477,9 @@ public static MaybeBool GetWindowPosition(WindowHandle window, Ref x, uint ISdl.GetWindowProperties(WindowHandle window) => ( (delegate* unmanaged)( - _slots[544] is not null and var loadedFnPtr + _slots[548] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[544] = nativeContext.LoadFunction("SDL_GetWindowProperties", "SDL3") + : _slots[548] = nativeContext.LoadFunction("SDL_GetWindowProperties", "SDL3") ) )(window); @@ -79225,9 +80504,9 @@ public static MaybeBool GetWindowRelativeMouseMode(WindowHandle window) => byte ISdl.GetWindowRelativeMouseModeRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[545] is not null and var loadedFnPtr + _slots[549] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[545] = nativeContext.LoadFunction( + : _slots[549] = nativeContext.LoadFunction( "SDL_GetWindowRelativeMouseMode", "SDL3" ) @@ -79244,9 +80523,9 @@ public static byte GetWindowRelativeMouseModeRaw(WindowHandle window) => WindowHandle* ISdl.GetWindows(int* count) => ( (delegate* unmanaged)( - _slots[546] is not null and var loadedFnPtr + _slots[550] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[546] = nativeContext.LoadFunction("SDL_GetWindows", "SDL3") + : _slots[550] = nativeContext.LoadFunction("SDL_GetWindows", "SDL3") ) )(count); @@ -79272,9 +80551,9 @@ Ptr ISdl.GetWindows(Ref count) byte ISdl.GetWindowSafeArea(WindowHandle window, Rect* rect) => ( (delegate* unmanaged)( - _slots[547] is not null and var loadedFnPtr + _slots[551] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[547] = nativeContext.LoadFunction("SDL_GetWindowSafeArea", "SDL3") + : _slots[551] = nativeContext.LoadFunction("SDL_GetWindowSafeArea", "SDL3") ) )(window, rect); @@ -79304,9 +80583,9 @@ public static MaybeBool GetWindowSafeArea(WindowHandle window, Ref r byte ISdl.GetWindowSize(WindowHandle window, int* w, int* h) => ( (delegate* unmanaged)( - _slots[548] is not null and var loadedFnPtr + _slots[552] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[548] = nativeContext.LoadFunction("SDL_GetWindowSize", "SDL3") + : _slots[552] = nativeContext.LoadFunction("SDL_GetWindowSize", "SDL3") ) )(window, w, h); @@ -79337,9 +80616,9 @@ public static MaybeBool GetWindowSize(WindowHandle window, Ref w, Ref byte ISdl.GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => ( (delegate* unmanaged)( - _slots[549] is not null and var loadedFnPtr + _slots[553] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[549] = nativeContext.LoadFunction("SDL_GetWindowSizeInPixels", "SDL3") + : _slots[553] = nativeContext.LoadFunction("SDL_GetWindowSizeInPixels", "SDL3") ) )(window, w, h); @@ -79384,9 +80663,9 @@ public static Ptr GetWindowSurface(WindowHandle window) => Surface* ISdl.GetWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[550] is not null and var loadedFnPtr + _slots[554] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[550] = nativeContext.LoadFunction("SDL_GetWindowSurface", "SDL3") + : _slots[554] = nativeContext.LoadFunction("SDL_GetWindowSurface", "SDL3") ) )(window); @@ -79399,9 +80678,9 @@ _slots[550] is not null and var loadedFnPtr byte ISdl.GetWindowSurfaceVSync(WindowHandle window, int* vsync) => ( (delegate* unmanaged)( - _slots[551] is not null and var loadedFnPtr + _slots[555] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[551] = nativeContext.LoadFunction("SDL_GetWindowSurfaceVSync", "SDL3") + : _slots[555] = nativeContext.LoadFunction("SDL_GetWindowSurfaceVSync", "SDL3") ) )(window, vsync); @@ -79442,9 +80721,9 @@ public static Ptr GetWindowTitle(WindowHandle window) => sbyte* ISdl.GetWindowTitleRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[552] is not null and var loadedFnPtr + _slots[556] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[552] = nativeContext.LoadFunction("SDL_GetWindowTitle", "SDL3") + : _slots[556] = nativeContext.LoadFunction("SDL_GetWindowTitle", "SDL3") ) )(window); @@ -79458,9 +80737,9 @@ _slots[552] is not null and var loadedFnPtr GLContextStateHandle ISdl.GLCreateContext(WindowHandle window) => ( (delegate* unmanaged)( - _slots[553] is not null and var loadedFnPtr + _slots[557] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[553] = nativeContext.LoadFunction("SDL_GL_CreateContext", "SDL3") + : _slots[557] = nativeContext.LoadFunction("SDL_GL_CreateContext", "SDL3") ) )(window); @@ -79487,9 +80766,9 @@ public static MaybeBool GLDestroyContext( byte ISdl.GLDestroyContextRaw([NativeTypeName("SDL_GLContext")] GLContextStateHandle context) => ( (delegate* unmanaged)( - _slots[554] is not null and var loadedFnPtr + _slots[558] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[554] = nativeContext.LoadFunction("SDL_GL_DestroyContext", "SDL3") + : _slots[558] = nativeContext.LoadFunction("SDL_GL_DestroyContext", "SDL3") ) )(context); @@ -79504,9 +80783,9 @@ public static byte GLDestroyContextRaw( byte ISdl.GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => ( (delegate* unmanaged)( - _slots[555] is not null and var loadedFnPtr + _slots[559] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[555] = nativeContext.LoadFunction("SDL_GL_ExtensionSupported", "SDL3") + : _slots[559] = nativeContext.LoadFunction("SDL_GL_ExtensionSupported", "SDL3") ) )(extension); @@ -79537,9 +80816,9 @@ public static MaybeBool GLExtensionSupported( byte ISdl.GLGetAttribute(GLAttr attr, int* value) => ( (delegate* unmanaged)( - _slots[556] is not null and var loadedFnPtr + _slots[560] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[556] = nativeContext.LoadFunction("SDL_GL_GetAttribute", "SDL3") + : _slots[560] = nativeContext.LoadFunction("SDL_GL_GetAttribute", "SDL3") ) )(attr, value); @@ -79569,9 +80848,9 @@ public static MaybeBool GLGetAttribute(GLAttr attr, Ref value) => GLContextStateHandle ISdl.GLGetCurrentContext() => ( (delegate* unmanaged)( - _slots[557] is not null and var loadedFnPtr + _slots[561] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[557] = nativeContext.LoadFunction("SDL_GL_GetCurrentContext", "SDL3") + : _slots[561] = nativeContext.LoadFunction("SDL_GL_GetCurrentContext", "SDL3") ) )(); @@ -79584,9 +80863,9 @@ _slots[557] is not null and var loadedFnPtr WindowHandle ISdl.GLGetCurrentWindow() => ( (delegate* unmanaged)( - _slots[558] is not null and var loadedFnPtr + _slots[562] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[558] = nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") + : _slots[562] = nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") ) )(); @@ -79598,9 +80877,9 @@ _slots[558] is not null and var loadedFnPtr FunctionPointer ISdl.GLGetProcAddress([NativeTypeName("const char *")] sbyte* proc) => ( (delegate* unmanaged)( - _slots[559] is not null and var loadedFnPtr + _slots[563] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[559] = nativeContext.LoadFunction("SDL_GL_GetProcAddress", "SDL3") + : _slots[563] = nativeContext.LoadFunction("SDL_GL_GetProcAddress", "SDL3") ) )(proc); @@ -79631,9 +80910,9 @@ public static FunctionPointer GLGetProcAddress( byte ISdl.GLGetSwapInterval(int* interval) => ( (delegate* unmanaged)( - _slots[560] is not null and var loadedFnPtr + _slots[564] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[560] = nativeContext.LoadFunction("SDL_GL_GetSwapInterval", "SDL3") + : _slots[564] = nativeContext.LoadFunction("SDL_GL_GetSwapInterval", "SDL3") ) )(interval); @@ -79662,9 +80941,9 @@ public static MaybeBool GLGetSwapInterval(Ref interval) => byte ISdl.GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => ( (delegate* unmanaged)( - _slots[561] is not null and var loadedFnPtr + _slots[565] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[561] = nativeContext.LoadFunction("SDL_GL_LoadLibrary", "SDL3") + : _slots[565] = nativeContext.LoadFunction("SDL_GL_LoadLibrary", "SDL3") ) )(path); @@ -79712,9 +80991,9 @@ byte ISdl.GLMakeCurrentRaw( ) => ( (delegate* unmanaged)( - _slots[562] is not null and var loadedFnPtr + _slots[566] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[562] = nativeContext.LoadFunction("SDL_GL_MakeCurrent", "SDL3") + : _slots[566] = nativeContext.LoadFunction("SDL_GL_MakeCurrent", "SDL3") ) )(window, context); @@ -79730,9 +81009,9 @@ public static byte GLMakeCurrentRaw( void ISdl.GLResetAttributes() => ( (delegate* unmanaged)( - _slots[563] is not null and var loadedFnPtr + _slots[567] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[563] = nativeContext.LoadFunction("SDL_GL_ResetAttributes", "SDL3") + : _slots[567] = nativeContext.LoadFunction("SDL_GL_ResetAttributes", "SDL3") ) )(); @@ -79755,9 +81034,9 @@ public static MaybeBool GLSetAttribute(GLAttr attr, int value) => byte ISdl.GLSetAttributeRaw(GLAttr attr, int value) => ( (delegate* unmanaged)( - _slots[564] is not null and var loadedFnPtr + _slots[568] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[564] = nativeContext.LoadFunction("SDL_GL_SetAttribute", "SDL3") + : _slots[568] = nativeContext.LoadFunction("SDL_GL_SetAttribute", "SDL3") ) )(attr, value); @@ -79782,9 +81061,9 @@ public static MaybeBool GLSetSwapInterval(int interval) => byte ISdl.GLSetSwapIntervalRaw(int interval) => ( (delegate* unmanaged)( - _slots[565] is not null and var loadedFnPtr + _slots[569] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[565] = nativeContext.LoadFunction("SDL_GL_SetSwapInterval", "SDL3") + : _slots[569] = nativeContext.LoadFunction("SDL_GL_SetSwapInterval", "SDL3") ) )(interval); @@ -79809,9 +81088,9 @@ public static MaybeBool GLSwapWindow(WindowHandle window) => byte ISdl.GLSwapWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[566] is not null and var loadedFnPtr + _slots[570] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[566] = nativeContext.LoadFunction("SDL_GL_SwapWindow", "SDL3") + : _slots[570] = nativeContext.LoadFunction("SDL_GL_SwapWindow", "SDL3") ) )(window); @@ -79824,9 +81103,9 @@ _slots[566] is not null and var loadedFnPtr void ISdl.GLUnloadLibrary() => ( (delegate* unmanaged)( - _slots[567] is not null and var loadedFnPtr + _slots[571] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[567] = nativeContext.LoadFunction("SDL_GL_UnloadLibrary", "SDL3") + : _slots[571] = nativeContext.LoadFunction("SDL_GL_UnloadLibrary", "SDL3") ) )(); @@ -79843,9 +81122,9 @@ _slots[567] is not null and var loadedFnPtr ) => ( (delegate* unmanaged)( - _slots[568] is not null and var loadedFnPtr + _slots[572] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[568] = nativeContext.LoadFunction("SDL_GlobDirectory", "SDL3") + : _slots[572] = nativeContext.LoadFunction("SDL_GlobDirectory", "SDL3") ) )(path, pattern, flags, count); @@ -79897,9 +81176,9 @@ Ref count ) => ( (delegate* unmanaged)( - _slots[569] is not null and var loadedFnPtr + _slots[573] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[569] = nativeContext.LoadFunction("SDL_GlobStorageDirectory", "SDL3") + : _slots[573] = nativeContext.LoadFunction("SDL_GlobStorageDirectory", "SDL3") ) )(storage, path, pattern, flags, count); @@ -79966,9 +81245,9 @@ public static MaybeBool GPUSupportsProperties( byte ISdl.GPUSupportsPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props) => ( (delegate* unmanaged)( - _slots[570] is not null and var loadedFnPtr + _slots[574] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[570] = nativeContext.LoadFunction("SDL_GPUSupportsProperties", "SDL3") + : _slots[574] = nativeContext.LoadFunction("SDL_GPUSupportsProperties", "SDL3") ) )(props); @@ -79985,9 +81264,9 @@ byte ISdl.GPUSupportsShaderFormats( ) => ( (delegate* unmanaged)( - _slots[571] is not null and var loadedFnPtr + _slots[575] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[571] = nativeContext.LoadFunction( + : _slots[575] = nativeContext.LoadFunction( "SDL_GPUSupportsShaderFormats", "SDL3" ) @@ -80028,9 +81307,9 @@ public static MaybeBool GPUSupportsShaderFormats( uint ISdl.GPUTextureFormatTexelBlockSize(GPUTextureFormat format) => ( (delegate* unmanaged)( - _slots[572] is not null and var loadedFnPtr + _slots[576] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[572] = nativeContext.LoadFunction( + : _slots[576] = nativeContext.LoadFunction( "SDL_GPUTextureFormatTexelBlockSize", "SDL3" ) @@ -80073,9 +81352,9 @@ byte ISdl.GPUTextureSupportsFormatRaw( ) => ( (delegate* unmanaged)( - _slots[573] is not null and var loadedFnPtr + _slots[577] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[573] = nativeContext.LoadFunction( + : _slots[577] = nativeContext.LoadFunction( "SDL_GPUTextureSupportsFormat", "SDL3" ) @@ -80119,9 +81398,9 @@ GPUSampleCount sample_count ) => ( (delegate* unmanaged)( - _slots[574] is not null and var loadedFnPtr + _slots[578] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[574] = nativeContext.LoadFunction( + : _slots[578] = nativeContext.LoadFunction( "SDL_GPUTextureSupportsSampleCount", "SDL3" ) @@ -80141,9 +81420,9 @@ GPUSampleCount sample_count void ISdl.GuidToString(Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID) => ( (delegate* unmanaged)( - _slots[575] is not null and var loadedFnPtr + _slots[579] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[575] = nativeContext.LoadFunction("SDL_GUIDToString", "SDL3") + : _slots[579] = nativeContext.LoadFunction("SDL_GUIDToString", "SDL3") ) )(guid, pszGUID, cbGUID); @@ -80180,9 +81459,9 @@ byte ISdl.HapticEffectSupported( ) => ( (delegate* unmanaged)( - _slots[576] is not null and var loadedFnPtr + _slots[580] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[576] = nativeContext.LoadFunction("SDL_HapticEffectSupported", "SDL3") + : _slots[580] = nativeContext.LoadFunction("SDL_HapticEffectSupported", "SDL3") ) )(haptic, effect); @@ -80230,9 +81509,9 @@ public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => byte ISdl.HapticRumbleSupportedRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[577] is not null and var loadedFnPtr + _slots[581] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[577] = nativeContext.LoadFunction("SDL_HapticRumbleSupported", "SDL3") + : _slots[581] = nativeContext.LoadFunction("SDL_HapticRumbleSupported", "SDL3") ) )(haptic); @@ -80255,9 +81534,9 @@ public static byte HapticRumbleSupportedRaw(HapticHandle haptic) => byte ISdl.HasAltiVecRaw() => ( (delegate* unmanaged)( - _slots[578] is not null and var loadedFnPtr + _slots[582] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[578] = nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3") + : _slots[582] = nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3") ) )(); @@ -80279,9 +81558,9 @@ _slots[578] is not null and var loadedFnPtr byte ISdl.HasArmsimdRaw() => ( (delegate* unmanaged)( - _slots[579] is not null and var loadedFnPtr + _slots[583] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[579] = nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3") + : _slots[583] = nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3") ) )(); @@ -80312,9 +81591,9 @@ _slots[579] is not null and var loadedFnPtr byte ISdl.HasAVX2Raw() => ( (delegate* unmanaged)( - _slots[581] is not null and var loadedFnPtr + _slots[585] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[581] = nativeContext.LoadFunction("SDL_HasAVX2", "SDL3") + : _slots[585] = nativeContext.LoadFunction("SDL_HasAVX2", "SDL3") ) )(); @@ -80336,9 +81615,9 @@ _slots[581] is not null and var loadedFnPtr byte ISdl.HasAVX512FRaw() => ( (delegate* unmanaged)( - _slots[582] is not null and var loadedFnPtr + _slots[586] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[582] = nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3") + : _slots[586] = nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3") ) )(); @@ -80351,9 +81630,9 @@ _slots[582] is not null and var loadedFnPtr byte ISdl.HasAVXRaw() => ( (delegate* unmanaged)( - _slots[580] is not null and var loadedFnPtr + _slots[584] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[580] = nativeContext.LoadFunction("SDL_HasAVX", "SDL3") + : _slots[584] = nativeContext.LoadFunction("SDL_HasAVX", "SDL3") ) )(); @@ -80366,9 +81645,9 @@ _slots[580] is not null and var loadedFnPtr byte ISdl.HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => ( (delegate* unmanaged)( - _slots[583] is not null and var loadedFnPtr + _slots[587] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[583] = nativeContext.LoadFunction("SDL_HasClipboardData", "SDL3") + : _slots[587] = nativeContext.LoadFunction("SDL_HasClipboardData", "SDL3") ) )(mime_type); @@ -80409,9 +81688,9 @@ MaybeBool ISdl.HasClipboardText() => byte ISdl.HasClipboardTextRaw() => ( (delegate* unmanaged)( - _slots[584] is not null and var loadedFnPtr + _slots[588] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[584] = nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3") + : _slots[588] = nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3") ) )(); @@ -80435,9 +81714,9 @@ public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => byte ISdl.HasEventRaw([NativeTypeName("Uint32")] uint type) => ( (delegate* unmanaged)( - _slots[585] is not null and var loadedFnPtr + _slots[589] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[585] = nativeContext.LoadFunction("SDL_HasEvent", "SDL3") + : _slots[589] = nativeContext.LoadFunction("SDL_HasEvent", "SDL3") ) )(type); @@ -80469,9 +81748,9 @@ byte ISdl.HasEventsRaw( ) => ( (delegate* unmanaged)( - _slots[586] is not null and var loadedFnPtr + _slots[590] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[586] = nativeContext.LoadFunction("SDL_HasEvents", "SDL3") + : _slots[590] = nativeContext.LoadFunction("SDL_HasEvents", "SDL3") ) )(minType, maxType); @@ -80496,9 +81775,9 @@ public static byte HasEventsRaw( byte ISdl.HasGamepadRaw() => ( (delegate* unmanaged)( - _slots[587] is not null and var loadedFnPtr + _slots[591] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[587] = nativeContext.LoadFunction("SDL_HasGamepad", "SDL3") + : _slots[591] = nativeContext.LoadFunction("SDL_HasGamepad", "SDL3") ) )(); @@ -80520,9 +81799,9 @@ _slots[587] is not null and var loadedFnPtr byte ISdl.HasJoystickRaw() => ( (delegate* unmanaged)( - _slots[588] is not null and var loadedFnPtr + _slots[592] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[588] = nativeContext.LoadFunction("SDL_HasJoystick", "SDL3") + : _slots[592] = nativeContext.LoadFunction("SDL_HasJoystick", "SDL3") ) )(); @@ -80544,9 +81823,9 @@ _slots[588] is not null and var loadedFnPtr byte ISdl.HasKeyboardRaw() => ( (delegate* unmanaged)( - _slots[589] is not null and var loadedFnPtr + _slots[593] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[589] = nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3") + : _slots[593] = nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3") ) )(); @@ -80568,9 +81847,9 @@ _slots[589] is not null and var loadedFnPtr byte ISdl.HasLasxRaw() => ( (delegate* unmanaged)( - _slots[590] is not null and var loadedFnPtr + _slots[594] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[590] = nativeContext.LoadFunction("SDL_HasLASX", "SDL3") + : _slots[594] = nativeContext.LoadFunction("SDL_HasLASX", "SDL3") ) )(); @@ -80592,9 +81871,9 @@ _slots[590] is not null and var loadedFnPtr byte ISdl.HasLSXRaw() => ( (delegate* unmanaged)( - _slots[591] is not null and var loadedFnPtr + _slots[595] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[591] = nativeContext.LoadFunction("SDL_HasLSX", "SDL3") + : _slots[595] = nativeContext.LoadFunction("SDL_HasLSX", "SDL3") ) )(); @@ -80616,9 +81895,9 @@ _slots[591] is not null and var loadedFnPtr byte ISdl.HasMMXRaw() => ( (delegate* unmanaged)( - _slots[592] is not null and var loadedFnPtr + _slots[596] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[592] = nativeContext.LoadFunction("SDL_HasMMX", "SDL3") + : _slots[596] = nativeContext.LoadFunction("SDL_HasMMX", "SDL3") ) )(); @@ -80640,9 +81919,9 @@ _slots[592] is not null and var loadedFnPtr byte ISdl.HasMouseRaw() => ( (delegate* unmanaged)( - _slots[593] is not null and var loadedFnPtr + _slots[597] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[593] = nativeContext.LoadFunction("SDL_HasMouse", "SDL3") + : _slots[597] = nativeContext.LoadFunction("SDL_HasMouse", "SDL3") ) )(); @@ -80664,9 +81943,9 @@ _slots[593] is not null and var loadedFnPtr byte ISdl.HasNeonRaw() => ( (delegate* unmanaged)( - _slots[594] is not null and var loadedFnPtr + _slots[598] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[594] = nativeContext.LoadFunction("SDL_HasNEON", "SDL3") + : _slots[598] = nativeContext.LoadFunction("SDL_HasNEON", "SDL3") ) )(); @@ -80689,9 +81968,9 @@ MaybeBool ISdl.HasPrimarySelectionText() => byte ISdl.HasPrimarySelectionTextRaw() => ( (delegate* unmanaged)( - _slots[595] is not null and var loadedFnPtr + _slots[599] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[595] = nativeContext.LoadFunction( + : _slots[599] = nativeContext.LoadFunction( "SDL_HasPrimarySelectionText", "SDL3" ) @@ -80710,9 +81989,9 @@ byte ISdl.HasProperty( ) => ( (delegate* unmanaged)( - _slots[596] is not null and var loadedFnPtr + _slots[600] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[596] = nativeContext.LoadFunction("SDL_HasProperty", "SDL3") + : _slots[600] = nativeContext.LoadFunction("SDL_HasProperty", "SDL3") ) )(props, name); @@ -80752,9 +82031,9 @@ byte ISdl.HasRectIntersection( ) => ( (delegate* unmanaged)( - _slots[597] is not null and var loadedFnPtr + _slots[601] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[597] = nativeContext.LoadFunction("SDL_HasRectIntersection", "SDL3") + : _slots[601] = nativeContext.LoadFunction("SDL_HasRectIntersection", "SDL3") ) )(A, B); @@ -80795,9 +82074,9 @@ byte ISdl.HasRectIntersectionFloat( ) => ( (delegate* unmanaged)( - _slots[598] is not null and var loadedFnPtr + _slots[602] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[598] = nativeContext.LoadFunction( + : _slots[602] = nativeContext.LoadFunction( "SDL_HasRectIntersectionFloat", "SDL3" ) @@ -80849,9 +82128,9 @@ public static MaybeBool HasScreenKeyboardSupport() => byte ISdl.HasScreenKeyboardSupportRaw() => ( (delegate* unmanaged)( - _slots[599] is not null and var loadedFnPtr + _slots[603] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[599] = nativeContext.LoadFunction( + : _slots[603] = nativeContext.LoadFunction( "SDL_HasScreenKeyboardSupport", "SDL3" ) @@ -80885,9 +82164,9 @@ _slots[599] is not null and var loadedFnPtr byte ISdl.HasSSE2Raw() => ( (delegate* unmanaged)( - _slots[601] is not null and var loadedFnPtr + _slots[605] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[601] = nativeContext.LoadFunction("SDL_HasSSE2", "SDL3") + : _slots[605] = nativeContext.LoadFunction("SDL_HasSSE2", "SDL3") ) )(); @@ -80909,9 +82188,9 @@ _slots[601] is not null and var loadedFnPtr byte ISdl.HasSSE3Raw() => ( (delegate* unmanaged)( - _slots[602] is not null and var loadedFnPtr + _slots[606] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[602] = nativeContext.LoadFunction("SDL_HasSSE3", "SDL3") + : _slots[606] = nativeContext.LoadFunction("SDL_HasSSE3", "SDL3") ) )(); @@ -80933,9 +82212,9 @@ _slots[602] is not null and var loadedFnPtr byte ISdl.HasSSE41Raw() => ( (delegate* unmanaged)( - _slots[603] is not null and var loadedFnPtr + _slots[607] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[603] = nativeContext.LoadFunction("SDL_HasSSE41", "SDL3") + : _slots[607] = nativeContext.LoadFunction("SDL_HasSSE41", "SDL3") ) )(); @@ -80957,9 +82236,9 @@ _slots[603] is not null and var loadedFnPtr byte ISdl.HasSSE42Raw() => ( (delegate* unmanaged)( - _slots[604] is not null and var loadedFnPtr + _slots[608] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[604] = nativeContext.LoadFunction("SDL_HasSSE42", "SDL3") + : _slots[608] = nativeContext.LoadFunction("SDL_HasSSE42", "SDL3") ) )(); @@ -80972,9 +82251,9 @@ _slots[604] is not null and var loadedFnPtr byte ISdl.HasSSERaw() => ( (delegate* unmanaged)( - _slots[600] is not null and var loadedFnPtr + _slots[604] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[600] = nativeContext.LoadFunction("SDL_HasSSE", "SDL3") + : _slots[604] = nativeContext.LoadFunction("SDL_HasSSE", "SDL3") ) )(); @@ -80987,9 +82266,9 @@ _slots[600] is not null and var loadedFnPtr void ISdl.HidBleScan([NativeTypeName("bool")] byte active) => ( (delegate* unmanaged)( - _slots[605] is not null and var loadedFnPtr + _slots[609] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[605] = nativeContext.LoadFunction("SDL_hid_ble_scan", "SDL3") + : _slots[609] = nativeContext.LoadFunction("SDL_hid_ble_scan", "SDL3") ) )(active); @@ -81012,9 +82291,9 @@ public static void HidBleScan([NativeTypeName("bool")] MaybeBool active) = int ISdl.HidClose(HidDeviceHandle dev) => ( (delegate* unmanaged)( - _slots[606] is not null and var loadedFnPtr + _slots[610] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[606] = nativeContext.LoadFunction("SDL_hid_close", "SDL3") + : _slots[610] = nativeContext.LoadFunction("SDL_hid_close", "SDL3") ) )(dev); @@ -81026,9 +82305,9 @@ _slots[606] is not null and var loadedFnPtr uint ISdl.HidDeviceChangeCount() => ( (delegate* unmanaged)( - _slots[607] is not null and var loadedFnPtr + _slots[611] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[607] = nativeContext.LoadFunction( + : _slots[611] = nativeContext.LoadFunction( "SDL_hid_device_change_count", "SDL3" ) @@ -81061,9 +82340,9 @@ public static Ptr HidEnumerate( ) => ( (delegate* unmanaged)( - _slots[608] is not null and var loadedFnPtr + _slots[612] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[608] = nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") + : _slots[612] = nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") ) )(vendor_id, product_id); @@ -81078,9 +82357,9 @@ _slots[608] is not null and var loadedFnPtr int ISdl.HidExit() => ( (delegate* unmanaged)( - _slots[609] is not null and var loadedFnPtr + _slots[613] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[609] = nativeContext.LoadFunction("SDL_hid_exit", "SDL3") + : _slots[613] = nativeContext.LoadFunction("SDL_hid_exit", "SDL3") ) )(); @@ -81092,9 +82371,9 @@ _slots[609] is not null and var loadedFnPtr void ISdl.HidFreeEnumeration(HidDeviceInfo* devs) => ( (delegate* unmanaged)( - _slots[610] is not null and var loadedFnPtr + _slots[614] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[610] = nativeContext.LoadFunction("SDL_hid_free_enumeration", "SDL3") + : _slots[614] = nativeContext.LoadFunction("SDL_hid_free_enumeration", "SDL3") ) )(devs); @@ -81132,9 +82411,9 @@ public static Ptr HidGetDeviceInfo(HidDeviceHandle dev) => HidDeviceInfo* ISdl.HidGetDeviceInfoRaw(HidDeviceHandle dev) => ( (delegate* unmanaged)( - _slots[611] is not null and var loadedFnPtr + _slots[615] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[611] = nativeContext.LoadFunction("SDL_hid_get_device_info", "SDL3") + : _slots[615] = nativeContext.LoadFunction("SDL_hid_get_device_info", "SDL3") ) )(dev); @@ -81151,9 +82430,9 @@ int ISdl.HidGetFeatureReport( ) => ( (delegate* unmanaged)( - _slots[612] is not null and var loadedFnPtr + _slots[616] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[612] = nativeContext.LoadFunction("SDL_hid_get_feature_report", "SDL3") + : _slots[616] = nativeContext.LoadFunction("SDL_hid_get_feature_report", "SDL3") ) )(dev, data, length); @@ -81196,9 +82475,9 @@ int ISdl.HidGetIndexedString( ) => ( (delegate* unmanaged)( - _slots[613] is not null and var loadedFnPtr + _slots[617] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[613] = nativeContext.LoadFunction("SDL_hid_get_indexed_string", "SDL3") + : _slots[617] = nativeContext.LoadFunction("SDL_hid_get_indexed_string", "SDL3") ) )(dev, string_index, @string, maxlen); @@ -81243,9 +82522,9 @@ int ISdl.HidGetInputReport( ) => ( (delegate* unmanaged)( - _slots[614] is not null and var loadedFnPtr + _slots[618] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[614] = nativeContext.LoadFunction("SDL_hid_get_input_report", "SDL3") + : _slots[618] = nativeContext.LoadFunction("SDL_hid_get_input_report", "SDL3") ) )(dev, data, length); @@ -81287,9 +82566,9 @@ int ISdl.HidGetManufacturerString( ) => ( (delegate* unmanaged)( - _slots[615] is not null and var loadedFnPtr + _slots[619] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[615] = nativeContext.LoadFunction( + : _slots[619] = nativeContext.LoadFunction( "SDL_hid_get_manufacturer_string", "SDL3" ) @@ -81334,9 +82613,9 @@ int ISdl.HidGetProductString( ) => ( (delegate* unmanaged)( - _slots[616] is not null and var loadedFnPtr + _slots[620] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[616] = nativeContext.LoadFunction("SDL_hid_get_product_string", "SDL3") + : _slots[620] = nativeContext.LoadFunction("SDL_hid_get_product_string", "SDL3") ) )(dev, @string, maxlen); @@ -81378,9 +82657,9 @@ int ISdl.HidGetReportDescriptor( ) => ( (delegate* unmanaged)( - _slots[617] is not null and var loadedFnPtr + _slots[621] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[617] = nativeContext.LoadFunction( + : _slots[621] = nativeContext.LoadFunction( "SDL_hid_get_report_descriptor", "SDL3" ) @@ -81425,9 +82704,9 @@ int ISdl.HidGetSerialNumberString( ) => ( (delegate* unmanaged)( - _slots[618] is not null and var loadedFnPtr + _slots[622] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[618] = nativeContext.LoadFunction( + : _slots[622] = nativeContext.LoadFunction( "SDL_hid_get_serial_number_string", "SDL3" ) @@ -81468,9 +82747,9 @@ public static int HidGetSerialNumberString( int ISdl.HidInit() => ( (delegate* unmanaged)( - _slots[619] is not null and var loadedFnPtr + _slots[623] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[619] = nativeContext.LoadFunction("SDL_hid_init", "SDL3") + : _slots[623] = nativeContext.LoadFunction("SDL_hid_init", "SDL3") ) )(); @@ -81486,9 +82765,9 @@ HidDeviceHandle ISdl.HidOpen( ) => ( (delegate* unmanaged)( - _slots[620] is not null and var loadedFnPtr + _slots[624] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[620] = nativeContext.LoadFunction("SDL_hid_open", "SDL3") + : _slots[624] = nativeContext.LoadFunction("SDL_hid_open", "SDL3") ) )(vendor_id, product_id, serial_number); @@ -81527,9 +82806,9 @@ public static HidDeviceHandle HidOpen( HidDeviceHandle ISdl.HidOpenPath([NativeTypeName("const char *")] sbyte* path) => ( (delegate* unmanaged)( - _slots[621] is not null and var loadedFnPtr + _slots[625] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[621] = nativeContext.LoadFunction("SDL_hid_open_path", "SDL3") + : _slots[625] = nativeContext.LoadFunction("SDL_hid_open_path", "SDL3") ) )(path); @@ -81561,9 +82840,9 @@ int ISdl.HidRead( ) => ( (delegate* unmanaged)( - _slots[622] is not null and var loadedFnPtr + _slots[626] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[622] = nativeContext.LoadFunction("SDL_hid_read", "SDL3") + : _slots[626] = nativeContext.LoadFunction("SDL_hid_read", "SDL3") ) )(dev, data, length); @@ -81606,9 +82885,9 @@ int milliseconds ) => ( (delegate* unmanaged)( - _slots[623] is not null and var loadedFnPtr + _slots[627] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[623] = nativeContext.LoadFunction("SDL_hid_read_timeout", "SDL3") + : _slots[627] = nativeContext.LoadFunction("SDL_hid_read_timeout", "SDL3") ) )(dev, data, length, milliseconds); @@ -81653,9 +82932,9 @@ int ISdl.HidSendFeatureReport( ) => ( (delegate* unmanaged)( - _slots[624] is not null and var loadedFnPtr + _slots[628] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[624] = nativeContext.LoadFunction( + : _slots[628] = nativeContext.LoadFunction( "SDL_hid_send_feature_report", "SDL3" ) @@ -81696,9 +82975,9 @@ public static int HidSendFeatureReport( int ISdl.HidSetNonblocking(HidDeviceHandle dev, int nonblock) => ( (delegate* unmanaged)( - _slots[625] is not null and var loadedFnPtr + _slots[629] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[625] = nativeContext.LoadFunction("SDL_hid_set_nonblocking", "SDL3") + : _slots[629] = nativeContext.LoadFunction("SDL_hid_set_nonblocking", "SDL3") ) )(dev, nonblock); @@ -81715,9 +82994,9 @@ int ISdl.HidWrite( ) => ( (delegate* unmanaged)( - _slots[626] is not null and var loadedFnPtr + _slots[630] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[626] = nativeContext.LoadFunction("SDL_hid_write", "SDL3") + : _slots[630] = nativeContext.LoadFunction("SDL_hid_write", "SDL3") ) )(dev, data, length); @@ -81764,9 +83043,9 @@ public static int HidWrite( byte ISdl.HideCursorRaw() => ( (delegate* unmanaged)( - _slots[627] is not null and var loadedFnPtr + _slots[631] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[627] = nativeContext.LoadFunction("SDL_HideCursor", "SDL3") + : _slots[631] = nativeContext.LoadFunction("SDL_HideCursor", "SDL3") ) )(); @@ -81789,9 +83068,9 @@ MaybeBool ISdl.HideWindow(WindowHandle window) => byte ISdl.HideWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[628] is not null and var loadedFnPtr + _slots[632] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[628] = nativeContext.LoadFunction("SDL_HideWindow", "SDL3") + : _slots[632] = nativeContext.LoadFunction("SDL_HideWindow", "SDL3") ) )(window); @@ -81810,9 +83089,9 @@ nuint ISdl.Iconv( ) => ( (delegate* unmanaged)( - _slots[629] is not null and var loadedFnPtr + _slots[633] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[629] = nativeContext.LoadFunction("SDL_iconv", "SDL3") + : _slots[633] = nativeContext.LoadFunction("SDL_iconv", "SDL3") ) )(cd, inbuf, inbytesleft, outbuf, outbytesleft); @@ -81868,9 +83147,9 @@ public static nuint Iconv( int ISdl.IconvClose([NativeTypeName("SDL_iconv_t")] IconvDataTHandle cd) => ( (delegate* unmanaged)( - _slots[630] is not null and var loadedFnPtr + _slots[634] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[630] = nativeContext.LoadFunction("SDL_iconv_close", "SDL3") + : _slots[634] = nativeContext.LoadFunction("SDL_iconv_close", "SDL3") ) )(cd); @@ -81886,9 +83165,9 @@ IconvDataTHandle ISdl.IconvOpen( ) => ( (delegate* unmanaged)( - _slots[631] is not null and var loadedFnPtr + _slots[635] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[631] = nativeContext.LoadFunction("SDL_iconv_open", "SDL3") + : _slots[635] = nativeContext.LoadFunction("SDL_iconv_open", "SDL3") ) )(tocode, fromcode); @@ -81931,9 +83210,9 @@ public static IconvDataTHandle IconvOpen( ) => ( (delegate* unmanaged)( - _slots[632] is not null and var loadedFnPtr + _slots[636] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[632] = nativeContext.LoadFunction("SDL_iconv_string", "SDL3") + : _slots[636] = nativeContext.LoadFunction("SDL_iconv_string", "SDL3") ) )(tocode, fromcode, inbuf, inbytesleft); @@ -82001,9 +83280,9 @@ public static MaybeBool InitHapticRumble(HapticHandle haptic) => byte ISdl.InitHapticRumbleRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[634] is not null and var loadedFnPtr + _slots[638] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[634] = nativeContext.LoadFunction("SDL_InitHapticRumble", "SDL3") + : _slots[638] = nativeContext.LoadFunction("SDL_InitHapticRumble", "SDL3") ) )(haptic); @@ -82017,9 +83296,9 @@ public static byte InitHapticRumbleRaw(HapticHandle haptic) => byte ISdl.InitRaw([NativeTypeName("SDL_InitFlags")] uint flags) => ( (delegate* unmanaged)( - _slots[633] is not null and var loadedFnPtr + _slots[637] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[633] = nativeContext.LoadFunction("SDL_Init", "SDL3") + : _slots[637] = nativeContext.LoadFunction("SDL_Init", "SDL3") ) )(flags); @@ -82044,9 +83323,9 @@ public static MaybeBool InitSubSystem([NativeTypeName("SDL_InitFlags")] ui byte ISdl.InitSubSystemRaw([NativeTypeName("SDL_InitFlags")] uint flags) => ( (delegate* unmanaged)( - _slots[635] is not null and var loadedFnPtr + _slots[639] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[635] = nativeContext.LoadFunction("SDL_InitSubSystem", "SDL3") + : _slots[639] = nativeContext.LoadFunction("SDL_InitSubSystem", "SDL3") ) )(flags); @@ -82063,9 +83342,9 @@ void ISdl.InsertGPUDebugLabel( ) => ( (delegate* unmanaged)( - _slots[636] is not null and var loadedFnPtr + _slots[640] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[636] = nativeContext.LoadFunction("SDL_InsertGPUDebugLabel", "SDL3") + : _slots[640] = nativeContext.LoadFunction("SDL_InsertGPUDebugLabel", "SDL3") ) )(command_buffer, text); @@ -82103,9 +83382,9 @@ IOStreamHandle ISdl.IOFromConstMem( ) => ( (delegate* unmanaged)( - _slots[637] is not null and var loadedFnPtr + _slots[641] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[637] = nativeContext.LoadFunction("SDL_IOFromConstMem", "SDL3") + : _slots[641] = nativeContext.LoadFunction("SDL_IOFromConstMem", "SDL3") ) )(mem, size); @@ -82140,9 +83419,9 @@ public static IOStreamHandle IOFromConstMem( IOStreamHandle ISdl.IOFromDynamicMem() => ( (delegate* unmanaged)( - _slots[638] is not null and var loadedFnPtr + _slots[642] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[638] = nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") + : _slots[642] = nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") ) )(); @@ -82157,9 +83436,9 @@ IOStreamHandle ISdl.IOFromFile( ) => ( (delegate* unmanaged)( - _slots[639] is not null and var loadedFnPtr + _slots[643] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[639] = nativeContext.LoadFunction("SDL_IOFromFile", "SDL3") + : _slots[643] = nativeContext.LoadFunction("SDL_IOFromFile", "SDL3") ) )(file, mode); @@ -82195,9 +83474,9 @@ public static IOStreamHandle IOFromFile( IOStreamHandle ISdl.IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size) => ( (delegate* unmanaged)( - _slots[640] is not null and var loadedFnPtr + _slots[644] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[640] = nativeContext.LoadFunction("SDL_IOFromMem", "SDL3") + : _slots[644] = nativeContext.LoadFunction("SDL_IOFromMem", "SDL3") ) )(mem, size); @@ -82229,9 +83508,9 @@ nuint ISdl.IOvprintf( ) => ( (delegate* unmanaged)( - _slots[641] is not null and var loadedFnPtr + _slots[645] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[641] = nativeContext.LoadFunction("SDL_IOvprintf", "SDL3") + : _slots[645] = nativeContext.LoadFunction("SDL_IOvprintf", "SDL3") ) )(context, fmt, ap); @@ -82272,9 +83551,9 @@ public static nuint IOvprintf( int ISdl.Isalnum(int x) => ( (delegate* unmanaged)( - _slots[642] is not null and var loadedFnPtr + _slots[646] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[642] = nativeContext.LoadFunction("SDL_isalnum", "SDL3") + : _slots[646] = nativeContext.LoadFunction("SDL_isalnum", "SDL3") ) )(x); @@ -82286,9 +83565,9 @@ _slots[642] is not null and var loadedFnPtr int ISdl.Isalpha(int x) => ( (delegate* unmanaged)( - _slots[643] is not null and var loadedFnPtr + _slots[647] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[643] = nativeContext.LoadFunction("SDL_isalpha", "SDL3") + : _slots[647] = nativeContext.LoadFunction("SDL_isalpha", "SDL3") ) )(x); @@ -82296,13 +83575,69 @@ _slots[643] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static int Isalpha(int x) => DllImport.Isalpha(x); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.IsAudioDevicePhysical([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + (MaybeBool)(byte)((ISdl)this).IsAudioDevicePhysicalRaw(devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsAudioDevicePhysical( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => DllImport.IsAudioDevicePhysical(devid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.IsAudioDevicePhysicalRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + ( + (delegate* unmanaged)( + _slots[648] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[648] = nativeContext.LoadFunction("SDL_IsAudioDevicePhysical", "SDL3") + ) + )(devid); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePhysical")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IsAudioDevicePhysicalRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.IsAudioDevicePhysicalRaw(devid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.IsAudioDevicePlayback([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + (MaybeBool)(byte)((ISdl)this).IsAudioDevicePlaybackRaw(devid); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsAudioDevicePlayback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => DllImport.IsAudioDevicePlayback(devid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.IsAudioDevicePlaybackRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + ( + (delegate* unmanaged)( + _slots[649] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[649] = nativeContext.LoadFunction("SDL_IsAudioDevicePlayback", "SDL3") + ) + )(devid); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsAudioDevicePlayback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IsAudioDevicePlaybackRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.IsAudioDevicePlaybackRaw(devid); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.Isblank(int x) => ( (delegate* unmanaged)( - _slots[644] is not null and var loadedFnPtr + _slots[650] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[644] = nativeContext.LoadFunction("SDL_isblank", "SDL3") + : _slots[650] = nativeContext.LoadFunction("SDL_isblank", "SDL3") ) )(x); @@ -82314,9 +83649,9 @@ _slots[644] is not null and var loadedFnPtr int ISdl.Iscntrl(int x) => ( (delegate* unmanaged)( - _slots[645] is not null and var loadedFnPtr + _slots[651] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[645] = nativeContext.LoadFunction("SDL_iscntrl", "SDL3") + : _slots[651] = nativeContext.LoadFunction("SDL_iscntrl", "SDL3") ) )(x); @@ -82328,9 +83663,9 @@ _slots[645] is not null and var loadedFnPtr int ISdl.Isdigit(int x) => ( (delegate* unmanaged)( - _slots[646] is not null and var loadedFnPtr + _slots[652] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[646] = nativeContext.LoadFunction("SDL_isdigit", "SDL3") + : _slots[652] = nativeContext.LoadFunction("SDL_isdigit", "SDL3") ) )(x); @@ -82353,9 +83688,9 @@ public static MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint byte ISdl.IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[647] is not null and var loadedFnPtr + _slots[653] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[647] = nativeContext.LoadFunction("SDL_IsGamepad", "SDL3") + : _slots[653] = nativeContext.LoadFunction("SDL_IsGamepad", "SDL3") ) )(instance_id); @@ -82369,9 +83704,9 @@ public static byte IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance int ISdl.Isgraph(int x) => ( (delegate* unmanaged)( - _slots[648] is not null and var loadedFnPtr + _slots[654] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[648] = nativeContext.LoadFunction("SDL_isgraph", "SDL3") + : _slots[654] = nativeContext.LoadFunction("SDL_isgraph", "SDL3") ) )(x); @@ -82383,9 +83718,9 @@ _slots[648] is not null and var loadedFnPtr int ISdl.Isinf(double x) => ( (delegate* unmanaged)( - _slots[649] is not null and var loadedFnPtr + _slots[655] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[649] = nativeContext.LoadFunction("SDL_isinf", "SDL3") + : _slots[655] = nativeContext.LoadFunction("SDL_isinf", "SDL3") ) )(x); @@ -82397,9 +83732,9 @@ _slots[649] is not null and var loadedFnPtr int ISdl.Isinff(float x) => ( (delegate* unmanaged)( - _slots[650] is not null and var loadedFnPtr + _slots[656] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[650] = nativeContext.LoadFunction("SDL_isinff", "SDL3") + : _slots[656] = nativeContext.LoadFunction("SDL_isinff", "SDL3") ) )(x); @@ -82422,9 +83757,9 @@ public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => byte ISdl.IsJoystickHapticRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[651] is not null and var loadedFnPtr + _slots[657] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[651] = nativeContext.LoadFunction("SDL_IsJoystickHaptic", "SDL3") + : _slots[657] = nativeContext.LoadFunction("SDL_IsJoystickHaptic", "SDL3") ) )(joystick); @@ -82450,9 +83785,9 @@ public static MaybeBool IsJoystickVirtual( byte ISdl.IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[652] is not null and var loadedFnPtr + _slots[658] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[652] = nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") + : _slots[658] = nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") ) )(instance_id); @@ -82466,9 +83801,9 @@ public static byte IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint int ISdl.Islower(int x) => ( (delegate* unmanaged)( - _slots[653] is not null and var loadedFnPtr + _slots[659] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[653] = nativeContext.LoadFunction("SDL_islower", "SDL3") + : _slots[659] = nativeContext.LoadFunction("SDL_islower", "SDL3") ) )(x); @@ -82476,6 +83811,30 @@ _slots[653] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static int Islower(int x) => DllImport.Islower(x); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.IsMainThread() => (MaybeBool)(byte)((ISdl)this).IsMainThreadRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsMainThread() => DllImport.IsMainThread(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.IsMainThreadRaw() => + ( + (delegate* unmanaged)( + _slots[660] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[660] = nativeContext.LoadFunction("SDL_IsMainThread", "SDL3") + ) + )(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMainThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IsMainThreadRaw() => DllImport.IsMainThreadRaw(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] MaybeBool ISdl.IsMouseHaptic() => (MaybeBool)(byte)((ISdl)this).IsMouseHapticRaw(); @@ -82489,9 +83848,9 @@ _slots[653] is not null and var loadedFnPtr byte ISdl.IsMouseHapticRaw() => ( (delegate* unmanaged)( - _slots[654] is not null and var loadedFnPtr + _slots[661] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[654] = nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3") + : _slots[661] = nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3") ) )(); @@ -82504,9 +83863,9 @@ _slots[654] is not null and var loadedFnPtr int ISdl.Isnan(double x) => ( (delegate* unmanaged)( - _slots[655] is not null and var loadedFnPtr + _slots[662] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[655] = nativeContext.LoadFunction("SDL_isnan", "SDL3") + : _slots[662] = nativeContext.LoadFunction("SDL_isnan", "SDL3") ) )(x); @@ -82518,9 +83877,9 @@ _slots[655] is not null and var loadedFnPtr int ISdl.Isnanf(float x) => ( (delegate* unmanaged)( - _slots[656] is not null and var loadedFnPtr + _slots[663] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[656] = nativeContext.LoadFunction("SDL_isnanf", "SDL3") + : _slots[663] = nativeContext.LoadFunction("SDL_isnanf", "SDL3") ) )(x); @@ -82532,9 +83891,9 @@ _slots[656] is not null and var loadedFnPtr int ISdl.Isprint(int x) => ( (delegate* unmanaged)( - _slots[657] is not null and var loadedFnPtr + _slots[664] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[657] = nativeContext.LoadFunction("SDL_isprint", "SDL3") + : _slots[664] = nativeContext.LoadFunction("SDL_isprint", "SDL3") ) )(x); @@ -82546,9 +83905,9 @@ _slots[657] is not null and var loadedFnPtr int ISdl.Ispunct(int x) => ( (delegate* unmanaged)( - _slots[658] is not null and var loadedFnPtr + _slots[665] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[658] = nativeContext.LoadFunction("SDL_ispunct", "SDL3") + : _slots[665] = nativeContext.LoadFunction("SDL_ispunct", "SDL3") ) )(x); @@ -82560,9 +83919,9 @@ _slots[658] is not null and var loadedFnPtr int ISdl.Isspace(int x) => ( (delegate* unmanaged)( - _slots[659] is not null and var loadedFnPtr + _slots[666] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[659] = nativeContext.LoadFunction("SDL_isspace", "SDL3") + : _slots[666] = nativeContext.LoadFunction("SDL_isspace", "SDL3") ) )(x); @@ -82583,9 +83942,9 @@ _slots[659] is not null and var loadedFnPtr byte ISdl.IsTabletRaw() => ( (delegate* unmanaged)( - _slots[660] is not null and var loadedFnPtr + _slots[667] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[660] = nativeContext.LoadFunction("SDL_IsTablet", "SDL3") + : _slots[667] = nativeContext.LoadFunction("SDL_IsTablet", "SDL3") ) )(); @@ -82607,9 +83966,9 @@ _slots[660] is not null and var loadedFnPtr byte ISdl.IsTVRaw() => ( (delegate* unmanaged)( - _slots[661] is not null and var loadedFnPtr + _slots[668] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[661] = nativeContext.LoadFunction("SDL_IsTV", "SDL3") + : _slots[668] = nativeContext.LoadFunction("SDL_IsTV", "SDL3") ) )(); @@ -82622,9 +83981,9 @@ _slots[661] is not null and var loadedFnPtr int ISdl.Isupper(int x) => ( (delegate* unmanaged)( - _slots[662] is not null and var loadedFnPtr + _slots[669] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[662] = nativeContext.LoadFunction("SDL_isupper", "SDL3") + : _slots[669] = nativeContext.LoadFunction("SDL_isupper", "SDL3") ) )(x); @@ -82636,9 +83995,9 @@ _slots[662] is not null and var loadedFnPtr int ISdl.Isxdigit(int x) => ( (delegate* unmanaged)( - _slots[663] is not null and var loadedFnPtr + _slots[670] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[663] = nativeContext.LoadFunction("SDL_isxdigit", "SDL3") + : _slots[670] = nativeContext.LoadFunction("SDL_isxdigit", "SDL3") ) )(x); @@ -82650,9 +84009,9 @@ _slots[663] is not null and var loadedFnPtr sbyte* ISdl.Itoa(int value, [NativeTypeName("char *")] sbyte* str, int radix) => ( (delegate* unmanaged)( - _slots[664] is not null and var loadedFnPtr + _slots[671] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[664] = nativeContext.LoadFunction("SDL_itoa", "SDL3") + : _slots[671] = nativeContext.LoadFunction("SDL_itoa", "SDL3") ) )(value, str, radix); @@ -82696,9 +84055,9 @@ public static MaybeBool JoystickConnected(JoystickHandle joystick) => byte ISdl.JoystickConnectedRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[665] is not null and var loadedFnPtr + _slots[672] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[665] = nativeContext.LoadFunction("SDL_JoystickConnected", "SDL3") + : _slots[672] = nativeContext.LoadFunction("SDL_JoystickConnected", "SDL3") ) )(joystick); @@ -82722,9 +84081,9 @@ MaybeBool ISdl.JoystickEventsEnabled() => byte ISdl.JoystickEventsEnabledRaw() => ( (delegate* unmanaged)( - _slots[666] is not null and var loadedFnPtr + _slots[673] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[666] = nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") + : _slots[673] = nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") ) )(); @@ -82737,9 +84096,9 @@ _slots[666] is not null and var loadedFnPtr byte ISdl.KillProcess(ProcessHandle process, [NativeTypeName("bool")] byte force) => ( (delegate* unmanaged)( - _slots[667] is not null and var loadedFnPtr + _slots[674] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[667] = nativeContext.LoadFunction("SDL_KillProcess", "SDL3") + : _slots[674] = nativeContext.LoadFunction("SDL_KillProcess", "SDL3") ) )(process, force); @@ -82772,9 +84131,9 @@ int radix ) => ( (delegate* unmanaged)( - _slots[668] is not null and var loadedFnPtr + _slots[675] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[668] = nativeContext.LoadFunction("SDL_lltoa", "SDL3") + : _slots[675] = nativeContext.LoadFunction("SDL_lltoa", "SDL3") ) )(value, str, radix); @@ -82814,9 +84173,9 @@ int radix Surface* ISdl.LoadBMP([NativeTypeName("const char *")] sbyte* file) => ( (delegate* unmanaged)( - _slots[669] is not null and var loadedFnPtr + _slots[676] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[669] = nativeContext.LoadFunction("SDL_LoadBMP", "SDL3") + : _slots[676] = nativeContext.LoadFunction("SDL_LoadBMP", "SDL3") ) )(file); @@ -82844,9 +84203,9 @@ public static Ptr LoadBMP([NativeTypeName("const char *")] Ref f Surface* ISdl.LoadBMPIO(IOStreamHandle src, [NativeTypeName("bool")] byte closeio) => ( (delegate* unmanaged)( - _slots[670] is not null and var loadedFnPtr + _slots[677] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[670] = nativeContext.LoadFunction("SDL_LoadBMP_IO", "SDL3") + : _slots[677] = nativeContext.LoadFunction("SDL_LoadBMP_IO", "SDL3") ) )(src, closeio); @@ -82876,9 +84235,9 @@ public static Ptr LoadBMPIO( ) => ( (delegate* unmanaged)( - _slots[671] is not null and var loadedFnPtr + _slots[678] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[671] = nativeContext.LoadFunction("SDL_LoadFile", "SDL3") + : _slots[678] = nativeContext.LoadFunction("SDL_LoadFile", "SDL3") ) )(file, datasize); @@ -82918,9 +84277,9 @@ public static Ptr LoadFile( ) => ( (delegate* unmanaged)( - _slots[672] is not null and var loadedFnPtr + _slots[679] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[672] = nativeContext.LoadFunction("SDL_LoadFile_IO", "SDL3") + : _slots[679] = nativeContext.LoadFunction("SDL_LoadFile_IO", "SDL3") ) )(src, datasize, closeio); @@ -82961,9 +84320,9 @@ FunctionPointer ISdl.LoadFunction( ) => ( (delegate* unmanaged)( - _slots[673] is not null and var loadedFnPtr + _slots[680] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[673] = nativeContext.LoadFunction("SDL_LoadFunction", "SDL3") + : _slots[680] = nativeContext.LoadFunction("SDL_LoadFunction", "SDL3") ) )(handle, name); @@ -83000,9 +84359,9 @@ public static FunctionPointer LoadFunction( SharedObjectHandle ISdl.LoadObject([NativeTypeName("const char *")] sbyte* sofile) => ( (delegate* unmanaged)( - _slots[674] is not null and var loadedFnPtr + _slots[681] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[674] = nativeContext.LoadFunction("SDL_LoadObject", "SDL3") + : _slots[681] = nativeContext.LoadFunction("SDL_LoadObject", "SDL3") ) )(sofile); @@ -83036,9 +84395,9 @@ byte ISdl.LoadWAV( ) => ( (delegate* unmanaged)( - _slots[675] is not null and var loadedFnPtr + _slots[682] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[675] = nativeContext.LoadFunction("SDL_LoadWAV", "SDL3") + : _slots[682] = nativeContext.LoadFunction("SDL_LoadWAV", "SDL3") ) )(path, spec, audio_buf, audio_len); @@ -83092,9 +84451,9 @@ byte ISdl.LoadWAVIO( ) => ( (delegate* unmanaged)( - _slots[676] is not null and var loadedFnPtr + _slots[683] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[676] = nativeContext.LoadFunction("SDL_LoadWAV_IO", "SDL3") + : _slots[683] = nativeContext.LoadFunction("SDL_LoadWAV_IO", "SDL3") ) )(src, closeio, spec, audio_buf, audio_len); @@ -83161,9 +84520,9 @@ public static MaybeBool LockAudioStream(AudioStreamHandle stream) => byte ISdl.LockAudioStreamRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[677] is not null and var loadedFnPtr + _slots[684] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[677] = nativeContext.LoadFunction("SDL_LockAudioStream", "SDL3") + : _slots[684] = nativeContext.LoadFunction("SDL_LockAudioStream", "SDL3") ) )(stream); @@ -83177,9 +84536,9 @@ public static byte LockAudioStreamRaw(AudioStreamHandle stream) => void ISdl.LockJoysticks() => ( (delegate* unmanaged)( - _slots[678] is not null and var loadedFnPtr + _slots[685] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[678] = nativeContext.LoadFunction("SDL_LockJoysticks", "SDL3") + : _slots[685] = nativeContext.LoadFunction("SDL_LockJoysticks", "SDL3") ) )(); @@ -83191,9 +84550,9 @@ _slots[678] is not null and var loadedFnPtr void ISdl.LockMutex(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[679] is not null and var loadedFnPtr + _slots[686] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[679] = nativeContext.LoadFunction("SDL_LockMutex", "SDL3") + : _slots[686] = nativeContext.LoadFunction("SDL_LockMutex", "SDL3") ) )(mutex); @@ -83216,9 +84575,9 @@ public static MaybeBool LockProperties([NativeTypeName("SDL_PropertiesID") byte ISdl.LockPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props) => ( (delegate* unmanaged)( - _slots[680] is not null and var loadedFnPtr + _slots[687] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[680] = nativeContext.LoadFunction("SDL_LockProperties", "SDL3") + : _slots[687] = nativeContext.LoadFunction("SDL_LockProperties", "SDL3") ) )(props); @@ -83232,9 +84591,9 @@ public static byte LockPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint p void ISdl.LockRWLockForReading(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[681] is not null and var loadedFnPtr + _slots[688] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[681] = nativeContext.LoadFunction("SDL_LockRWLockForReading", "SDL3") + : _slots[688] = nativeContext.LoadFunction("SDL_LockRWLockForReading", "SDL3") ) )(rwlock); @@ -83247,9 +84606,9 @@ public static void LockRWLockForReading(RWLockHandle rwlock) => void ISdl.LockRWLockForWriting(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[682] is not null and var loadedFnPtr + _slots[689] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[682] = nativeContext.LoadFunction("SDL_LockRWLockForWriting", "SDL3") + : _slots[689] = nativeContext.LoadFunction("SDL_LockRWLockForWriting", "SDL3") ) )(rwlock); @@ -83262,9 +84621,9 @@ public static void LockRWLockForWriting(RWLockHandle rwlock) => void ISdl.LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => ( (delegate* unmanaged)( - _slots[683] is not null and var loadedFnPtr + _slots[690] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[683] = nativeContext.LoadFunction("SDL_LockSpinlock", "SDL3") + : _slots[690] = nativeContext.LoadFunction("SDL_LockSpinlock", "SDL3") ) )(@lock); @@ -83292,9 +84651,9 @@ public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @loc byte ISdl.LockSurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[684] is not null and var loadedFnPtr + _slots[691] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[684] = nativeContext.LoadFunction("SDL_LockSurface", "SDL3") + : _slots[691] = nativeContext.LoadFunction("SDL_LockSurface", "SDL3") ) )(surface); @@ -83328,9 +84687,9 @@ byte ISdl.LockTexture( ) => ( (delegate* unmanaged)( - _slots[685] is not null and var loadedFnPtr + _slots[692] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[685] = nativeContext.LoadFunction("SDL_LockTexture", "SDL3") + : _slots[692] = nativeContext.LoadFunction("SDL_LockTexture", "SDL3") ) )(texture, rect, pixels, pitch); @@ -83382,9 +84741,9 @@ byte ISdl.LockTextureToSurface( ) => ( (delegate* unmanaged)( - _slots[686] is not null and var loadedFnPtr + _slots[693] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[686] = nativeContext.LoadFunction("SDL_LockTextureToSurface", "SDL3") + : _slots[693] = nativeContext.LoadFunction("SDL_LockTextureToSurface", "SDL3") ) )(texture, rect, surface); @@ -83427,9 +84786,9 @@ Ref2D surface double ISdl.Log(double x) => ( (delegate* unmanaged)( - _slots[687] is not null and var loadedFnPtr + _slots[694] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[687] = nativeContext.LoadFunction("SDL_log", "SDL3") + : _slots[694] = nativeContext.LoadFunction("SDL_log", "SDL3") ) )(x); @@ -83441,9 +84800,9 @@ _slots[687] is not null and var loadedFnPtr double ISdl.Log10(double x) => ( (delegate* unmanaged)( - _slots[688] is not null and var loadedFnPtr + _slots[695] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[688] = nativeContext.LoadFunction("SDL_log10", "SDL3") + : _slots[695] = nativeContext.LoadFunction("SDL_log10", "SDL3") ) )(x); @@ -83455,9 +84814,9 @@ _slots[688] is not null and var loadedFnPtr float ISdl.Log10F(float x) => ( (delegate* unmanaged)( - _slots[689] is not null and var loadedFnPtr + _slots[696] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[689] = nativeContext.LoadFunction("SDL_log10f", "SDL3") + : _slots[696] = nativeContext.LoadFunction("SDL_log10f", "SDL3") ) )(x); @@ -83469,9 +84828,9 @@ _slots[689] is not null and var loadedFnPtr float ISdl.Logf(float x) => ( (delegate* unmanaged)( - _slots[690] is not null and var loadedFnPtr + _slots[697] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[690] = nativeContext.LoadFunction("SDL_logf", "SDL3") + : _slots[697] = nativeContext.LoadFunction("SDL_logf", "SDL3") ) )(x); @@ -83488,9 +84847,9 @@ void ISdl.LogMessageV( ) => ( (delegate* unmanaged)( - _slots[691] is not null and var loadedFnPtr + _slots[698] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[691] = nativeContext.LoadFunction("SDL_LogMessageV", "SDL3") + : _slots[698] = nativeContext.LoadFunction("SDL_LogMessageV", "SDL3") ) )(category, priority, fmt, ap); @@ -83532,9 +84891,9 @@ public static void LogMessageV( nint ISdl.Lround(double x) => ( (delegate* unmanaged)( - _slots[692] is not null and var loadedFnPtr + _slots[699] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[692] = nativeContext.LoadFunction("SDL_lround", "SDL3") + : _slots[699] = nativeContext.LoadFunction("SDL_lround", "SDL3") ) )(x); @@ -83547,9 +84906,9 @@ _slots[692] is not null and var loadedFnPtr nint ISdl.Lroundf(float x) => ( (delegate* unmanaged)( - _slots[693] is not null and var loadedFnPtr + _slots[700] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[693] = nativeContext.LoadFunction("SDL_lroundf", "SDL3") + : _slots[700] = nativeContext.LoadFunction("SDL_lroundf", "SDL3") ) )(x); @@ -83566,9 +84925,9 @@ int radix ) => ( (delegate* unmanaged)( - _slots[694] is not null and var loadedFnPtr + _slots[701] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[694] = nativeContext.LoadFunction("SDL_ltoa", "SDL3") + : _slots[701] = nativeContext.LoadFunction("SDL_ltoa", "SDL3") ) )(value, str, radix); @@ -83608,9 +84967,9 @@ int radix int ISdl.Main(int argc, [NativeTypeName("char *[]")] sbyte** argv) => ( (delegate* unmanaged)( - _slots[695] is not null and var loadedFnPtr + _slots[702] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[695] = nativeContext.LoadFunction("SDL_main", "SDL3") + : _slots[702] = nativeContext.LoadFunction("SDL_main", "SDL3") ) )(argc, argv); @@ -83646,9 +85005,9 @@ public static int Main(int argc, [NativeTypeName("char *[]")] Ref2D argv) void* ISdl.MallocRaw([NativeTypeName("size_t")] nuint size) => ( (delegate* unmanaged)( - _slots[696] is not null and var loadedFnPtr + _slots[703] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[696] = nativeContext.LoadFunction("SDL_malloc", "SDL3") + : _slots[703] = nativeContext.LoadFunction("SDL_malloc", "SDL3") ) )(size); @@ -83665,9 +85024,9 @@ _slots[696] is not null and var loadedFnPtr ) => ( (delegate* unmanaged)( - _slots[697] is not null and var loadedFnPtr + _slots[704] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[697] = nativeContext.LoadFunction("SDL_MapGPUTransferBuffer", "SDL3") + : _slots[704] = nativeContext.LoadFunction("SDL_MapGPUTransferBuffer", "SDL3") ) )(device, transfer_buffer, cycle); @@ -83705,9 +85064,9 @@ uint ISdl.MapRGB( ) => ( (delegate* unmanaged)( - _slots[698] is not null and var loadedFnPtr + _slots[705] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[698] = nativeContext.LoadFunction("SDL_MapRGB", "SDL3") + : _slots[705] = nativeContext.LoadFunction("SDL_MapRGB", "SDL3") ) )(format, palette, r, g, b); @@ -83761,9 +85120,9 @@ uint ISdl.MapRgba( ) => ( (delegate* unmanaged)( - _slots[699] is not null and var loadedFnPtr + _slots[706] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[699] = nativeContext.LoadFunction("SDL_MapRGBA", "SDL3") + : _slots[706] = nativeContext.LoadFunction("SDL_MapRGBA", "SDL3") ) )(format, palette, r, g, b, a); @@ -83818,9 +85177,9 @@ uint ISdl.MapSurfaceRGB( ) => ( (delegate* unmanaged)( - _slots[700] is not null and var loadedFnPtr + _slots[707] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[700] = nativeContext.LoadFunction("SDL_MapSurfaceRGB", "SDL3") + : _slots[707] = nativeContext.LoadFunction("SDL_MapSurfaceRGB", "SDL3") ) )(surface, r, g, b); @@ -83869,9 +85228,9 @@ uint ISdl.MapSurfaceRgba( ) => ( (delegate* unmanaged)( - _slots[701] is not null and var loadedFnPtr + _slots[708] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[701] = nativeContext.LoadFunction("SDL_MapSurfaceRGBA", "SDL3") + : _slots[708] = nativeContext.LoadFunction("SDL_MapSurfaceRGBA", "SDL3") ) )(surface, r, g, b, a); @@ -83928,9 +85287,9 @@ public static MaybeBool MaximizeWindow(WindowHandle window) => byte ISdl.MaximizeWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[702] is not null and var loadedFnPtr + _slots[709] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[702] = nativeContext.LoadFunction("SDL_MaximizeWindow", "SDL3") + : _slots[709] = nativeContext.LoadFunction("SDL_MaximizeWindow", "SDL3") ) )(window); @@ -83948,9 +85307,9 @@ int ISdl.Memcmp( ) => ( (delegate* unmanaged)( - _slots[703] is not null and var loadedFnPtr + _slots[710] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[703] = nativeContext.LoadFunction("SDL_memcmp", "SDL3") + : _slots[710] = nativeContext.LoadFunction("SDL_memcmp", "SDL3") ) )(s1, s2, len); @@ -83989,9 +85348,9 @@ public static int Memcmp( void ISdl.MemoryBarrierAcquireFunction() => ( (delegate* unmanaged)( - _slots[704] is not null and var loadedFnPtr + _slots[711] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[704] = nativeContext.LoadFunction( + : _slots[711] = nativeContext.LoadFunction( "SDL_MemoryBarrierAcquireFunction", "SDL3" ) @@ -84006,9 +85365,9 @@ _slots[704] is not null and var loadedFnPtr void ISdl.MemoryBarrierReleaseFunction() => ( (delegate* unmanaged)( - _slots[705] is not null and var loadedFnPtr + _slots[712] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[705] = nativeContext.LoadFunction( + : _slots[712] = nativeContext.LoadFunction( "SDL_MemoryBarrierReleaseFunction", "SDL3" ) @@ -84027,9 +85386,9 @@ _slots[705] is not null and var loadedFnPtr ) => ( (delegate* unmanaged)( - _slots[706] is not null and var loadedFnPtr + _slots[713] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[706] = nativeContext.LoadFunction("SDL_memset4", "SDL3") + : _slots[713] = nativeContext.LoadFunction("SDL_memset4", "SDL3") ) )(dst, val, dwords); @@ -84076,9 +85435,9 @@ public static Ptr Memset4( void* ISdl.MetalCreateViewRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[707] is not null and var loadedFnPtr + _slots[714] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[707] = nativeContext.LoadFunction("SDL_Metal_CreateView", "SDL3") + : _slots[714] = nativeContext.LoadFunction("SDL_Metal_CreateView", "SDL3") ) )(window); @@ -84092,9 +85451,9 @@ _slots[707] is not null and var loadedFnPtr void ISdl.MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view) => ( (delegate* unmanaged)( - _slots[708] is not null and var loadedFnPtr + _slots[715] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[708] = nativeContext.LoadFunction("SDL_Metal_DestroyView", "SDL3") + : _slots[715] = nativeContext.LoadFunction("SDL_Metal_DestroyView", "SDL3") ) )(view); @@ -84122,9 +85481,9 @@ public static void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) void* ISdl.MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view) => ( (delegate* unmanaged)( - _slots[709] is not null and var loadedFnPtr + _slots[716] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[709] = nativeContext.LoadFunction("SDL_Metal_GetLayer", "SDL3") + : _slots[716] = nativeContext.LoadFunction("SDL_Metal_GetLayer", "SDL3") ) )(view); @@ -84163,9 +85522,9 @@ public static MaybeBool MinimizeWindow(WindowHandle window) => byte ISdl.MinimizeWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[710] is not null and var loadedFnPtr + _slots[717] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[710] = nativeContext.LoadFunction("SDL_MinimizeWindow", "SDL3") + : _slots[717] = nativeContext.LoadFunction("SDL_MinimizeWindow", "SDL3") ) )(window); @@ -84185,9 +85544,9 @@ float volume ) => ( (delegate* unmanaged)( - _slots[711] is not null and var loadedFnPtr + _slots[718] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[711] = nativeContext.LoadFunction("SDL_MixAudio", "SDL3") + : _slots[718] = nativeContext.LoadFunction("SDL_MixAudio", "SDL3") ) )(dst, src, format, len, volume); @@ -84235,9 +85594,9 @@ float volume double ISdl.Modf(double x, double* y) => ( (delegate* unmanaged)( - _slots[712] is not null and var loadedFnPtr + _slots[719] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[712] = nativeContext.LoadFunction("SDL_modf", "SDL3") + : _slots[719] = nativeContext.LoadFunction("SDL_modf", "SDL3") ) )(x, y); @@ -84263,9 +85622,9 @@ double ISdl.Modf(double x, Ref y) float ISdl.Modff(float x, float* y) => ( (delegate* unmanaged)( - _slots[713] is not null and var loadedFnPtr + _slots[720] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[713] = nativeContext.LoadFunction("SDL_modff", "SDL3") + : _slots[720] = nativeContext.LoadFunction("SDL_modff", "SDL3") ) )(x, y); @@ -84295,9 +85654,9 @@ uint ISdl.Murmur3X32( ) => ( (delegate* unmanaged)( - _slots[714] is not null and var loadedFnPtr + _slots[721] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[714] = nativeContext.LoadFunction("SDL_murmur3_32", "SDL3") + : _slots[721] = nativeContext.LoadFunction("SDL_murmur3_32", "SDL3") ) )(data, len, seed); @@ -84337,9 +85696,9 @@ public static uint Murmur3X32( void ISdl.OnApplicationDidEnterBackground() => ( (delegate* unmanaged)( - _slots[715] is not null and var loadedFnPtr + _slots[722] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[715] = nativeContext.LoadFunction( + : _slots[722] = nativeContext.LoadFunction( "SDL_OnApplicationDidEnterBackground", "SDL3" ) @@ -84355,9 +85714,9 @@ public static void OnApplicationDidEnterBackground() => void ISdl.OnApplicationDidEnterForeground() => ( (delegate* unmanaged)( - _slots[716] is not null and var loadedFnPtr + _slots[723] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[716] = nativeContext.LoadFunction( + : _slots[723] = nativeContext.LoadFunction( "SDL_OnApplicationDidEnterForeground", "SDL3" ) @@ -84373,9 +85732,9 @@ public static void OnApplicationDidEnterForeground() => void ISdl.OnApplicationDidReceiveMemoryWarning() => ( (delegate* unmanaged)( - _slots[717] is not null and var loadedFnPtr + _slots[724] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[717] = nativeContext.LoadFunction( + : _slots[724] = nativeContext.LoadFunction( "SDL_OnApplicationDidReceiveMemoryWarning", "SDL3" ) @@ -84391,9 +85750,9 @@ public static void OnApplicationDidReceiveMemoryWarning() => void ISdl.OnApplicationWillEnterBackground() => ( (delegate* unmanaged)( - _slots[718] is not null and var loadedFnPtr + _slots[725] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[718] = nativeContext.LoadFunction( + : _slots[725] = nativeContext.LoadFunction( "SDL_OnApplicationWillEnterBackground", "SDL3" ) @@ -84409,9 +85768,9 @@ public static void OnApplicationWillEnterBackground() => void ISdl.OnApplicationWillEnterForeground() => ( (delegate* unmanaged)( - _slots[719] is not null and var loadedFnPtr + _slots[726] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[719] = nativeContext.LoadFunction( + : _slots[726] = nativeContext.LoadFunction( "SDL_OnApplicationWillEnterForeground", "SDL3" ) @@ -84427,9 +85786,9 @@ public static void OnApplicationWillEnterForeground() => void ISdl.OnApplicationWillTerminate() => ( (delegate* unmanaged)( - _slots[720] is not null and var loadedFnPtr + _slots[727] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[720] = nativeContext.LoadFunction( + : _slots[727] = nativeContext.LoadFunction( "SDL_OnApplicationWillTerminate", "SDL3" ) @@ -84447,9 +85806,9 @@ uint ISdl.OpenAudioDevice( ) => ( (delegate* unmanaged)( - _slots[721] is not null and var loadedFnPtr + _slots[728] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[721] = nativeContext.LoadFunction("SDL_OpenAudioDevice", "SDL3") + : _slots[728] = nativeContext.LoadFunction("SDL_OpenAudioDevice", "SDL3") ) )(devid, spec); @@ -84491,9 +85850,9 @@ AudioStreamHandle ISdl.OpenAudioDeviceStream( ) => ( (delegate* unmanaged)( - _slots[722] is not null and var loadedFnPtr + _slots[729] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[722] = nativeContext.LoadFunction("SDL_OpenAudioDeviceStream", "SDL3") + : _slots[729] = nativeContext.LoadFunction("SDL_OpenAudioDeviceStream", "SDL3") ) )(devid, spec, callback, userdata); @@ -84539,9 +85898,9 @@ CameraHandle ISdl.OpenCamera( ) => ( (delegate* unmanaged)( - _slots[723] is not null and var loadedFnPtr + _slots[730] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[723] = nativeContext.LoadFunction("SDL_OpenCamera", "SDL3") + : _slots[730] = nativeContext.LoadFunction("SDL_OpenCamera", "SDL3") ) )(instance_id, spec); @@ -84576,9 +85935,9 @@ public static CameraHandle OpenCamera( StorageHandle ISdl.OpenFileStorage([NativeTypeName("const char *")] sbyte* path) => ( (delegate* unmanaged)( - _slots[724] is not null and var loadedFnPtr + _slots[731] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[724] = nativeContext.LoadFunction("SDL_OpenFileStorage", "SDL3") + : _slots[731] = nativeContext.LoadFunction("SDL_OpenFileStorage", "SDL3") ) )(path); @@ -84606,9 +85965,9 @@ public static StorageHandle OpenFileStorage([NativeTypeName("const char *")] Ref GamepadHandle ISdl.OpenGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[725] is not null and var loadedFnPtr + _slots[732] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[725] = nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") + : _slots[732] = nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") ) )(instance_id); @@ -84621,9 +85980,9 @@ public static GamepadHandle OpenGamepad([NativeTypeName("SDL_JoystickID")] uint HapticHandle ISdl.OpenHaptic([NativeTypeName("SDL_HapticID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[726] is not null and var loadedFnPtr + _slots[733] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[726] = nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") + : _slots[733] = nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") ) )(instance_id); @@ -84636,9 +85995,9 @@ public static HapticHandle OpenHaptic([NativeTypeName("SDL_HapticID")] uint inst HapticHandle ISdl.OpenHapticFromJoystick(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[727] is not null and var loadedFnPtr + _slots[734] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[727] = nativeContext.LoadFunction("SDL_OpenHapticFromJoystick", "SDL3") + : _slots[734] = nativeContext.LoadFunction("SDL_OpenHapticFromJoystick", "SDL3") ) )(joystick); @@ -84651,9 +86010,9 @@ public static HapticHandle OpenHapticFromJoystick(JoystickHandle joystick) => HapticHandle ISdl.OpenHapticFromMouse() => ( (delegate* unmanaged)( - _slots[728] is not null and var loadedFnPtr + _slots[735] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[728] = nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") + : _slots[735] = nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") ) )(); @@ -84668,9 +86027,9 @@ IOStreamHandle ISdl.OpenIO( ) => ( (delegate* unmanaged)( - _slots[729] is not null and var loadedFnPtr + _slots[736] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[729] = nativeContext.LoadFunction("SDL_OpenIO", "SDL3") + : _slots[736] = nativeContext.LoadFunction("SDL_OpenIO", "SDL3") ) )(iface, userdata); @@ -84706,9 +86065,9 @@ Ref userdata JoystickHandle ISdl.OpenJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[730] is not null and var loadedFnPtr + _slots[737] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[730] = nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") + : _slots[737] = nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") ) )(instance_id); @@ -84722,9 +86081,9 @@ public static JoystickHandle OpenJoystick( SensorHandle ISdl.OpenSensor([NativeTypeName("SDL_SensorID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[731] is not null and var loadedFnPtr + _slots[738] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[731] = nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") + : _slots[738] = nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") ) )(instance_id); @@ -84740,9 +86099,9 @@ StorageHandle ISdl.OpenStorage( ) => ( (delegate* unmanaged)( - _slots[732] is not null and var loadedFnPtr + _slots[739] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[732] = nativeContext.LoadFunction("SDL_OpenStorage", "SDL3") + : _slots[739] = nativeContext.LoadFunction("SDL_OpenStorage", "SDL3") ) )(iface, userdata); @@ -84781,9 +86140,9 @@ StorageHandle ISdl.OpenTitleStorage( ) => ( (delegate* unmanaged)( - _slots[733] is not null and var loadedFnPtr + _slots[740] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[733] = nativeContext.LoadFunction("SDL_OpenTitleStorage", "SDL3") + : _slots[740] = nativeContext.LoadFunction("SDL_OpenTitleStorage", "SDL3") ) )(@override, props); @@ -84818,9 +86177,9 @@ public static StorageHandle OpenTitleStorage( byte ISdl.OpenURL([NativeTypeName("const char *")] sbyte* url) => ( (delegate* unmanaged)( - _slots[734] is not null and var loadedFnPtr + _slots[741] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[734] = nativeContext.LoadFunction("SDL_OpenURL", "SDL3") + : _slots[741] = nativeContext.LoadFunction("SDL_OpenURL", "SDL3") ) )(url); @@ -84854,9 +86213,9 @@ StorageHandle ISdl.OpenUserStorage( ) => ( (delegate* unmanaged)( - _slots[735] is not null and var loadedFnPtr + _slots[742] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[735] = nativeContext.LoadFunction("SDL_OpenUserStorage", "SDL3") + : _slots[742] = nativeContext.LoadFunction("SDL_OpenUserStorage", "SDL3") ) )(org, app, props); @@ -84904,9 +86263,9 @@ public static StorageHandle OpenUserStorage( byte ISdl.OutOfMemoryRaw() => ( (delegate* unmanaged)( - _slots[736] is not null and var loadedFnPtr + _slots[743] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[736] = nativeContext.LoadFunction("SDL_OutOfMemory", "SDL3") + : _slots[743] = nativeContext.LoadFunction("SDL_OutOfMemory", "SDL3") ) )(); @@ -84916,32 +86275,32 @@ _slots[736] is not null and var loadedFnPtr public static byte OutOfMemoryRaw() => DllImport.OutOfMemoryRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - (MaybeBool)(byte)((ISdl)this).PauseAudioDeviceRaw(dev); + MaybeBool ISdl.PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + (MaybeBool)(byte)((ISdl)this).PauseAudioDeviceRaw(devid); [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static MaybeBool PauseAudioDevice( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => DllImport.PauseAudioDevice(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => DllImport.PauseAudioDevice(devid); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - byte ISdl.PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + byte ISdl.PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( (delegate* unmanaged)( - _slots[737] is not null and var loadedFnPtr + _slots[744] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[737] = nativeContext.LoadFunction("SDL_PauseAudioDevice", "SDL3") + : _slots[744] = nativeContext.LoadFunction("SDL_PauseAudioDevice", "SDL3") ) - )(dev); + )(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - DllImport.PauseAudioDeviceRaw(dev); + public static byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.PauseAudioDeviceRaw(devid); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] MaybeBool ISdl.PauseAudioStreamDevice(AudioStreamHandle stream) => @@ -84958,9 +86317,9 @@ public static MaybeBool PauseAudioStreamDevice(AudioStreamHandle stream) = byte ISdl.PauseAudioStreamDeviceRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[738] is not null and var loadedFnPtr + _slots[745] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[738] = nativeContext.LoadFunction("SDL_PauseAudioStreamDevice", "SDL3") + : _slots[745] = nativeContext.LoadFunction("SDL_PauseAudioStreamDevice", "SDL3") ) )(stream); @@ -84984,9 +86343,9 @@ MaybeBool ISdl.PauseHaptic(HapticHandle haptic) => byte ISdl.PauseHapticRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[739] is not null and var loadedFnPtr + _slots[746] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[739] = nativeContext.LoadFunction("SDL_PauseHaptic", "SDL3") + : _slots[746] = nativeContext.LoadFunction("SDL_PauseHaptic", "SDL3") ) )(haptic); @@ -85005,9 +86364,9 @@ int ISdl.PeepEvents( ) => ( (delegate* unmanaged)( - _slots[740] is not null and var loadedFnPtr + _slots[747] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[740] = nativeContext.LoadFunction("SDL_PeepEvents", "SDL3") + : _slots[747] = nativeContext.LoadFunction("SDL_PeepEvents", "SDL3") ) )(events, numevents, action, minType, maxType); @@ -85072,9 +86431,9 @@ byte ISdl.PlayHapticRumbleRaw( ) => ( (delegate* unmanaged)( - _slots[741] is not null and var loadedFnPtr + _slots[748] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[741] = nativeContext.LoadFunction("SDL_PlayHapticRumble", "SDL3") + : _slots[748] = nativeContext.LoadFunction("SDL_PlayHapticRumble", "SDL3") ) )(haptic, strength, length); @@ -85091,9 +86450,9 @@ public static byte PlayHapticRumbleRaw( byte ISdl.PollEvent(Event* @event) => ( (delegate* unmanaged)( - _slots[742] is not null and var loadedFnPtr + _slots[749] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[742] = nativeContext.LoadFunction("SDL_PollEvent", "SDL3") + : _slots[749] = nativeContext.LoadFunction("SDL_PollEvent", "SDL3") ) )(@event); @@ -85121,9 +86480,9 @@ MaybeBool ISdl.PollEvent(Ref @event) void ISdl.PopGPUDebugGroup(GPUCommandBufferHandle command_buffer) => ( (delegate* unmanaged)( - _slots[743] is not null and var loadedFnPtr + _slots[750] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[743] = nativeContext.LoadFunction("SDL_PopGPUDebugGroup", "SDL3") + : _slots[750] = nativeContext.LoadFunction("SDL_PopGPUDebugGroup", "SDL3") ) )(command_buffer); @@ -85136,9 +86495,9 @@ public static void PopGPUDebugGroup(GPUCommandBufferHandle command_buffer) => double ISdl.Pow(double x, double y) => ( (delegate* unmanaged)( - _slots[744] is not null and var loadedFnPtr + _slots[751] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[744] = nativeContext.LoadFunction("SDL_pow", "SDL3") + : _slots[751] = nativeContext.LoadFunction("SDL_pow", "SDL3") ) )(x, y); @@ -85150,9 +86509,9 @@ _slots[744] is not null and var loadedFnPtr float ISdl.Powf(float x, float y) => ( (delegate* unmanaged)( - _slots[745] is not null and var loadedFnPtr + _slots[752] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[745] = nativeContext.LoadFunction("SDL_powf", "SDL3") + : _slots[752] = nativeContext.LoadFunction("SDL_powf", "SDL3") ) )(x, y); @@ -85184,9 +86543,9 @@ byte ISdl.PremultiplyAlpha( int, byte, byte>)( - _slots[746] is not null and var loadedFnPtr + _slots[753] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[746] = nativeContext.LoadFunction("SDL_PremultiplyAlpha", "SDL3") + : _slots[753] = nativeContext.LoadFunction("SDL_PremultiplyAlpha", "SDL3") ) )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch, linear); @@ -85279,9 +86638,9 @@ public static MaybeBool PremultiplyAlpha( byte ISdl.PremultiplySurfaceAlpha(Surface* surface, [NativeTypeName("bool")] byte linear) => ( (delegate* unmanaged)( - _slots[747] is not null and var loadedFnPtr + _slots[754] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[747] = nativeContext.LoadFunction( + : _slots[754] = nativeContext.LoadFunction( "SDL_PremultiplySurfaceAlpha", "SDL3" ) @@ -85322,9 +86681,9 @@ public static MaybeBool PremultiplySurfaceAlpha( void ISdl.PumpEvents() => ( (delegate* unmanaged)( - _slots[748] is not null and var loadedFnPtr + _slots[755] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[748] = nativeContext.LoadFunction("SDL_PumpEvents", "SDL3") + : _slots[755] = nativeContext.LoadFunction("SDL_PumpEvents", "SDL3") ) )(); @@ -85336,9 +86695,9 @@ _slots[748] is not null and var loadedFnPtr byte ISdl.PushEvent(Event* @event) => ( (delegate* unmanaged)( - _slots[749] is not null and var loadedFnPtr + _slots[756] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[749] = nativeContext.LoadFunction("SDL_PushEvent", "SDL3") + : _slots[756] = nativeContext.LoadFunction("SDL_PushEvent", "SDL3") ) )(@event); @@ -85371,9 +86730,9 @@ void ISdl.PushGPUComputeUniformData( ) => ( (delegate* unmanaged)( - _slots[750] is not null and var loadedFnPtr + _slots[757] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[750] = nativeContext.LoadFunction( + : _slots[757] = nativeContext.LoadFunction( "SDL_PushGPUComputeUniformData", "SDL3" ) @@ -85420,9 +86779,9 @@ void ISdl.PushGPUDebugGroup( ) => ( (delegate* unmanaged)( - _slots[751] is not null and var loadedFnPtr + _slots[758] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[751] = nativeContext.LoadFunction("SDL_PushGPUDebugGroup", "SDL3") + : _slots[758] = nativeContext.LoadFunction("SDL_PushGPUDebugGroup", "SDL3") ) )(command_buffer, name); @@ -85462,9 +86821,9 @@ void ISdl.PushGPUFragmentUniformData( ) => ( (delegate* unmanaged)( - _slots[752] is not null and var loadedFnPtr + _slots[759] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[752] = nativeContext.LoadFunction( + : _slots[759] = nativeContext.LoadFunction( "SDL_PushGPUFragmentUniformData", "SDL3" ) @@ -85513,9 +86872,9 @@ void ISdl.PushGPUVertexUniformData( ) => ( (delegate* unmanaged)( - _slots[753] is not null and var loadedFnPtr + _slots[760] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[753] = nativeContext.LoadFunction( + : _slots[760] = nativeContext.LoadFunction( "SDL_PushGPUVertexUniformData", "SDL3" ) @@ -85563,9 +86922,9 @@ int len ) => ( (delegate* unmanaged)( - _slots[754] is not null and var loadedFnPtr + _slots[761] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[754] = nativeContext.LoadFunction("SDL_PutAudioStreamData", "SDL3") + : _slots[761] = nativeContext.LoadFunction("SDL_PutAudioStreamData", "SDL3") ) )(stream, buf, len); @@ -85610,9 +86969,9 @@ void ISdl.Qsort( ) => ( (delegate* unmanaged)( - _slots[755] is not null and var loadedFnPtr + _slots[762] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[755] = nativeContext.LoadFunction("SDL_qsort", "SDL3") + : _slots[762] = nativeContext.LoadFunction("SDL_qsort", "SDL3") ) )(@base, nmemb, size, compare); @@ -85659,9 +87018,9 @@ void ISdl.QsortR( ) => ( (delegate* unmanaged)( - _slots[756] is not null and var loadedFnPtr + _slots[763] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[756] = nativeContext.LoadFunction("SDL_qsort_r", "SDL3") + : _slots[763] = nativeContext.LoadFunction("SDL_qsort_r", "SDL3") ) )(@base, nmemb, size, compare, userdata); @@ -85717,9 +87076,9 @@ public static MaybeBool QueryGPUFence(GPUDeviceHandle device, GPUFenceHand byte ISdl.QueryGPUFenceRaw(GPUDeviceHandle device, GPUFenceHandle fence) => ( (delegate* unmanaged)( - _slots[757] is not null and var loadedFnPtr + _slots[764] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[757] = nativeContext.LoadFunction("SDL_QueryGPUFence", "SDL3") + : _slots[764] = nativeContext.LoadFunction("SDL_QueryGPUFence", "SDL3") ) )(device, fence); @@ -85733,9 +87092,9 @@ public static byte QueryGPUFenceRaw(GPUDeviceHandle device, GPUFenceHandle fence void ISdl.Quit() => ( (delegate* unmanaged)( - _slots[758] is not null and var loadedFnPtr + _slots[765] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[758] = nativeContext.LoadFunction("SDL_Quit", "SDL3") + : _slots[765] = nativeContext.LoadFunction("SDL_Quit", "SDL3") ) )(); @@ -85747,9 +87106,9 @@ _slots[758] is not null and var loadedFnPtr void ISdl.QuitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => ( (delegate* unmanaged)( - _slots[759] is not null and var loadedFnPtr + _slots[766] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[759] = nativeContext.LoadFunction("SDL_QuitSubSystem", "SDL3") + : _slots[766] = nativeContext.LoadFunction("SDL_QuitSubSystem", "SDL3") ) )(flags); @@ -85772,9 +87131,9 @@ MaybeBool ISdl.RaiseWindow(WindowHandle window) => byte ISdl.RaiseWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[760] is not null and var loadedFnPtr + _slots[767] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[760] = nativeContext.LoadFunction("SDL_RaiseWindow", "SDL3") + : _slots[767] = nativeContext.LoadFunction("SDL_RaiseWindow", "SDL3") ) )(window); @@ -85787,9 +87146,9 @@ _slots[760] is not null and var loadedFnPtr int ISdl.Rand([NativeTypeName("Sint32")] int n) => ( (delegate* unmanaged)( - _slots[761] is not null and var loadedFnPtr + _slots[768] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[761] = nativeContext.LoadFunction("SDL_rand", "SDL3") + : _slots[768] = nativeContext.LoadFunction("SDL_rand", "SDL3") ) )(n); @@ -85802,9 +87161,9 @@ _slots[761] is not null and var loadedFnPtr uint ISdl.RandBits() => ( (delegate* unmanaged)( - _slots[762] is not null and var loadedFnPtr + _slots[769] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[762] = nativeContext.LoadFunction("SDL_rand_bits", "SDL3") + : _slots[769] = nativeContext.LoadFunction("SDL_rand_bits", "SDL3") ) )(); @@ -85817,9 +87176,9 @@ _slots[762] is not null and var loadedFnPtr uint ISdl.RandBitsR([NativeTypeName("Uint64 *")] ulong* state) => ( (delegate* unmanaged)( - _slots[763] is not null and var loadedFnPtr + _slots[770] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[763] = nativeContext.LoadFunction("SDL_rand_bits_r", "SDL3") + : _slots[770] = nativeContext.LoadFunction("SDL_rand_bits_r", "SDL3") ) )(state); @@ -85849,9 +87208,9 @@ public static uint RandBitsR([NativeTypeName("Uint64 *")] Ref state) => int ISdl.RandR([NativeTypeName("Uint64 *")] ulong* state, [NativeTypeName("Sint32")] int n) => ( (delegate* unmanaged)( - _slots[764] is not null and var loadedFnPtr + _slots[771] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[764] = nativeContext.LoadFunction("SDL_rand_r", "SDL3") + : _slots[771] = nativeContext.LoadFunction("SDL_rand_r", "SDL3") ) )(state, n); @@ -85885,9 +87244,9 @@ public static int RandR( float ISdl.Randf() => ( (delegate* unmanaged)( - _slots[765] is not null and var loadedFnPtr + _slots[772] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[765] = nativeContext.LoadFunction("SDL_randf", "SDL3") + : _slots[772] = nativeContext.LoadFunction("SDL_randf", "SDL3") ) )(); @@ -85899,9 +87258,9 @@ _slots[765] is not null and var loadedFnPtr float ISdl.RandfR([NativeTypeName("Uint64 *")] ulong* state) => ( (delegate* unmanaged)( - _slots[766] is not null and var loadedFnPtr + _slots[773] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[766] = nativeContext.LoadFunction("SDL_randf_r", "SDL3") + : _slots[773] = nativeContext.LoadFunction("SDL_randf_r", "SDL3") ) )(state); @@ -85929,9 +87288,9 @@ public static float RandfR([NativeTypeName("Uint64 *")] Ref state) => nuint ISdl.ReadIO(IOStreamHandle context, void* ptr, [NativeTypeName("size_t")] nuint size) => ( (delegate* unmanaged)( - _slots[767] is not null and var loadedFnPtr + _slots[774] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[767] = nativeContext.LoadFunction("SDL_ReadIO", "SDL3") + : _slots[774] = nativeContext.LoadFunction("SDL_ReadIO", "SDL3") ) )(context, ptr, size); @@ -85971,9 +87330,9 @@ public static nuint ReadIO( ) => ( (delegate* unmanaged)( - _slots[768] is not null and var loadedFnPtr + _slots[775] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[768] = nativeContext.LoadFunction("SDL_ReadProcess", "SDL3") + : _slots[775] = nativeContext.LoadFunction("SDL_ReadProcess", "SDL3") ) )(process, datasize, exitcode); @@ -86012,9 +87371,9 @@ Ref exitcode byte ISdl.ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => ( (delegate* unmanaged)( - _slots[769] is not null and var loadedFnPtr + _slots[776] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[769] = nativeContext.LoadFunction("SDL_ReadS16BE", "SDL3") + : _slots[776] = nativeContext.LoadFunction("SDL_ReadS16BE", "SDL3") ) )(src, value); @@ -86049,9 +87408,9 @@ public static MaybeBool ReadS16BE( byte ISdl.ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => ( (delegate* unmanaged)( - _slots[770] is not null and var loadedFnPtr + _slots[777] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[770] = nativeContext.LoadFunction("SDL_ReadS16LE", "SDL3") + : _slots[777] = nativeContext.LoadFunction("SDL_ReadS16LE", "SDL3") ) )(src, value); @@ -86086,9 +87445,9 @@ public static MaybeBool ReadS16LE( byte ISdl.ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => ( (delegate* unmanaged)( - _slots[771] is not null and var loadedFnPtr + _slots[778] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[771] = nativeContext.LoadFunction("SDL_ReadS32BE", "SDL3") + : _slots[778] = nativeContext.LoadFunction("SDL_ReadS32BE", "SDL3") ) )(src, value); @@ -86120,9 +87479,9 @@ public static MaybeBool ReadS32BE( byte ISdl.ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => ( (delegate* unmanaged)( - _slots[772] is not null and var loadedFnPtr + _slots[779] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[772] = nativeContext.LoadFunction("SDL_ReadS32LE", "SDL3") + : _slots[779] = nativeContext.LoadFunction("SDL_ReadS32LE", "SDL3") ) )(src, value); @@ -86154,9 +87513,9 @@ public static MaybeBool ReadS32LE( byte ISdl.ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => ( (delegate* unmanaged)( - _slots[773] is not null and var loadedFnPtr + _slots[780] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[773] = nativeContext.LoadFunction("SDL_ReadS64BE", "SDL3") + : _slots[780] = nativeContext.LoadFunction("SDL_ReadS64BE", "SDL3") ) )(src, value); @@ -86188,9 +87547,9 @@ public static MaybeBool ReadS64BE( byte ISdl.ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => ( (delegate* unmanaged)( - _slots[774] is not null and var loadedFnPtr + _slots[781] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[774] = nativeContext.LoadFunction("SDL_ReadS64LE", "SDL3") + : _slots[781] = nativeContext.LoadFunction("SDL_ReadS64LE", "SDL3") ) )(src, value); @@ -86222,9 +87581,9 @@ public static MaybeBool ReadS64LE( byte ISdl.ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] sbyte* value) => ( (delegate* unmanaged)( - _slots[775] is not null and var loadedFnPtr + _slots[782] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[775] = nativeContext.LoadFunction("SDL_ReadS8", "SDL3") + : _slots[782] = nativeContext.LoadFunction("SDL_ReadS8", "SDL3") ) )(src, value); @@ -86261,9 +87620,9 @@ byte ISdl.ReadStorageFile( ) => ( (delegate* unmanaged)( - _slots[776] is not null and var loadedFnPtr + _slots[783] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[776] = nativeContext.LoadFunction("SDL_ReadStorageFile", "SDL3") + : _slots[783] = nativeContext.LoadFunction("SDL_ReadStorageFile", "SDL3") ) )(storage, path, destination, length); @@ -86316,9 +87675,9 @@ byte ISdl.ReadSurfacePixel( ) => ( (delegate* unmanaged)( - _slots[777] is not null and var loadedFnPtr + _slots[784] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[777] = nativeContext.LoadFunction("SDL_ReadSurfacePixel", "SDL3") + : _slots[784] = nativeContext.LoadFunction("SDL_ReadSurfacePixel", "SDL3") ) )(surface, x, y, r, g, b, a); @@ -86392,9 +87751,9 @@ byte ISdl.ReadSurfacePixelFloat( ) => ( (delegate* unmanaged)( - _slots[778] is not null and var loadedFnPtr + _slots[785] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[778] = nativeContext.LoadFunction("SDL_ReadSurfacePixelFloat", "SDL3") + : _slots[785] = nativeContext.LoadFunction("SDL_ReadSurfacePixelFloat", "SDL3") ) )(surface, x, y, r, g, b, a); @@ -86460,9 +87819,9 @@ Ref a byte ISdl.ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => ( (delegate* unmanaged)( - _slots[779] is not null and var loadedFnPtr + _slots[786] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[779] = nativeContext.LoadFunction("SDL_ReadU16BE", "SDL3") + : _slots[786] = nativeContext.LoadFunction("SDL_ReadU16BE", "SDL3") ) )(src, value); @@ -86497,9 +87856,9 @@ public static MaybeBool ReadU16BE( byte ISdl.ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => ( (delegate* unmanaged)( - _slots[780] is not null and var loadedFnPtr + _slots[787] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[780] = nativeContext.LoadFunction("SDL_ReadU16LE", "SDL3") + : _slots[787] = nativeContext.LoadFunction("SDL_ReadU16LE", "SDL3") ) )(src, value); @@ -86534,9 +87893,9 @@ public static MaybeBool ReadU16LE( byte ISdl.ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => ( (delegate* unmanaged)( - _slots[781] is not null and var loadedFnPtr + _slots[788] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[781] = nativeContext.LoadFunction("SDL_ReadU32BE", "SDL3") + : _slots[788] = nativeContext.LoadFunction("SDL_ReadU32BE", "SDL3") ) )(src, value); @@ -86568,9 +87927,9 @@ public static MaybeBool ReadU32BE( byte ISdl.ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => ( (delegate* unmanaged)( - _slots[782] is not null and var loadedFnPtr + _slots[789] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[782] = nativeContext.LoadFunction("SDL_ReadU32LE", "SDL3") + : _slots[789] = nativeContext.LoadFunction("SDL_ReadU32LE", "SDL3") ) )(src, value); @@ -86602,9 +87961,9 @@ public static MaybeBool ReadU32LE( byte ISdl.ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => ( (delegate* unmanaged)( - _slots[783] is not null and var loadedFnPtr + _slots[790] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[783] = nativeContext.LoadFunction("SDL_ReadU64BE", "SDL3") + : _slots[790] = nativeContext.LoadFunction("SDL_ReadU64BE", "SDL3") ) )(src, value); @@ -86639,9 +87998,9 @@ public static MaybeBool ReadU64BE( byte ISdl.ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => ( (delegate* unmanaged)( - _slots[784] is not null and var loadedFnPtr + _slots[791] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[784] = nativeContext.LoadFunction("SDL_ReadU64LE", "SDL3") + : _slots[791] = nativeContext.LoadFunction("SDL_ReadU64LE", "SDL3") ) )(src, value); @@ -86676,9 +88035,9 @@ public static MaybeBool ReadU64LE( byte ISdl.ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => ( (delegate* unmanaged)( - _slots[785] is not null and var loadedFnPtr + _slots[792] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[785] = nativeContext.LoadFunction("SDL_ReadU8", "SDL3") + : _slots[792] = nativeContext.LoadFunction("SDL_ReadU8", "SDL3") ) )(src, value); @@ -86710,9 +88069,9 @@ public static MaybeBool ReadU8( void* ISdl.Realloc(void* mem, [NativeTypeName("size_t")] nuint size) => ( (delegate* unmanaged)( - _slots[786] is not null and var loadedFnPtr + _slots[793] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[786] = nativeContext.LoadFunction("SDL_realloc", "SDL3") + : _slots[793] = nativeContext.LoadFunction("SDL_realloc", "SDL3") ) )(mem, size); @@ -86740,9 +88099,9 @@ public static Ptr Realloc(Ref mem, [NativeTypeName("size_t")] nuint size) => uint ISdl.RegisterEvents(int numevents) => ( (delegate* unmanaged)( - _slots[787] is not null and var loadedFnPtr + _slots[794] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[787] = nativeContext.LoadFunction("SDL_RegisterEvents", "SDL3") + : _slots[794] = nativeContext.LoadFunction("SDL_RegisterEvents", "SDL3") ) )(numevents); @@ -86755,9 +88114,9 @@ _slots[787] is not null and var loadedFnPtr void ISdl.ReleaseCameraFrame(CameraHandle camera, Surface* frame) => ( (delegate* unmanaged)( - _slots[788] is not null and var loadedFnPtr + _slots[795] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[788] = nativeContext.LoadFunction("SDL_ReleaseCameraFrame", "SDL3") + : _slots[795] = nativeContext.LoadFunction("SDL_ReleaseCameraFrame", "SDL3") ) )(camera, frame); @@ -86785,9 +88144,9 @@ public static void ReleaseCameraFrame(CameraHandle camera, Ref frame) = void ISdl.ReleaseGPUBuffer(GPUDeviceHandle device, GPUBufferHandle buffer) => ( (delegate* unmanaged)( - _slots[789] is not null and var loadedFnPtr + _slots[796] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[789] = nativeContext.LoadFunction("SDL_ReleaseGPUBuffer", "SDL3") + : _slots[796] = nativeContext.LoadFunction("SDL_ReleaseGPUBuffer", "SDL3") ) )(device, buffer); @@ -86803,9 +88162,9 @@ GPUComputePipelineHandle compute_pipeline ) => ( (delegate* unmanaged)( - _slots[790] is not null and var loadedFnPtr + _slots[797] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[790] = nativeContext.LoadFunction( + : _slots[797] = nativeContext.LoadFunction( "SDL_ReleaseGPUComputePipeline", "SDL3" ) @@ -86823,9 +88182,9 @@ GPUComputePipelineHandle compute_pipeline void ISdl.ReleaseGPUFence(GPUDeviceHandle device, GPUFenceHandle fence) => ( (delegate* unmanaged)( - _slots[791] is not null and var loadedFnPtr + _slots[798] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[791] = nativeContext.LoadFunction("SDL_ReleaseGPUFence", "SDL3") + : _slots[798] = nativeContext.LoadFunction("SDL_ReleaseGPUFence", "SDL3") ) )(device, fence); @@ -86841,9 +88200,9 @@ GPUGraphicsPipelineHandle graphics_pipeline ) => ( (delegate* unmanaged)( - _slots[792] is not null and var loadedFnPtr + _slots[799] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[792] = nativeContext.LoadFunction( + : _slots[799] = nativeContext.LoadFunction( "SDL_ReleaseGPUGraphicsPipeline", "SDL3" ) @@ -86861,9 +88220,9 @@ GPUGraphicsPipelineHandle graphics_pipeline void ISdl.ReleaseGPUSampler(GPUDeviceHandle device, GPUSamplerHandle sampler) => ( (delegate* unmanaged)( - _slots[793] is not null and var loadedFnPtr + _slots[800] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[793] = nativeContext.LoadFunction("SDL_ReleaseGPUSampler", "SDL3") + : _slots[800] = nativeContext.LoadFunction("SDL_ReleaseGPUSampler", "SDL3") ) )(device, sampler); @@ -86876,9 +88235,9 @@ public static void ReleaseGPUSampler(GPUDeviceHandle device, GPUSamplerHandle sa void ISdl.ReleaseGPUShader(GPUDeviceHandle device, GPUShaderHandle shader) => ( (delegate* unmanaged)( - _slots[794] is not null and var loadedFnPtr + _slots[801] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[794] = nativeContext.LoadFunction("SDL_ReleaseGPUShader", "SDL3") + : _slots[801] = nativeContext.LoadFunction("SDL_ReleaseGPUShader", "SDL3") ) )(device, shader); @@ -86891,9 +88250,9 @@ public static void ReleaseGPUShader(GPUDeviceHandle device, GPUShaderHandle shad void ISdl.ReleaseGPUTexture(GPUDeviceHandle device, GPUTextureHandle texture) => ( (delegate* unmanaged)( - _slots[795] is not null and var loadedFnPtr + _slots[802] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[795] = nativeContext.LoadFunction("SDL_ReleaseGPUTexture", "SDL3") + : _slots[802] = nativeContext.LoadFunction("SDL_ReleaseGPUTexture", "SDL3") ) )(device, texture); @@ -86909,9 +88268,9 @@ GPUTransferBufferHandle transfer_buffer ) => ( (delegate* unmanaged)( - _slots[796] is not null and var loadedFnPtr + _slots[803] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[796] = nativeContext.LoadFunction( + : _slots[803] = nativeContext.LoadFunction( "SDL_ReleaseGPUTransferBuffer", "SDL3" ) @@ -86929,9 +88288,9 @@ GPUTransferBufferHandle transfer_buffer void ISdl.ReleaseWindowFromGPUDevice(GPUDeviceHandle device, WindowHandle window) => ( (delegate* unmanaged)( - _slots[797] is not null and var loadedFnPtr + _slots[804] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[797] = nativeContext.LoadFunction( + : _slots[804] = nativeContext.LoadFunction( "SDL_ReleaseWindowFromGPUDevice", "SDL3" ) @@ -86957,9 +88316,9 @@ MaybeBool ISdl.ReloadGamepadMappings() => byte ISdl.ReloadGamepadMappingsRaw() => ( (delegate* unmanaged)( - _slots[798] is not null and var loadedFnPtr + _slots[805] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[798] = nativeContext.LoadFunction("SDL_ReloadGamepadMappings", "SDL3") + : _slots[805] = nativeContext.LoadFunction("SDL_ReloadGamepadMappings", "SDL3") ) )(); @@ -86975,9 +88334,9 @@ void ISdl.RemoveEventWatch( ) => ( (delegate* unmanaged)( - _slots[799] is not null and var loadedFnPtr + _slots[806] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[799] = nativeContext.LoadFunction("SDL_RemoveEventWatch", "SDL3") + : _slots[806] = nativeContext.LoadFunction("SDL_RemoveEventWatch", "SDL3") ) )(filter, userdata); @@ -87013,9 +88372,9 @@ void ISdl.RemoveHintCallback( ) => ( (delegate* unmanaged)( - _slots[800] is not null and var loadedFnPtr + _slots[807] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[800] = nativeContext.LoadFunction("SDL_RemoveHintCallback", "SDL3") + : _slots[807] = nativeContext.LoadFunction("SDL_RemoveHintCallback", "SDL3") ) )(name, callback, userdata); @@ -87054,9 +88413,9 @@ Ref userdata byte ISdl.RemovePath([NativeTypeName("const char *")] sbyte* path) => ( (delegate* unmanaged)( - _slots[801] is not null and var loadedFnPtr + _slots[808] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[801] = nativeContext.LoadFunction("SDL_RemovePath", "SDL3") + : _slots[808] = nativeContext.LoadFunction("SDL_RemovePath", "SDL3") ) )(path); @@ -87089,9 +88448,9 @@ byte ISdl.RemoveStoragePath( ) => ( (delegate* unmanaged)( - _slots[802] is not null and var loadedFnPtr + _slots[809] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[802] = nativeContext.LoadFunction("SDL_RemoveStoragePath", "SDL3") + : _slots[809] = nativeContext.LoadFunction("SDL_RemoveStoragePath", "SDL3") ) )(storage, path); @@ -87128,9 +88487,9 @@ public static MaybeBool RemoveStoragePath( void ISdl.RemoveSurfaceAlternateImages(Surface* surface) => ( (delegate* unmanaged)( - _slots[803] is not null and var loadedFnPtr + _slots[810] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[803] = nativeContext.LoadFunction( + : _slots[810] = nativeContext.LoadFunction( "SDL_RemoveSurfaceAlternateImages", "SDL3" ) @@ -87172,9 +88531,9 @@ public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint i byte ISdl.RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => ( (delegate* unmanaged)( - _slots[804] is not null and var loadedFnPtr + _slots[811] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[804] = nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3") + : _slots[811] = nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3") ) )(id); @@ -87191,9 +88550,9 @@ byte ISdl.RenamePath( ) => ( (delegate* unmanaged)( - _slots[805] is not null and var loadedFnPtr + _slots[812] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[805] = nativeContext.LoadFunction("SDL_RenamePath", "SDL3") + : _slots[812] = nativeContext.LoadFunction("SDL_RenamePath", "SDL3") ) )(oldpath, newpath); @@ -87235,9 +88594,9 @@ byte ISdl.RenameStoragePath( ) => ( (delegate* unmanaged)( - _slots[806] is not null and var loadedFnPtr + _slots[813] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[806] = nativeContext.LoadFunction("SDL_RenameStoragePath", "SDL3") + : _slots[813] = nativeContext.LoadFunction("SDL_RenameStoragePath", "SDL3") ) )(storage, oldpath, newpath); @@ -87290,9 +88649,9 @@ public static MaybeBool RenderClear(RendererHandle renderer) => byte ISdl.RenderClearRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[807] is not null and var loadedFnPtr + _slots[814] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[807] = nativeContext.LoadFunction("SDL_RenderClear", "SDL3") + : _slots[814] = nativeContext.LoadFunction("SDL_RenderClear", "SDL3") ) )(renderer); @@ -87317,9 +88676,9 @@ public static MaybeBool RenderClipEnabled(RendererHandle renderer) => byte ISdl.RenderClipEnabledRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[808] is not null and var loadedFnPtr + _slots[815] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[808] = nativeContext.LoadFunction("SDL_RenderClipEnabled", "SDL3") + : _slots[815] = nativeContext.LoadFunction("SDL_RenderClipEnabled", "SDL3") ) )(renderer); @@ -87339,9 +88698,9 @@ byte ISdl.RenderCoordinatesFromWindow( ) => ( (delegate* unmanaged)( - _slots[809] is not null and var loadedFnPtr + _slots[816] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[809] = nativeContext.LoadFunction( + : _slots[816] = nativeContext.LoadFunction( "SDL_RenderCoordinatesFromWindow", "SDL3" ) @@ -87405,9 +88764,9 @@ byte ISdl.RenderCoordinatesToWindow( ) => ( (delegate* unmanaged)( - _slots[810] is not null and var loadedFnPtr + _slots[817] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[810] = nativeContext.LoadFunction( + : _slots[817] = nativeContext.LoadFunction( "SDL_RenderCoordinatesToWindow", "SDL3" ) @@ -87470,9 +88829,9 @@ byte ISdl.RenderDebugText( ) => ( (delegate* unmanaged)( - _slots[811] is not null and var loadedFnPtr + _slots[818] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[811] = nativeContext.LoadFunction("SDL_RenderDebugText", "SDL3") + : _slots[818] = nativeContext.LoadFunction("SDL_RenderDebugText", "SDL3") ) )(renderer, x, y, str); @@ -87518,9 +88877,9 @@ byte ISdl.RenderFillRect( ) => ( (delegate* unmanaged)( - _slots[812] is not null and var loadedFnPtr + _slots[819] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[812] = nativeContext.LoadFunction("SDL_RenderFillRect", "SDL3") + : _slots[819] = nativeContext.LoadFunction("SDL_RenderFillRect", "SDL3") ) )(renderer, rect); @@ -87561,9 +88920,9 @@ int count ) => ( (delegate* unmanaged)( - _slots[813] is not null and var loadedFnPtr + _slots[820] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[813] = nativeContext.LoadFunction("SDL_RenderFillRects", "SDL3") + : _slots[820] = nativeContext.LoadFunction("SDL_RenderFillRects", "SDL3") ) )(renderer, rects, count); @@ -87611,9 +88970,9 @@ int num_indices ) => ( (delegate* unmanaged)( - _slots[814] is not null and var loadedFnPtr + _slots[821] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[814] = nativeContext.LoadFunction("SDL_RenderGeometry", "SDL3") + : _slots[821] = nativeContext.LoadFunction("SDL_RenderGeometry", "SDL3") ) )(renderer, texture, vertices, num_vertices, indices, num_indices); @@ -87699,9 +89058,9 @@ int size_indices int, int, byte>)( - _slots[815] is not null and var loadedFnPtr + _slots[822] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[815] = nativeContext.LoadFunction("SDL_RenderGeometryRaw", "SDL3") + : _slots[822] = nativeContext.LoadFunction("SDL_RenderGeometryRaw", "SDL3") ) )( renderer, @@ -87849,9 +89208,9 @@ float y2 byte ISdl.RenderLineRaw(RendererHandle renderer, float x1, float y1, float x2, float y2) => ( (delegate* unmanaged)( - _slots[816] is not null and var loadedFnPtr + _slots[823] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[816] = nativeContext.LoadFunction("SDL_RenderLine", "SDL3") + : _slots[823] = nativeContext.LoadFunction("SDL_RenderLine", "SDL3") ) )(renderer, x1, y1, x2, y2); @@ -87874,9 +89233,9 @@ int count ) => ( (delegate* unmanaged)( - _slots[817] is not null and var loadedFnPtr + _slots[824] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[817] = nativeContext.LoadFunction("SDL_RenderLines", "SDL3") + : _slots[824] = nativeContext.LoadFunction("SDL_RenderLines", "SDL3") ) )(renderer, points, count); @@ -87927,9 +89286,9 @@ public static MaybeBool RenderPoint(RendererHandle renderer, float x, floa byte ISdl.RenderPointRaw(RendererHandle renderer, float x, float y) => ( (delegate* unmanaged)( - _slots[818] is not null and var loadedFnPtr + _slots[825] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[818] = nativeContext.LoadFunction("SDL_RenderPoint", "SDL3") + : _slots[825] = nativeContext.LoadFunction("SDL_RenderPoint", "SDL3") ) )(renderer, x, y); @@ -87947,9 +89306,9 @@ int count ) => ( (delegate* unmanaged)( - _slots[819] is not null and var loadedFnPtr + _slots[826] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[819] = nativeContext.LoadFunction("SDL_RenderPoints", "SDL3") + : _slots[826] = nativeContext.LoadFunction("SDL_RenderPoints", "SDL3") ) )(renderer, points, count); @@ -88000,9 +89359,9 @@ public static MaybeBool RenderPresent(RendererHandle renderer) => byte ISdl.RenderPresentRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[820] is not null and var loadedFnPtr + _slots[827] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[820] = nativeContext.LoadFunction("SDL_RenderPresent", "SDL3") + : _slots[827] = nativeContext.LoadFunction("SDL_RenderPresent", "SDL3") ) )(renderer); @@ -88019,9 +89378,9 @@ public static byte RenderPresentRaw(RendererHandle renderer) => ) => ( (delegate* unmanaged)( - _slots[821] is not null and var loadedFnPtr + _slots[828] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[821] = nativeContext.LoadFunction("SDL_RenderReadPixels", "SDL3") + : _slots[828] = nativeContext.LoadFunction("SDL_RenderReadPixels", "SDL3") ) )(renderer, rect); @@ -88059,9 +89418,9 @@ byte ISdl.RenderRect( ) => ( (delegate* unmanaged)( - _slots[822] is not null and var loadedFnPtr + _slots[829] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[822] = nativeContext.LoadFunction("SDL_RenderRect", "SDL3") + : _slots[829] = nativeContext.LoadFunction("SDL_RenderRect", "SDL3") ) )(renderer, rect); @@ -88102,9 +89461,9 @@ int count ) => ( (delegate* unmanaged)( - _slots[823] is not null and var loadedFnPtr + _slots[830] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[823] = nativeContext.LoadFunction("SDL_RenderRects", "SDL3") + : _slots[830] = nativeContext.LoadFunction("SDL_RenderRects", "SDL3") ) )(renderer, rects, count); @@ -88149,9 +89508,9 @@ byte ISdl.RenderTexture( ) => ( (delegate* unmanaged)( - _slots[824] is not null and var loadedFnPtr + _slots[831] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[824] = nativeContext.LoadFunction("SDL_RenderTexture", "SDL3") + : _slots[831] = nativeContext.LoadFunction("SDL_RenderTexture", "SDL3") ) )(renderer, texture, srcrect, dstrect); @@ -88223,9 +89582,9 @@ byte ISdl.RenderTexture9Grid( float, FRect*, byte>)( - _slots[825] is not null and var loadedFnPtr + _slots[832] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[825] = nativeContext.LoadFunction("SDL_RenderTexture9Grid", "SDL3") + : _slots[832] = nativeContext.LoadFunction("SDL_RenderTexture9Grid", "SDL3") ) )( renderer, @@ -88325,6 +89684,84 @@ public static MaybeBool RenderTexture9Grid( dstrect ); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RenderTextureAffine( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FPoint *")] FPoint* origin, + [NativeTypeName("const SDL_FPoint *")] FPoint* right, + [NativeTypeName("const SDL_FPoint *")] FPoint* down + ) => + ( + (delegate* unmanaged< + RendererHandle, + Texture*, + FRect*, + FPoint*, + FPoint*, + FPoint*, + byte>)( + _slots[833] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[833] = nativeContext.LoadFunction("SDL_RenderTextureAffine", "SDL3") + ) + )(renderer, texture, srcrect, origin, right, down); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte RenderTextureAffine( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FPoint *")] FPoint* origin, + [NativeTypeName("const SDL_FPoint *")] FPoint* right, + [NativeTypeName("const SDL_FPoint *")] FPoint* down + ) => DllImport.RenderTextureAffine(renderer, texture, srcrect, origin, right, down); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RenderTextureAffine( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FPoint *")] Ref origin, + [NativeTypeName("const SDL_FPoint *")] Ref right, + [NativeTypeName("const SDL_FPoint *")] Ref down + ) + { + fixed (FPoint* __dsl_down = down) + fixed (FPoint* __dsl_right = right) + fixed (FPoint* __dsl_origin = origin) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).RenderTextureAffine( + renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_origin, + __dsl_right, + __dsl_down + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderTextureAffine( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FPoint *")] Ref origin, + [NativeTypeName("const SDL_FPoint *")] Ref right, + [NativeTypeName("const SDL_FPoint *")] Ref down + ) => DllImport.RenderTextureAffine(renderer, texture, srcrect, origin, right, down); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.RenderTextureRotated( RendererHandle renderer, @@ -88345,9 +89782,9 @@ FlipMode flip FPoint*, FlipMode, byte>)( - _slots[826] is not null and var loadedFnPtr + _slots[834] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[826] = nativeContext.LoadFunction("SDL_RenderTextureRotated", "SDL3") + : _slots[834] = nativeContext.LoadFunction("SDL_RenderTextureRotated", "SDL3") ) )(renderer, texture, srcrect, dstrect, angle, center, flip); @@ -88418,9 +89855,9 @@ byte ISdl.RenderTextureTiled( ) => ( (delegate* unmanaged)( - _slots[827] is not null and var loadedFnPtr + _slots[835] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[827] = nativeContext.LoadFunction("SDL_RenderTextureTiled", "SDL3") + : _slots[835] = nativeContext.LoadFunction("SDL_RenderTextureTiled", "SDL3") ) )(renderer, texture, srcrect, scale, dstrect); @@ -88487,9 +89924,9 @@ public static MaybeBool RenderViewportSet(RendererHandle renderer) => byte ISdl.RenderViewportSetRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[828] is not null and var loadedFnPtr + _slots[836] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[828] = nativeContext.LoadFunction("SDL_RenderViewportSet", "SDL3") + : _slots[836] = nativeContext.LoadFunction("SDL_RenderViewportSet", "SDL3") ) )(renderer); @@ -88508,9 +89945,9 @@ int line ) => ( (delegate* unmanaged)( - _slots[829] is not null and var loadedFnPtr + _slots[837] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[829] = nativeContext.LoadFunction("SDL_ReportAssertion", "SDL3") + : _slots[837] = nativeContext.LoadFunction("SDL_ReportAssertion", "SDL3") ) )(data, func, file, line); @@ -88554,9 +89991,9 @@ int line void ISdl.ResetAssertionReport() => ( (delegate* unmanaged)( - _slots[830] is not null and var loadedFnPtr + _slots[838] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[830] = nativeContext.LoadFunction("SDL_ResetAssertionReport", "SDL3") + : _slots[838] = nativeContext.LoadFunction("SDL_ResetAssertionReport", "SDL3") ) )(); @@ -88568,9 +90005,9 @@ _slots[830] is not null and var loadedFnPtr byte ISdl.ResetHint([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[831] is not null and var loadedFnPtr + _slots[839] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[831] = nativeContext.LoadFunction("SDL_ResetHint", "SDL3") + : _slots[839] = nativeContext.LoadFunction("SDL_ResetHint", "SDL3") ) )(name); @@ -88600,9 +90037,9 @@ public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref ( (delegate* unmanaged)( - _slots[832] is not null and var loadedFnPtr + _slots[840] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[832] = nativeContext.LoadFunction("SDL_ResetHints", "SDL3") + : _slots[840] = nativeContext.LoadFunction("SDL_ResetHints", "SDL3") ) )(); @@ -88614,9 +90051,9 @@ _slots[832] is not null and var loadedFnPtr void ISdl.ResetKeyboard() => ( (delegate* unmanaged)( - _slots[833] is not null and var loadedFnPtr + _slots[841] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[833] = nativeContext.LoadFunction("SDL_ResetKeyboard", "SDL3") + : _slots[841] = nativeContext.LoadFunction("SDL_ResetKeyboard", "SDL3") ) )(); @@ -88628,9 +90065,9 @@ _slots[833] is not null and var loadedFnPtr void ISdl.ResetLogPriorities() => ( (delegate* unmanaged)( - _slots[834] is not null and var loadedFnPtr + _slots[842] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[834] = nativeContext.LoadFunction("SDL_ResetLogPriorities", "SDL3") + : _slots[842] = nativeContext.LoadFunction("SDL_ResetLogPriorities", "SDL3") ) )(); @@ -88653,9 +90090,9 @@ public static MaybeBool RestoreWindow(WindowHandle window) => byte ISdl.RestoreWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[835] is not null and var loadedFnPtr + _slots[843] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[835] = nativeContext.LoadFunction("SDL_RestoreWindow", "SDL3") + : _slots[843] = nativeContext.LoadFunction("SDL_RestoreWindow", "SDL3") ) )(window); @@ -88665,32 +90102,32 @@ _slots[835] is not null and var loadedFnPtr public static byte RestoreWindowRaw(WindowHandle window) => DllImport.RestoreWindowRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - (MaybeBool)(byte)((ISdl)this).ResumeAudioDeviceRaw(dev); + MaybeBool ISdl.ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + (MaybeBool)(byte)((ISdl)this).ResumeAudioDeviceRaw(devid); [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static MaybeBool ResumeAudioDevice( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => DllImport.ResumeAudioDevice(dev); + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => DllImport.ResumeAudioDevice(devid); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - byte ISdl.ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + byte ISdl.ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( (delegate* unmanaged)( - _slots[836] is not null and var loadedFnPtr + _slots[844] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[836] = nativeContext.LoadFunction("SDL_ResumeAudioDevice", "SDL3") + : _slots[844] = nativeContext.LoadFunction("SDL_ResumeAudioDevice", "SDL3") ) - )(dev); + )(devid); [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - DllImport.ResumeAudioDeviceRaw(dev); + public static byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.ResumeAudioDeviceRaw(devid); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] MaybeBool ISdl.ResumeAudioStreamDevice(AudioStreamHandle stream) => @@ -88707,9 +90144,9 @@ public static MaybeBool ResumeAudioStreamDevice(AudioStreamHandle stream) byte ISdl.ResumeAudioStreamDeviceRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[837] is not null and var loadedFnPtr + _slots[845] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[837] = nativeContext.LoadFunction( + : _slots[845] = nativeContext.LoadFunction( "SDL_ResumeAudioStreamDevice", "SDL3" ) @@ -88737,9 +90174,9 @@ public static MaybeBool ResumeHaptic(HapticHandle haptic) => byte ISdl.ResumeHapticRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[838] is not null and var loadedFnPtr + _slots[846] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[838] = nativeContext.LoadFunction("SDL_ResumeHaptic", "SDL3") + : _slots[846] = nativeContext.LoadFunction("SDL_ResumeHaptic", "SDL3") ) )(haptic); @@ -88752,9 +90189,9 @@ _slots[838] is not null and var loadedFnPtr double ISdl.Round(double x) => ( (delegate* unmanaged)( - _slots[839] is not null and var loadedFnPtr + _slots[847] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[839] = nativeContext.LoadFunction("SDL_round", "SDL3") + : _slots[847] = nativeContext.LoadFunction("SDL_round", "SDL3") ) )(x); @@ -88766,9 +90203,9 @@ _slots[839] is not null and var loadedFnPtr float ISdl.Roundf(float x) => ( (delegate* unmanaged)( - _slots[840] is not null and var loadedFnPtr + _slots[848] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[840] = nativeContext.LoadFunction("SDL_roundf", "SDL3") + : _slots[848] = nativeContext.LoadFunction("SDL_roundf", "SDL3") ) )(x); @@ -88812,9 +90249,9 @@ byte ISdl.RumbleGamepadRaw( ) => ( (delegate* unmanaged)( - _slots[841] is not null and var loadedFnPtr + _slots[849] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[841] = nativeContext.LoadFunction("SDL_RumbleGamepad", "SDL3") + : _slots[849] = nativeContext.LoadFunction("SDL_RumbleGamepad", "SDL3") ) )(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); @@ -88870,9 +90307,9 @@ byte ISdl.RumbleGamepadTriggersRaw( ) => ( (delegate* unmanaged)( - _slots[842] is not null and var loadedFnPtr + _slots[850] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[842] = nativeContext.LoadFunction("SDL_RumbleGamepadTriggers", "SDL3") + : _slots[850] = nativeContext.LoadFunction("SDL_RumbleGamepadTriggers", "SDL3") ) )(gamepad, left_rumble, right_rumble, duration_ms); @@ -88928,9 +90365,9 @@ byte ISdl.RumbleJoystickRaw( ) => ( (delegate* unmanaged)( - _slots[843] is not null and var loadedFnPtr + _slots[851] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[843] = nativeContext.LoadFunction("SDL_RumbleJoystick", "SDL3") + : _slots[851] = nativeContext.LoadFunction("SDL_RumbleJoystick", "SDL3") ) )(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms); @@ -88986,9 +90423,9 @@ byte ISdl.RumbleJoystickTriggersRaw( ) => ( (delegate* unmanaged)( - _slots[844] is not null and var loadedFnPtr + _slots[852] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[844] = nativeContext.LoadFunction("SDL_RumbleJoystickTriggers", "SDL3") + : _slots[852] = nativeContext.LoadFunction("SDL_RumbleJoystickTriggers", "SDL3") ) )(joystick, left_rumble, right_rumble, duration_ms); @@ -89011,9 +90448,9 @@ int ISdl.RunApp( ) => ( (delegate* unmanaged)( - _slots[845] is not null and var loadedFnPtr + _slots[853] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[845] = nativeContext.LoadFunction("SDL_RunApp", "SDL3") + : _slots[853] = nativeContext.LoadFunction("SDL_RunApp", "SDL3") ) )(argc, argv, mainFunction, reserved); @@ -89076,9 +90513,9 @@ byte ISdl.RunHapticEffectRaw( ) => ( (delegate* unmanaged)( - _slots[846] is not null and var loadedFnPtr + _slots[854] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[846] = nativeContext.LoadFunction("SDL_RunHapticEffect", "SDL3") + : _slots[854] = nativeContext.LoadFunction("SDL_RunHapticEffect", "SDL3") ) )(haptic, effect, iterations); @@ -89091,13 +90528,60 @@ public static byte RunHapticEffectRaw( [NativeTypeName("Uint32")] uint iterations ) => DllImport.RunHapticEffectRaw(haptic, effect, iterations); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + void* userdata, + [NativeTypeName("bool")] byte wait_complete + ) => + ( + (delegate* unmanaged)( + _slots[855] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[855] = nativeContext.LoadFunction("SDL_RunOnMainThread", "SDL3") + ) + )(callback, userdata, wait_complete); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + void* userdata, + [NativeTypeName("bool")] byte wait_complete + ) => DllImport.RunOnMainThread(callback, userdata, wait_complete); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + Ref userdata, + [NativeTypeName("bool")] MaybeBool wait_complete + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (MaybeBool) + (byte)((ISdl)this).RunOnMainThread(callback, __dsl_userdata, (byte)wait_complete); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunOnMainThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RunOnMainThread( + [NativeTypeName("SDL_MainThreadCallback")] MainThreadCallback callback, + Ref userdata, + [NativeTypeName("bool")] MaybeBool wait_complete + ) => DllImport.RunOnMainThread(callback, userdata, wait_complete); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => ( (delegate* unmanaged)( - _slots[847] is not null and var loadedFnPtr + _slots[856] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[847] = nativeContext.LoadFunction("SDL_SaveBMP", "SDL3") + : _slots[856] = nativeContext.LoadFunction("SDL_SaveBMP", "SDL3") ) )(surface, file); @@ -89137,9 +90621,9 @@ byte ISdl.SaveBMPIO( ) => ( (delegate* unmanaged)( - _slots[848] is not null and var loadedFnPtr + _slots[857] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[848] = nativeContext.LoadFunction("SDL_SaveBMP_IO", "SDL3") + : _slots[857] = nativeContext.LoadFunction("SDL_SaveBMP_IO", "SDL3") ) )(surface, dst, closeio); @@ -89175,13 +90659,111 @@ public static MaybeBool SaveBMPIO( [NativeTypeName("bool")] MaybeBool closeio ) => DllImport.SaveBMPIO(surface, dst, closeio); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SaveFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize + ) => + ( + (delegate* unmanaged)( + _slots[858] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[858] = nativeContext.LoadFunction("SDL_SaveFile", "SDL3") + ) + )(file, data, datasize); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SaveFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize + ) => DllImport.SaveFile(file, data, datasize); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SaveFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_file = file) + { + return (MaybeBool)(byte)((ISdl)this).SaveFile(__dsl_file, __dsl_data, datasize); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SaveFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize + ) => DllImport.SaveFile(file, data, datasize); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] byte closeio + ) => + ( + (delegate* unmanaged)( + _slots[859] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[859] = nativeContext.LoadFunction("SDL_SaveFile_IO", "SDL3") + ) + )(src, data, datasize, closeio); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] void* data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] byte closeio + ) => DllImport.SaveFileIO(src, data, datasize, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] MaybeBool closeio + ) + { + fixed (void* __dsl_data = data) + { + return (MaybeBool) + (byte)((ISdl)this).SaveFileIO(src, __dsl_data, datasize, (byte)closeio); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveFile_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SaveFileIO( + IOStreamHandle src, + [NativeTypeName("const void *")] Ref data, + [NativeTypeName("size_t")] nuint datasize, + [NativeTypeName("bool")] MaybeBool closeio + ) => DllImport.SaveFileIO(src, data, datasize, closeio); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] double ISdl.Scalbn(double x, int n) => ( (delegate* unmanaged)( - _slots[849] is not null and var loadedFnPtr + _slots[860] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[849] = nativeContext.LoadFunction("SDL_scalbn", "SDL3") + : _slots[860] = nativeContext.LoadFunction("SDL_scalbn", "SDL3") ) )(x, n); @@ -89193,9 +90775,9 @@ _slots[849] is not null and var loadedFnPtr float ISdl.Scalbnf(float x, int n) => ( (delegate* unmanaged)( - _slots[850] is not null and var loadedFnPtr + _slots[861] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[850] = nativeContext.LoadFunction("SDL_scalbnf", "SDL3") + : _slots[861] = nativeContext.LoadFunction("SDL_scalbnf", "SDL3") ) )(x, n); @@ -89207,9 +90789,9 @@ _slots[850] is not null and var loadedFnPtr Surface* ISdl.ScaleSurface(Surface* surface, int width, int height, ScaleMode scaleMode) => ( (delegate* unmanaged)( - _slots[851] is not null and var loadedFnPtr + _slots[862] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[851] = nativeContext.LoadFunction("SDL_ScaleSurface", "SDL3") + : _slots[862] = nativeContext.LoadFunction("SDL_ScaleSurface", "SDL3") ) )(surface, width, height, scaleMode); @@ -89256,9 +90838,9 @@ public static MaybeBool ScreenKeyboardShown(WindowHandle window) => byte ISdl.ScreenKeyboardShownRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[852] is not null and var loadedFnPtr + _slots[863] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[852] = nativeContext.LoadFunction("SDL_ScreenKeyboardShown", "SDL3") + : _slots[863] = nativeContext.LoadFunction("SDL_ScreenKeyboardShown", "SDL3") ) )(window); @@ -89282,9 +90864,9 @@ MaybeBool ISdl.ScreenSaverEnabled() => byte ISdl.ScreenSaverEnabledRaw() => ( (delegate* unmanaged)( - _slots[853] is not null and var loadedFnPtr + _slots[864] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[853] = nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3") + : _slots[864] = nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3") ) )(); @@ -89301,9 +90883,9 @@ IOWhence whence ) => ( (delegate* unmanaged)( - _slots[854] is not null and var loadedFnPtr + _slots[865] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[854] = nativeContext.LoadFunction("SDL_SeekIO", "SDL3") + : _slots[865] = nativeContext.LoadFunction("SDL_SeekIO", "SDL3") ) )(context, offset, whence); @@ -89324,9 +90906,9 @@ int size ) => ( (delegate* unmanaged)( - _slots[855] is not null and var loadedFnPtr + _slots[866] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[855] = nativeContext.LoadFunction("SDL_SendGamepadEffect", "SDL3") + : _slots[866] = nativeContext.LoadFunction("SDL_SendGamepadEffect", "SDL3") ) )(gamepad, data, size); @@ -89370,9 +90952,9 @@ int size ) => ( (delegate* unmanaged)( - _slots[856] is not null and var loadedFnPtr + _slots[867] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[856] = nativeContext.LoadFunction("SDL_SendJoystickEffect", "SDL3") + : _slots[867] = nativeContext.LoadFunction("SDL_SendJoystickEffect", "SDL3") ) )(joystick, data, size); @@ -89419,9 +91001,9 @@ int num_values ) => ( (delegate* unmanaged)( - _slots[857] is not null and var loadedFnPtr + _slots[868] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[857] = nativeContext.LoadFunction( + : _slots[868] = nativeContext.LoadFunction( "SDL_SendJoystickVirtualSensorData", "SDL3" ) @@ -89484,9 +91066,9 @@ byte ISdl.SetAppMetadata( ) => ( (delegate* unmanaged)( - _slots[858] is not null and var loadedFnPtr + _slots[869] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[858] = nativeContext.LoadFunction("SDL_SetAppMetadata", "SDL3") + : _slots[869] = nativeContext.LoadFunction("SDL_SetAppMetadata", "SDL3") ) )(appname, appversion, appidentifier); @@ -89537,9 +91119,9 @@ byte ISdl.SetAppMetadataProperty( ) => ( (delegate* unmanaged)( - _slots[859] is not null and var loadedFnPtr + _slots[870] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[859] = nativeContext.LoadFunction("SDL_SetAppMetadataProperty", "SDL3") + : _slots[870] = nativeContext.LoadFunction("SDL_SetAppMetadataProperty", "SDL3") ) )(name, value); @@ -89581,9 +91163,9 @@ void ISdl.SetAssertionHandler( ) => ( (delegate* unmanaged)( - _slots[860] is not null and var loadedFnPtr + _slots[871] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[860] = nativeContext.LoadFunction("SDL_SetAssertionHandler", "SDL3") + : _slots[871] = nativeContext.LoadFunction("SDL_SetAssertionHandler", "SDL3") ) )(handler, userdata); @@ -89618,9 +91200,9 @@ Ref userdata int ISdl.SetAtomicInt(AtomicInt* a, int v) => ( (delegate* unmanaged)( - _slots[861] is not null and var loadedFnPtr + _slots[872] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[861] = nativeContext.LoadFunction("SDL_SetAtomicInt", "SDL3") + : _slots[872] = nativeContext.LoadFunction("SDL_SetAtomicInt", "SDL3") ) )(a, v); @@ -89646,9 +91228,9 @@ int ISdl.SetAtomicInt(Ref a, int v) void* ISdl.SetAtomicPointer(void** a, void* v) => ( (delegate* unmanaged)( - _slots[862] is not null and var loadedFnPtr + _slots[873] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[862] = nativeContext.LoadFunction("SDL_SetAtomicPointer", "SDL3") + : _slots[873] = nativeContext.LoadFunction("SDL_SetAtomicPointer", "SDL3") ) )(a, v); @@ -89675,9 +91257,9 @@ Ptr ISdl.SetAtomicPointer(Ref2D a, Ref v) uint ISdl.SetAtomicU32(AtomicU32* a, [NativeTypeName("Uint32")] uint v) => ( (delegate* unmanaged)( - _slots[863] is not null and var loadedFnPtr + _slots[874] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[863] = nativeContext.LoadFunction("SDL_SetAtomicU32", "SDL3") + : _slots[874] = nativeContext.LoadFunction("SDL_SetAtomicU32", "SDL3") ) )(a, v); @@ -89722,9 +91304,9 @@ float gain byte ISdl.SetAudioDeviceGainRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid, float gain) => ( (delegate* unmanaged)( - _slots[864] is not null and var loadedFnPtr + _slots[875] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[864] = nativeContext.LoadFunction("SDL_SetAudioDeviceGain", "SDL3") + : _slots[875] = nativeContext.LoadFunction("SDL_SetAudioDeviceGain", "SDL3") ) )(devid, gain); @@ -89744,9 +91326,9 @@ byte ISdl.SetAudioPostmixCallback( ) => ( (delegate* unmanaged)( - _slots[865] is not null and var loadedFnPtr + _slots[876] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[865] = nativeContext.LoadFunction( + : _slots[876] = nativeContext.LoadFunction( "SDL_SetAudioPostmixCallback", "SDL3" ) @@ -89794,9 +91376,9 @@ byte ISdl.SetAudioStreamFormat( ) => ( (delegate* unmanaged)( - _slots[866] is not null and var loadedFnPtr + _slots[877] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[866] = nativeContext.LoadFunction("SDL_SetAudioStreamFormat", "SDL3") + : _slots[877] = nativeContext.LoadFunction("SDL_SetAudioStreamFormat", "SDL3") ) )(stream, src_spec, dst_spec); @@ -89851,9 +91433,9 @@ float ratio byte ISdl.SetAudioStreamFrequencyRatioRaw(AudioStreamHandle stream, float ratio) => ( (delegate* unmanaged)( - _slots[867] is not null and var loadedFnPtr + _slots[878] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[867] = nativeContext.LoadFunction( + : _slots[878] = nativeContext.LoadFunction( "SDL_SetAudioStreamFrequencyRatio", "SDL3" ) @@ -89881,9 +91463,9 @@ public static MaybeBool SetAudioStreamGain(AudioStreamHandle stream, float byte ISdl.SetAudioStreamGainRaw(AudioStreamHandle stream, float gain) => ( (delegate* unmanaged)( - _slots[868] is not null and var loadedFnPtr + _slots[879] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[868] = nativeContext.LoadFunction("SDL_SetAudioStreamGain", "SDL3") + : _slots[879] = nativeContext.LoadFunction("SDL_SetAudioStreamGain", "SDL3") ) )(stream, gain); @@ -89901,9 +91483,9 @@ byte ISdl.SetAudioStreamGetCallback( ) => ( (delegate* unmanaged)( - _slots[869] is not null and var loadedFnPtr + _slots[880] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[869] = nativeContext.LoadFunction( + : _slots[880] = nativeContext.LoadFunction( "SDL_SetAudioStreamGetCallback", "SDL3" ) @@ -89951,9 +91533,9 @@ int count ) => ( (delegate* unmanaged)( - _slots[870] is not null and var loadedFnPtr + _slots[881] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[870] = nativeContext.LoadFunction( + : _slots[881] = nativeContext.LoadFunction( "SDL_SetAudioStreamInputChannelMap", "SDL3" ) @@ -90001,9 +91583,9 @@ int count ) => ( (delegate* unmanaged)( - _slots[871] is not null and var loadedFnPtr + _slots[882] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[871] = nativeContext.LoadFunction( + : _slots[882] = nativeContext.LoadFunction( "SDL_SetAudioStreamOutputChannelMap", "SDL3" ) @@ -90051,9 +91633,9 @@ byte ISdl.SetAudioStreamPutCallback( ) => ( (delegate* unmanaged)( - _slots[872] is not null and var loadedFnPtr + _slots[883] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[872] = nativeContext.LoadFunction( + : _slots[883] = nativeContext.LoadFunction( "SDL_SetAudioStreamPutCallback", "SDL3" ) @@ -90101,9 +91683,9 @@ byte ISdl.SetBooleanProperty( ) => ( (delegate* unmanaged)( - _slots[873] is not null and var loadedFnPtr + _slots[884] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[873] = nativeContext.LoadFunction("SDL_SetBooleanProperty", "SDL3") + : _slots[884] = nativeContext.LoadFunction("SDL_SetBooleanProperty", "SDL3") ) )(props, name, value); @@ -90156,9 +91738,9 @@ byte ISdl.SetClipboardData( sbyte**, nuint, byte>)( - _slots[874] is not null and var loadedFnPtr + _slots[885] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[874] = nativeContext.LoadFunction("SDL_SetClipboardData", "SDL3") + : _slots[885] = nativeContext.LoadFunction("SDL_SetClipboardData", "SDL3") ) )(callback, cleanup, userdata, mime_types, num_mime_types); @@ -90213,9 +91795,9 @@ public static MaybeBool SetClipboardData( byte ISdl.SetClipboardText([NativeTypeName("const char *")] sbyte* text) => ( (delegate* unmanaged)( - _slots[875] is not null and var loadedFnPtr + _slots[886] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[875] = nativeContext.LoadFunction("SDL_SetClipboardText", "SDL3") + : _slots[886] = nativeContext.LoadFunction("SDL_SetClipboardText", "SDL3") ) )(text); @@ -90257,9 +91839,9 @@ public static MaybeBool SetCurrentThreadPriority(ThreadPriority priority) byte ISdl.SetCurrentThreadPriorityRaw(ThreadPriority priority) => ( (delegate* unmanaged)( - _slots[876] is not null and var loadedFnPtr + _slots[887] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[876] = nativeContext.LoadFunction( + : _slots[887] = nativeContext.LoadFunction( "SDL_SetCurrentThreadPriority", "SDL3" ) @@ -90286,9 +91868,9 @@ MaybeBool ISdl.SetCursor(CursorHandle cursor) => byte ISdl.SetCursorRaw(CursorHandle cursor) => ( (delegate* unmanaged)( - _slots[877] is not null and var loadedFnPtr + _slots[888] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[877] = nativeContext.LoadFunction("SDL_SetCursor", "SDL3") + : _slots[888] = nativeContext.LoadFunction("SDL_SetCursor", "SDL3") ) )(cursor); @@ -90305,9 +91887,9 @@ int overwrite ) => ( (delegate* unmanaged)( - _slots[878] is not null and var loadedFnPtr + _slots[889] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[878] = nativeContext.LoadFunction("SDL_setenv_unsafe", "SDL3") + : _slots[889] = nativeContext.LoadFunction("SDL_setenv_unsafe", "SDL3") ) )(name, value, overwrite); @@ -90351,9 +91933,9 @@ byte ISdl.SetEnvironmentVariable( ) => ( (delegate* unmanaged)( - _slots[879] is not null and var loadedFnPtr + _slots[890] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[879] = nativeContext.LoadFunction("SDL_SetEnvironmentVariable", "SDL3") + : _slots[890] = nativeContext.LoadFunction("SDL_SetEnvironmentVariable", "SDL3") ) )(env, name, value, overwrite); @@ -90407,9 +91989,9 @@ byte ISdl.SetErrorV( ) => ( (delegate* unmanaged)( - _slots[880] is not null and var loadedFnPtr + _slots[891] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[880] = nativeContext.LoadFunction("SDL_SetErrorV", "SDL3") + : _slots[891] = nativeContext.LoadFunction("SDL_SetErrorV", "SDL3") ) )(fmt, ap); @@ -90450,9 +92032,9 @@ void ISdl.SetEventEnabled( ) => ( (delegate* unmanaged)( - _slots[881] is not null and var loadedFnPtr + _slots[892] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[881] = nativeContext.LoadFunction("SDL_SetEventEnabled", "SDL3") + : _slots[892] = nativeContext.LoadFunction("SDL_SetEventEnabled", "SDL3") ) )(type, enabled); @@ -90484,9 +92066,9 @@ void ISdl.SetEventFilter( ) => ( (delegate* unmanaged)( - _slots[882] is not null and var loadedFnPtr + _slots[893] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[882] = nativeContext.LoadFunction("SDL_SetEventFilter", "SDL3") + : _slots[893] = nativeContext.LoadFunction("SDL_SetEventFilter", "SDL3") ) )(filter, userdata); @@ -90522,9 +92104,9 @@ float value ) => ( (delegate* unmanaged)( - _slots[883] is not null and var loadedFnPtr + _slots[894] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[883] = nativeContext.LoadFunction("SDL_SetFloatProperty", "SDL3") + : _slots[894] = nativeContext.LoadFunction("SDL_SetFloatProperty", "SDL3") ) )(props, name, value); @@ -90564,9 +92146,9 @@ float value void ISdl.SetGamepadEventsEnabled([NativeTypeName("bool")] byte enabled) => ( (delegate* unmanaged)( - _slots[884] is not null and var loadedFnPtr + _slots[895] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[884] = nativeContext.LoadFunction( + : _slots[895] = nativeContext.LoadFunction( "SDL_SetGamepadEventsEnabled", "SDL3" ) @@ -90616,9 +92198,9 @@ byte ISdl.SetGamepadLEDRaw( ) => ( (delegate* unmanaged)( - _slots[885] is not null and var loadedFnPtr + _slots[896] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[885] = nativeContext.LoadFunction("SDL_SetGamepadLED", "SDL3") + : _slots[896] = nativeContext.LoadFunction("SDL_SetGamepadLED", "SDL3") ) )(gamepad, red, green, blue); @@ -90639,9 +92221,9 @@ byte ISdl.SetGamepadMapping( ) => ( (delegate* unmanaged)( - _slots[886] is not null and var loadedFnPtr + _slots[897] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[886] = nativeContext.LoadFunction("SDL_SetGamepadMapping", "SDL3") + : _slots[897] = nativeContext.LoadFunction("SDL_SetGamepadMapping", "SDL3") ) )(instance_id, mapping); @@ -90690,9 +92272,9 @@ public static MaybeBool SetGamepadPlayerIndex(GamepadHandle gamepad, int p byte ISdl.SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index) => ( (delegate* unmanaged)( - _slots[887] is not null and var loadedFnPtr + _slots[898] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[887] = nativeContext.LoadFunction("SDL_SetGamepadPlayerIndex", "SDL3") + : _slots[898] = nativeContext.LoadFunction("SDL_SetGamepadPlayerIndex", "SDL3") ) )(gamepad, player_index); @@ -90710,9 +92292,9 @@ byte ISdl.SetGamepadSensorEnabled( ) => ( (delegate* unmanaged)( - _slots[888] is not null and var loadedFnPtr + _slots[899] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[888] = nativeContext.LoadFunction( + : _slots[899] = nativeContext.LoadFunction( "SDL_SetGamepadSensorEnabled", "SDL3" ) @@ -90745,13 +92327,54 @@ public static MaybeBool SetGamepadSensorEnabled( [NativeTypeName("bool")] MaybeBool enabled ) => DllImport.SetGamepadSensorEnabled(gamepad, type, enabled); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetGPUAllowedFramesInFlight( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => + (MaybeBool) + (byte)((ISdl)this).SetGPUAllowedFramesInFlightRaw(device, allowed_frames_in_flight); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetGPUAllowedFramesInFlight( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => DllImport.SetGPUAllowedFramesInFlight(device, allowed_frames_in_flight); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetGPUAllowedFramesInFlightRaw( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => + ( + (delegate* unmanaged)( + _slots[900] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[900] = nativeContext.LoadFunction( + "SDL_SetGPUAllowedFramesInFlight", + "SDL3" + ) + ) + )(device, allowed_frames_in_flight); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUAllowedFramesInFlight")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetGPUAllowedFramesInFlightRaw( + GPUDeviceHandle device, + [NativeTypeName("Uint32")] uint allowed_frames_in_flight + ) => DllImport.SetGPUAllowedFramesInFlightRaw(device, allowed_frames_in_flight); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetGPUBlendConstants(GPURenderPassHandle render_pass, FColor blend_constants) => ( (delegate* unmanaged)( - _slots[889] is not null and var loadedFnPtr + _slots[901] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[889] = nativeContext.LoadFunction("SDL_SetGPUBlendConstants", "SDL3") + : _slots[901] = nativeContext.LoadFunction("SDL_SetGPUBlendConstants", "SDL3") ) )(render_pass, blend_constants); @@ -90770,9 +92393,9 @@ void ISdl.SetGPUBufferName( ) => ( (delegate* unmanaged)( - _slots[890] is not null and var loadedFnPtr + _slots[902] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[890] = nativeContext.LoadFunction("SDL_SetGPUBufferName", "SDL3") + : _slots[902] = nativeContext.LoadFunction("SDL_SetGPUBufferName", "SDL3") ) )(device, buffer, text); @@ -90813,9 +92436,9 @@ void ISdl.SetGPUScissor( ) => ( (delegate* unmanaged)( - _slots[891] is not null and var loadedFnPtr + _slots[903] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[891] = nativeContext.LoadFunction("SDL_SetGPUScissor", "SDL3") + : _slots[903] = nativeContext.LoadFunction("SDL_SetGPUScissor", "SDL3") ) )(render_pass, scissor); @@ -90853,9 +92476,9 @@ void ISdl.SetGPUStencilReference( ) => ( (delegate* unmanaged)( - _slots[892] is not null and var loadedFnPtr + _slots[904] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[892] = nativeContext.LoadFunction("SDL_SetGPUStencilReference", "SDL3") + : _slots[904] = nativeContext.LoadFunction("SDL_SetGPUStencilReference", "SDL3") ) )(render_pass, reference); @@ -90907,9 +92530,9 @@ GPUPresentMode present_mode GPUSwapchainComposition, GPUPresentMode, byte>)( - _slots[893] is not null and var loadedFnPtr + _slots[905] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[893] = nativeContext.LoadFunction( + : _slots[905] = nativeContext.LoadFunction( "SDL_SetGPUSwapchainParameters", "SDL3" ) @@ -90935,9 +92558,9 @@ void ISdl.SetGPUTextureName( ) => ( (delegate* unmanaged)( - _slots[894] is not null and var loadedFnPtr + _slots[906] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[894] = nativeContext.LoadFunction("SDL_SetGPUTextureName", "SDL3") + : _slots[906] = nativeContext.LoadFunction("SDL_SetGPUTextureName", "SDL3") ) )(device, texture, text); @@ -90978,9 +92601,9 @@ void ISdl.SetGPUViewport( ) => ( (delegate* unmanaged)( - _slots[895] is not null and var loadedFnPtr + _slots[907] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[895] = nativeContext.LoadFunction("SDL_SetGPUViewport", "SDL3") + : _slots[907] = nativeContext.LoadFunction("SDL_SetGPUViewport", "SDL3") ) )(render_pass, viewport); @@ -91026,9 +92649,9 @@ public static MaybeBool SetHapticAutocenter(HapticHandle haptic, int autoc byte ISdl.SetHapticAutocenterRaw(HapticHandle haptic, int autocenter) => ( (delegate* unmanaged)( - _slots[896] is not null and var loadedFnPtr + _slots[908] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[896] = nativeContext.LoadFunction("SDL_SetHapticAutocenter", "SDL3") + : _slots[908] = nativeContext.LoadFunction("SDL_SetHapticAutocenter", "SDL3") ) )(haptic, autocenter); @@ -91053,9 +92676,9 @@ public static MaybeBool SetHapticGain(HapticHandle haptic, int gain) => byte ISdl.SetHapticGainRaw(HapticHandle haptic, int gain) => ( (delegate* unmanaged)( - _slots[897] is not null and var loadedFnPtr + _slots[909] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[897] = nativeContext.LoadFunction("SDL_SetHapticGain", "SDL3") + : _slots[909] = nativeContext.LoadFunction("SDL_SetHapticGain", "SDL3") ) )(haptic, gain); @@ -91072,9 +92695,9 @@ byte ISdl.SetHint( ) => ( (delegate* unmanaged)( - _slots[898] is not null and var loadedFnPtr + _slots[910] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[898] = nativeContext.LoadFunction("SDL_SetHint", "SDL3") + : _slots[910] = nativeContext.LoadFunction("SDL_SetHint", "SDL3") ) )(name, value); @@ -91116,9 +92739,9 @@ HintPriority priority ) => ( (delegate* unmanaged)( - _slots[899] is not null and var loadedFnPtr + _slots[911] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[899] = nativeContext.LoadFunction("SDL_SetHintWithPriority", "SDL3") + : _slots[911] = nativeContext.LoadFunction("SDL_SetHintWithPriority", "SDL3") ) )(name, value, priority); @@ -91160,9 +92783,9 @@ HintPriority priority void ISdl.SetInitialized(InitState* state, [NativeTypeName("bool")] byte initialized) => ( (delegate* unmanaged)( - _slots[900] is not null and var loadedFnPtr + _slots[912] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[900] = nativeContext.LoadFunction("SDL_SetInitialized", "SDL3") + : _slots[912] = nativeContext.LoadFunction("SDL_SetInitialized", "SDL3") ) )(state, initialized); @@ -91197,9 +92820,9 @@ public static void SetInitialized( void ISdl.SetJoystickEventsEnabled([NativeTypeName("bool")] byte enabled) => ( (delegate* unmanaged)( - _slots[901] is not null and var loadedFnPtr + _slots[913] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[901] = nativeContext.LoadFunction( + : _slots[913] = nativeContext.LoadFunction( "SDL_SetJoystickEventsEnabled", "SDL3" ) @@ -91249,9 +92872,9 @@ byte ISdl.SetJoystickLEDRaw( ) => ( (delegate* unmanaged)( - _slots[902] is not null and var loadedFnPtr + _slots[914] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[902] = nativeContext.LoadFunction("SDL_SetJoystickLED", "SDL3") + : _slots[914] = nativeContext.LoadFunction("SDL_SetJoystickLED", "SDL3") ) )(joystick, red, green, blue); @@ -91282,9 +92905,9 @@ int player_index byte ISdl.SetJoystickPlayerIndexRaw(JoystickHandle joystick, int player_index) => ( (delegate* unmanaged)( - _slots[903] is not null and var loadedFnPtr + _slots[915] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[903] = nativeContext.LoadFunction("SDL_SetJoystickPlayerIndex", "SDL3") + : _slots[915] = nativeContext.LoadFunction("SDL_SetJoystickPlayerIndex", "SDL3") ) )(joystick, player_index); @@ -91319,9 +92942,9 @@ byte ISdl.SetJoystickVirtualAxisRaw( ) => ( (delegate* unmanaged)( - _slots[904] is not null and var loadedFnPtr + _slots[916] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[904] = nativeContext.LoadFunction("SDL_SetJoystickVirtualAxis", "SDL3") + : _slots[916] = nativeContext.LoadFunction("SDL_SetJoystickVirtualAxis", "SDL3") ) )(joystick, axis, value); @@ -91362,9 +92985,9 @@ byte ISdl.SetJoystickVirtualBallRaw( ) => ( (delegate* unmanaged)( - _slots[905] is not null and var loadedFnPtr + _slots[917] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[905] = nativeContext.LoadFunction("SDL_SetJoystickVirtualBall", "SDL3") + : _slots[917] = nativeContext.LoadFunction("SDL_SetJoystickVirtualBall", "SDL3") ) )(joystick, ball, xrel, yrel); @@ -91386,9 +93009,9 @@ byte ISdl.SetJoystickVirtualButton( ) => ( (delegate* unmanaged)( - _slots[906] is not null and var loadedFnPtr + _slots[918] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[906] = nativeContext.LoadFunction( + : _slots[918] = nativeContext.LoadFunction( "SDL_SetJoystickVirtualButton", "SDL3" ) @@ -91446,9 +93069,9 @@ byte ISdl.SetJoystickVirtualHatRaw( ) => ( (delegate* unmanaged)( - _slots[907] is not null and var loadedFnPtr + _slots[919] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[907] = nativeContext.LoadFunction("SDL_SetJoystickVirtualHat", "SDL3") + : _slots[919] = nativeContext.LoadFunction("SDL_SetJoystickVirtualHat", "SDL3") ) )(joystick, hat, value); @@ -91473,9 +93096,9 @@ float pressure ) => ( (delegate* unmanaged)( - _slots[908] is not null and var loadedFnPtr + _slots[920] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[908] = nativeContext.LoadFunction( + : _slots[920] = nativeContext.LoadFunction( "SDL_SetJoystickVirtualTouchpad", "SDL3" ) @@ -91538,9 +93161,9 @@ void ISdl.SetLogOutputFunction( ) => ( (delegate* unmanaged)( - _slots[909] is not null and var loadedFnPtr + _slots[921] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[909] = nativeContext.LoadFunction("SDL_SetLogOutputFunction", "SDL3") + : _slots[921] = nativeContext.LoadFunction("SDL_SetLogOutputFunction", "SDL3") ) )(callback, userdata); @@ -91575,9 +93198,9 @@ Ref userdata void ISdl.SetLogPriorities(LogPriority priority) => ( (delegate* unmanaged)( - _slots[910] is not null and var loadedFnPtr + _slots[922] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[910] = nativeContext.LoadFunction("SDL_SetLogPriorities", "SDL3") + : _slots[922] = nativeContext.LoadFunction("SDL_SetLogPriorities", "SDL3") ) )(priority); @@ -91590,9 +93213,9 @@ public static void SetLogPriorities(LogPriority priority) => void ISdl.SetLogPriority(int category, LogPriority priority) => ( (delegate* unmanaged)( - _slots[911] is not null and var loadedFnPtr + _slots[923] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[911] = nativeContext.LoadFunction("SDL_SetLogPriority", "SDL3") + : _slots[923] = nativeContext.LoadFunction("SDL_SetLogPriority", "SDL3") ) )(category, priority); @@ -91608,9 +93231,9 @@ byte ISdl.SetLogPriorityPrefix( ) => ( (delegate* unmanaged)( - _slots[912] is not null and var loadedFnPtr + _slots[924] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[912] = nativeContext.LoadFunction("SDL_SetLogPriorityPrefix", "SDL3") + : _slots[924] = nativeContext.LoadFunction("SDL_SetLogPriorityPrefix", "SDL3") ) )(priority, prefix); @@ -91647,9 +93270,9 @@ public static MaybeBool SetLogPriorityPrefix( void ISdl.SetMainReady() => ( (delegate* unmanaged)( - _slots[913] is not null and var loadedFnPtr + _slots[925] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[913] = nativeContext.LoadFunction("SDL_SetMainReady", "SDL3") + : _slots[925] = nativeContext.LoadFunction("SDL_SetMainReady", "SDL3") ) )(); @@ -91693,9 +93316,9 @@ byte ISdl.SetMemoryFunctionsRaw( ) => ( (delegate* unmanaged)( - _slots[914] is not null and var loadedFnPtr + _slots[926] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[914] = nativeContext.LoadFunction("SDL_SetMemoryFunctions", "SDL3") + : _slots[926] = nativeContext.LoadFunction("SDL_SetMemoryFunctions", "SDL3") ) )(malloc_func, calloc_func, realloc_func, free_func); @@ -91713,9 +93336,9 @@ public static byte SetMemoryFunctionsRaw( void ISdl.SetModState([NativeTypeName("SDL_Keymod")] ushort modstate) => ( (delegate* unmanaged)( - _slots[915] is not null and var loadedFnPtr + _slots[927] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[915] = nativeContext.LoadFunction("SDL_SetModState", "SDL3") + : _slots[927] = nativeContext.LoadFunction("SDL_SetModState", "SDL3") ) )(modstate); @@ -91732,9 +93355,9 @@ byte ISdl.SetNumberProperty( ) => ( (delegate* unmanaged)( - _slots[916] is not null and var loadedFnPtr + _slots[928] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[916] = nativeContext.LoadFunction("SDL_SetNumberProperty", "SDL3") + : _slots[928] = nativeContext.LoadFunction("SDL_SetNumberProperty", "SDL3") ) )(props, name, value); @@ -91779,9 +93402,9 @@ int ncolors ) => ( (delegate* unmanaged)( - _slots[917] is not null and var loadedFnPtr + _slots[929] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[917] = nativeContext.LoadFunction("SDL_SetPaletteColors", "SDL3") + : _slots[929] = nativeContext.LoadFunction("SDL_SetPaletteColors", "SDL3") ) )(palette, colors, firstcolor, ncolors); @@ -91831,9 +93454,9 @@ byte ISdl.SetPointerProperty( ) => ( (delegate* unmanaged)( - _slots[918] is not null and var loadedFnPtr + _slots[930] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[918] = nativeContext.LoadFunction("SDL_SetPointerProperty", "SDL3") + : _slots[930] = nativeContext.LoadFunction("SDL_SetPointerProperty", "SDL3") ) )(props, name, value); @@ -91881,9 +93504,9 @@ byte ISdl.SetPointerPropertyWithCleanup( ) => ( (delegate* unmanaged)( - _slots[919] is not null and var loadedFnPtr + _slots[931] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[919] = nativeContext.LoadFunction( + : _slots[931] = nativeContext.LoadFunction( "SDL_SetPointerPropertyWithCleanup", "SDL3" ) @@ -91942,9 +93565,9 @@ Ref userdata byte ISdl.SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => ( (delegate* unmanaged)( - _slots[920] is not null and var loadedFnPtr + _slots[932] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[920] = nativeContext.LoadFunction( + : _slots[932] = nativeContext.LoadFunction( "SDL_SetPrimarySelectionText", "SDL3" ) @@ -91981,9 +93604,9 @@ byte ISdl.SetRenderClipRect( ) => ( (delegate* unmanaged)( - _slots[921] is not null and var loadedFnPtr + _slots[933] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[921] = nativeContext.LoadFunction("SDL_SetRenderClipRect", "SDL3") + : _slots[933] = nativeContext.LoadFunction("SDL_SetRenderClipRect", "SDL3") ) )(renderer, rect); @@ -92031,9 +93654,9 @@ public static MaybeBool SetRenderColorScale(RendererHandle renderer, float byte ISdl.SetRenderColorScaleRaw(RendererHandle renderer, float scale) => ( (delegate* unmanaged)( - _slots[922] is not null and var loadedFnPtr + _slots[934] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[922] = nativeContext.LoadFunction("SDL_SetRenderColorScale", "SDL3") + : _slots[934] = nativeContext.LoadFunction("SDL_SetRenderColorScale", "SDL3") ) )(renderer, scale); @@ -92065,9 +93688,9 @@ byte ISdl.SetRenderDrawBlendModeRaw( ) => ( (delegate* unmanaged)( - _slots[923] is not null and var loadedFnPtr + _slots[935] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[923] = nativeContext.LoadFunction("SDL_SetRenderDrawBlendMode", "SDL3") + : _slots[935] = nativeContext.LoadFunction("SDL_SetRenderDrawBlendMode", "SDL3") ) )(renderer, blendMode); @@ -92131,9 +93754,9 @@ float a ) => ( (delegate* unmanaged)( - _slots[925] is not null and var loadedFnPtr + _slots[937] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[925] = nativeContext.LoadFunction( + : _slots[937] = nativeContext.LoadFunction( "SDL_SetRenderDrawColorFloat", "SDL3" ) @@ -92161,9 +93784,9 @@ byte ISdl.SetRenderDrawColorRaw( ) => ( (delegate* unmanaged)( - _slots[924] is not null and var loadedFnPtr + _slots[936] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[924] = nativeContext.LoadFunction("SDL_SetRenderDrawColor", "SDL3") + : _slots[936] = nativeContext.LoadFunction("SDL_SetRenderDrawColor", "SDL3") ) )(renderer, r, g, b, a); @@ -92206,9 +93829,9 @@ RendererLogicalPresentation mode ) => ( (delegate* unmanaged)( - _slots[926] is not null and var loadedFnPtr + _slots[938] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[926] = nativeContext.LoadFunction( + : _slots[938] = nativeContext.LoadFunction( "SDL_SetRenderLogicalPresentation", "SDL3" ) @@ -92243,9 +93866,9 @@ float scaleY byte ISdl.SetRenderScaleRaw(RendererHandle renderer, float scaleX, float scaleY) => ( (delegate* unmanaged)( - _slots[927] is not null and var loadedFnPtr + _slots[939] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[927] = nativeContext.LoadFunction("SDL_SetRenderScale", "SDL3") + : _slots[939] = nativeContext.LoadFunction("SDL_SetRenderScale", "SDL3") ) )(renderer, scaleX, scaleY); @@ -92259,9 +93882,9 @@ public static byte SetRenderScaleRaw(RendererHandle renderer, float scaleX, floa byte ISdl.SetRenderTarget(RendererHandle renderer, Texture* texture) => ( (delegate* unmanaged)( - _slots[928] is not null and var loadedFnPtr + _slots[940] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[928] = nativeContext.LoadFunction("SDL_SetRenderTarget", "SDL3") + : _slots[940] = nativeContext.LoadFunction("SDL_SetRenderTarget", "SDL3") ) )(renderer, texture); @@ -92294,9 +93917,9 @@ byte ISdl.SetRenderViewport( ) => ( (delegate* unmanaged)( - _slots[929] is not null and var loadedFnPtr + _slots[941] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[929] = nativeContext.LoadFunction("SDL_SetRenderViewport", "SDL3") + : _slots[941] = nativeContext.LoadFunction("SDL_SetRenderViewport", "SDL3") ) )(renderer, rect); @@ -92344,9 +93967,9 @@ public static MaybeBool SetRenderVSync(RendererHandle renderer, int vsync) byte ISdl.SetRenderVSyncRaw(RendererHandle renderer, int vsync) => ( (delegate* unmanaged)( - _slots[930] is not null and var loadedFnPtr + _slots[942] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[930] = nativeContext.LoadFunction("SDL_SetRenderVSync", "SDL3") + : _slots[942] = nativeContext.LoadFunction("SDL_SetRenderVSync", "SDL3") ) )(renderer, vsync); @@ -92360,9 +93983,9 @@ public static byte SetRenderVSyncRaw(RendererHandle renderer, int vsync) => byte ISdl.SetScancodeName(Scancode scancode, [NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[931] is not null and var loadedFnPtr + _slots[943] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[931] = nativeContext.LoadFunction("SDL_SetScancodeName", "SDL3") + : _slots[943] = nativeContext.LoadFunction("SDL_SetScancodeName", "SDL3") ) )(scancode, name); @@ -92403,9 +94026,9 @@ byte ISdl.SetStringProperty( ) => ( (delegate* unmanaged)( - _slots[932] is not null and var loadedFnPtr + _slots[944] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[932] = nativeContext.LoadFunction("SDL_SetStringProperty", "SDL3") + : _slots[944] = nativeContext.LoadFunction("SDL_SetStringProperty", "SDL3") ) )(props, name, value); @@ -92447,9 +94070,9 @@ public static MaybeBool SetStringProperty( byte ISdl.SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => ( (delegate* unmanaged)( - _slots[933] is not null and var loadedFnPtr + _slots[945] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[933] = nativeContext.LoadFunction("SDL_SetSurfaceAlphaMod", "SDL3") + : _slots[945] = nativeContext.LoadFunction("SDL_SetSurfaceAlphaMod", "SDL3") ) )(surface, alpha); @@ -92487,9 +94110,9 @@ byte ISdl.SetSurfaceBlendMode( ) => ( (delegate* unmanaged)( - _slots[934] is not null and var loadedFnPtr + _slots[946] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[934] = nativeContext.LoadFunction("SDL_SetSurfaceBlendMode", "SDL3") + : _slots[946] = nativeContext.LoadFunction("SDL_SetSurfaceBlendMode", "SDL3") ) )(surface, blendMode); @@ -92530,9 +94153,9 @@ byte ISdl.SetSurfaceClipRect( ) => ( (delegate* unmanaged)( - _slots[935] is not null and var loadedFnPtr + _slots[947] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[935] = nativeContext.LoadFunction("SDL_SetSurfaceClipRect", "SDL3") + : _slots[947] = nativeContext.LoadFunction("SDL_SetSurfaceClipRect", "SDL3") ) )(surface, rect); @@ -92575,9 +94198,9 @@ byte ISdl.SetSurfaceColorKey( ) => ( (delegate* unmanaged)( - _slots[936] is not null and var loadedFnPtr + _slots[948] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[936] = nativeContext.LoadFunction("SDL_SetSurfaceColorKey", "SDL3") + : _slots[948] = nativeContext.LoadFunction("SDL_SetSurfaceColorKey", "SDL3") ) )(surface, enabled, key); @@ -92623,9 +94246,9 @@ byte ISdl.SetSurfaceColorMod( ) => ( (delegate* unmanaged)( - _slots[937] is not null and var loadedFnPtr + _slots[949] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[937] = nativeContext.LoadFunction("SDL_SetSurfaceColorMod", "SDL3") + : _slots[949] = nativeContext.LoadFunction("SDL_SetSurfaceColorMod", "SDL3") ) )(surface, r, g, b); @@ -92668,9 +94291,9 @@ public static MaybeBool SetSurfaceColorMod( byte ISdl.SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => ( (delegate* unmanaged)( - _slots[938] is not null and var loadedFnPtr + _slots[950] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[938] = nativeContext.LoadFunction("SDL_SetSurfaceColorspace", "SDL3") + : _slots[950] = nativeContext.LoadFunction("SDL_SetSurfaceColorspace", "SDL3") ) )(surface, colorspace); @@ -92703,9 +94326,9 @@ Colorspace colorspace byte ISdl.SetSurfacePalette(Surface* surface, Palette* palette) => ( (delegate* unmanaged)( - _slots[939] is not null and var loadedFnPtr + _slots[951] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[939] = nativeContext.LoadFunction("SDL_SetSurfacePalette", "SDL3") + : _slots[951] = nativeContext.LoadFunction("SDL_SetSurfacePalette", "SDL3") ) )(surface, palette); @@ -92737,9 +94360,9 @@ public static MaybeBool SetSurfacePalette(Ref surface, Ref ( (delegate* unmanaged)( - _slots[940] is not null and var loadedFnPtr + _slots[952] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[940] = nativeContext.LoadFunction("SDL_SetSurfaceRLE", "SDL3") + : _slots[952] = nativeContext.LoadFunction("SDL_SetSurfaceRLE", "SDL3") ) )(surface, enabled); @@ -92778,9 +94401,9 @@ int cursor ) => ( (delegate* unmanaged)( - _slots[941] is not null and var loadedFnPtr + _slots[953] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[941] = nativeContext.LoadFunction("SDL_SetTextInputArea", "SDL3") + : _slots[953] = nativeContext.LoadFunction("SDL_SetTextInputArea", "SDL3") ) )(window, rect, cursor); @@ -92820,9 +94443,9 @@ int cursor byte ISdl.SetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8")] byte alpha) => ( (delegate* unmanaged)( - _slots[942] is not null and var loadedFnPtr + _slots[954] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[942] = nativeContext.LoadFunction("SDL_SetTextureAlphaMod", "SDL3") + : _slots[954] = nativeContext.LoadFunction("SDL_SetTextureAlphaMod", "SDL3") ) )(texture, alpha); @@ -92857,9 +94480,9 @@ public static MaybeBool SetTextureAlphaMod( byte ISdl.SetTextureAlphaModFloat(Texture* texture, float alpha) => ( (delegate* unmanaged)( - _slots[943] is not null and var loadedFnPtr + _slots[955] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[943] = nativeContext.LoadFunction( + : _slots[955] = nativeContext.LoadFunction( "SDL_SetTextureAlphaModFloat", "SDL3" ) @@ -92896,9 +94519,9 @@ byte ISdl.SetTextureBlendMode( ) => ( (delegate* unmanaged)( - _slots[944] is not null and var loadedFnPtr + _slots[956] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[944] = nativeContext.LoadFunction("SDL_SetTextureBlendMode", "SDL3") + : _slots[956] = nativeContext.LoadFunction("SDL_SetTextureBlendMode", "SDL3") ) )(texture, blendMode); @@ -92941,9 +94564,9 @@ byte ISdl.SetTextureColorMod( ) => ( (delegate* unmanaged)( - _slots[945] is not null and var loadedFnPtr + _slots[957] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[945] = nativeContext.LoadFunction("SDL_SetTextureColorMod", "SDL3") + : _slots[957] = nativeContext.LoadFunction("SDL_SetTextureColorMod", "SDL3") ) )(texture, r, g, b); @@ -92986,9 +94609,9 @@ public static MaybeBool SetTextureColorMod( byte ISdl.SetTextureColorModFloat(Texture* texture, float r, float g, float b) => ( (delegate* unmanaged)( - _slots[946] is not null and var loadedFnPtr + _slots[958] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[946] = nativeContext.LoadFunction( + : _slots[958] = nativeContext.LoadFunction( "SDL_SetTextureColorModFloat", "SDL3" ) @@ -93026,9 +94649,9 @@ float b byte ISdl.SetTextureScaleMode(Texture* texture, ScaleMode scaleMode) => ( (delegate* unmanaged)( - _slots[947] is not null and var loadedFnPtr + _slots[959] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[947] = nativeContext.LoadFunction("SDL_SetTextureScaleMode", "SDL3") + : _slots[959] = nativeContext.LoadFunction("SDL_SetTextureScaleMode", "SDL3") ) )(texture, scaleMode); @@ -93063,9 +94686,9 @@ byte ISdl.SetTLS( ) => ( (delegate* unmanaged)( - _slots[948] is not null and var loadedFnPtr + _slots[960] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[948] = nativeContext.LoadFunction("SDL_SetTLS", "SDL3") + : _slots[960] = nativeContext.LoadFunction("SDL_SetTLS", "SDL3") ) )(id, value, destructor); @@ -93106,9 +94729,9 @@ public static MaybeBool SetTLS( byte ISdl.SetWindowAlwaysOnTop(WindowHandle window, [NativeTypeName("bool")] byte on_top) => ( (delegate* unmanaged)( - _slots[949] is not null and var loadedFnPtr + _slots[961] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[949] = nativeContext.LoadFunction("SDL_SetWindowAlwaysOnTop", "SDL3") + : _slots[961] = nativeContext.LoadFunction("SDL_SetWindowAlwaysOnTop", "SDL3") ) )(window, on_top); @@ -93157,9 +94780,9 @@ float max_aspect byte ISdl.SetWindowAspectRatioRaw(WindowHandle window, float min_aspect, float max_aspect) => ( (delegate* unmanaged)( - _slots[950] is not null and var loadedFnPtr + _slots[962] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[950] = nativeContext.LoadFunction("SDL_SetWindowAspectRatio", "SDL3") + : _slots[962] = nativeContext.LoadFunction("SDL_SetWindowAspectRatio", "SDL3") ) )(window, min_aspect, max_aspect); @@ -93176,9 +94799,9 @@ float max_aspect byte ISdl.SetWindowBordered(WindowHandle window, [NativeTypeName("bool")] byte bordered) => ( (delegate* unmanaged)( - _slots[951] is not null and var loadedFnPtr + _slots[963] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[951] = nativeContext.LoadFunction("SDL_SetWindowBordered", "SDL3") + : _slots[963] = nativeContext.LoadFunction("SDL_SetWindowBordered", "SDL3") ) )(window, bordered); @@ -93209,9 +94832,9 @@ public static MaybeBool SetWindowBordered( byte ISdl.SetWindowFocusable(WindowHandle window, [NativeTypeName("bool")] byte focusable) => ( (delegate* unmanaged)( - _slots[952] is not null and var loadedFnPtr + _slots[964] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[952] = nativeContext.LoadFunction("SDL_SetWindowFocusable", "SDL3") + : _slots[964] = nativeContext.LoadFunction("SDL_SetWindowFocusable", "SDL3") ) )(window, focusable); @@ -93242,9 +94865,9 @@ public static MaybeBool SetWindowFocusable( byte ISdl.SetWindowFullscreen(WindowHandle window, [NativeTypeName("bool")] byte fullscreen) => ( (delegate* unmanaged)( - _slots[953] is not null and var loadedFnPtr + _slots[965] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[953] = nativeContext.LoadFunction("SDL_SetWindowFullscreen", "SDL3") + : _slots[965] = nativeContext.LoadFunction("SDL_SetWindowFullscreen", "SDL3") ) )(window, fullscreen); @@ -93278,9 +94901,9 @@ byte ISdl.SetWindowFullscreenMode( ) => ( (delegate* unmanaged)( - _slots[954] is not null and var loadedFnPtr + _slots[966] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[954] = nativeContext.LoadFunction( + : _slots[966] = nativeContext.LoadFunction( "SDL_SetWindowFullscreenMode", "SDL3" ) @@ -93324,9 +94947,9 @@ byte ISdl.SetWindowHitTest( ) => ( (delegate* unmanaged)( - _slots[955] is not null and var loadedFnPtr + _slots[967] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[955] = nativeContext.LoadFunction("SDL_SetWindowHitTest", "SDL3") + : _slots[967] = nativeContext.LoadFunction("SDL_SetWindowHitTest", "SDL3") ) )(window, callback, callback_data); @@ -93367,9 +94990,9 @@ Ref callback_data byte ISdl.SetWindowIcon(WindowHandle window, Surface* icon) => ( (delegate* unmanaged)( - _slots[956] is not null and var loadedFnPtr + _slots[968] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[956] = nativeContext.LoadFunction("SDL_SetWindowIcon", "SDL3") + : _slots[968] = nativeContext.LoadFunction("SDL_SetWindowIcon", "SDL3") ) )(window, icon); @@ -93399,9 +95022,9 @@ public static MaybeBool SetWindowIcon(WindowHandle window, Ref ic byte ISdl.SetWindowKeyboardGrab(WindowHandle window, [NativeTypeName("bool")] byte grabbed) => ( (delegate* unmanaged)( - _slots[957] is not null and var loadedFnPtr + _slots[969] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[957] = nativeContext.LoadFunction("SDL_SetWindowKeyboardGrab", "SDL3") + : _slots[969] = nativeContext.LoadFunction("SDL_SetWindowKeyboardGrab", "SDL3") ) )(window, grabbed); @@ -93443,9 +95066,9 @@ public static MaybeBool SetWindowMaximumSize(WindowHandle window, int max_ byte ISdl.SetWindowMaximumSizeRaw(WindowHandle window, int max_w, int max_h) => ( (delegate* unmanaged)( - _slots[958] is not null and var loadedFnPtr + _slots[970] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[958] = nativeContext.LoadFunction("SDL_SetWindowMaximumSize", "SDL3") + : _slots[970] = nativeContext.LoadFunction("SDL_SetWindowMaximumSize", "SDL3") ) )(window, max_w, max_h); @@ -93470,9 +95093,9 @@ public static MaybeBool SetWindowMinimumSize(WindowHandle window, int min_ byte ISdl.SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int min_h) => ( (delegate* unmanaged)( - _slots[959] is not null and var loadedFnPtr + _slots[971] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[959] = nativeContext.LoadFunction("SDL_SetWindowMinimumSize", "SDL3") + : _slots[971] = nativeContext.LoadFunction("SDL_SetWindowMinimumSize", "SDL3") ) )(window, min_w, min_h); @@ -93486,9 +95109,9 @@ public static byte SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int m byte ISdl.SetWindowModal(WindowHandle window, [NativeTypeName("bool")] byte modal) => ( (delegate* unmanaged)( - _slots[960] is not null and var loadedFnPtr + _slots[972] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[960] = nativeContext.LoadFunction("SDL_SetWindowModal", "SDL3") + : _slots[972] = nativeContext.LoadFunction("SDL_SetWindowModal", "SDL3") ) )(window, modal); @@ -93517,9 +95140,9 @@ public static MaybeBool SetWindowModal( byte ISdl.SetWindowMouseGrab(WindowHandle window, [NativeTypeName("bool")] byte grabbed) => ( (delegate* unmanaged)( - _slots[961] is not null and var loadedFnPtr + _slots[973] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[961] = nativeContext.LoadFunction("SDL_SetWindowMouseGrab", "SDL3") + : _slots[973] = nativeContext.LoadFunction("SDL_SetWindowMouseGrab", "SDL3") ) )(window, grabbed); @@ -93553,9 +95176,9 @@ byte ISdl.SetWindowMouseRect( ) => ( (delegate* unmanaged)( - _slots[962] is not null and var loadedFnPtr + _slots[974] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[962] = nativeContext.LoadFunction("SDL_SetWindowMouseRect", "SDL3") + : _slots[974] = nativeContext.LoadFunction("SDL_SetWindowMouseRect", "SDL3") ) )(window, rect); @@ -93603,9 +95226,9 @@ public static MaybeBool SetWindowOpacity(WindowHandle window, float opacit byte ISdl.SetWindowOpacityRaw(WindowHandle window, float opacity) => ( (delegate* unmanaged)( - _slots[963] is not null and var loadedFnPtr + _slots[975] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[963] = nativeContext.LoadFunction("SDL_SetWindowOpacity", "SDL3") + : _slots[975] = nativeContext.LoadFunction("SDL_SetWindowOpacity", "SDL3") ) )(window, opacity); @@ -93630,9 +95253,9 @@ public static MaybeBool SetWindowParent(WindowHandle window, WindowHandle byte ISdl.SetWindowParentRaw(WindowHandle window, WindowHandle parent) => ( (delegate* unmanaged)( - _slots[964] is not null and var loadedFnPtr + _slots[976] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[964] = nativeContext.LoadFunction("SDL_SetWindowParent", "SDL3") + : _slots[976] = nativeContext.LoadFunction("SDL_SetWindowParent", "SDL3") ) )(window, parent); @@ -93657,9 +95280,9 @@ public static MaybeBool SetWindowPosition(WindowHandle window, int x, int byte ISdl.SetWindowPositionRaw(WindowHandle window, int x, int y) => ( (delegate* unmanaged)( - _slots[965] is not null and var loadedFnPtr + _slots[977] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[965] = nativeContext.LoadFunction("SDL_SetWindowPosition", "SDL3") + : _slots[977] = nativeContext.LoadFunction("SDL_SetWindowPosition", "SDL3") ) )(window, x, y); @@ -93676,9 +95299,9 @@ byte ISdl.SetWindowRelativeMouseMode( ) => ( (delegate* unmanaged)( - _slots[966] is not null and var loadedFnPtr + _slots[978] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[966] = nativeContext.LoadFunction( + : _slots[978] = nativeContext.LoadFunction( "SDL_SetWindowRelativeMouseMode", "SDL3" ) @@ -93712,9 +95335,9 @@ public static MaybeBool SetWindowRelativeMouseMode( byte ISdl.SetWindowResizable(WindowHandle window, [NativeTypeName("bool")] byte resizable) => ( (delegate* unmanaged)( - _slots[967] is not null and var loadedFnPtr + _slots[979] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[967] = nativeContext.LoadFunction("SDL_SetWindowResizable", "SDL3") + : _slots[979] = nativeContext.LoadFunction("SDL_SetWindowResizable", "SDL3") ) )(window, resizable); @@ -93745,9 +95368,9 @@ public static MaybeBool SetWindowResizable( byte ISdl.SetWindowShape(WindowHandle window, Surface* shape) => ( (delegate* unmanaged)( - _slots[968] is not null and var loadedFnPtr + _slots[980] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[968] = nativeContext.LoadFunction("SDL_SetWindowShape", "SDL3") + : _slots[980] = nativeContext.LoadFunction("SDL_SetWindowShape", "SDL3") ) )(window, shape); @@ -93788,9 +95411,9 @@ public static MaybeBool SetWindowSize(WindowHandle window, int w, int h) = byte ISdl.SetWindowSizeRaw(WindowHandle window, int w, int h) => ( (delegate* unmanaged)( - _slots[969] is not null and var loadedFnPtr + _slots[981] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[969] = nativeContext.LoadFunction("SDL_SetWindowSize", "SDL3") + : _slots[981] = nativeContext.LoadFunction("SDL_SetWindowSize", "SDL3") ) )(window, w, h); @@ -93815,9 +95438,9 @@ public static MaybeBool SetWindowSurfaceVSync(WindowHandle window, int vsy byte ISdl.SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync) => ( (delegate* unmanaged)( - _slots[970] is not null and var loadedFnPtr + _slots[982] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[970] = nativeContext.LoadFunction("SDL_SetWindowSurfaceVSync", "SDL3") + : _slots[982] = nativeContext.LoadFunction("SDL_SetWindowSurfaceVSync", "SDL3") ) )(window, vsync); @@ -93831,9 +95454,9 @@ public static byte SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync) => byte ISdl.SetWindowTitle(WindowHandle window, [NativeTypeName("const char *")] sbyte* title) => ( (delegate* unmanaged)( - _slots[971] is not null and var loadedFnPtr + _slots[983] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[971] = nativeContext.LoadFunction("SDL_SetWindowTitle", "SDL3") + : _slots[983] = nativeContext.LoadFunction("SDL_SetWindowTitle", "SDL3") ) )(window, title); @@ -93870,9 +95493,9 @@ public static MaybeBool SetWindowTitle( byte ISdl.ShouldInit(InitState* state) => ( (delegate* unmanaged)( - _slots[972] is not null and var loadedFnPtr + _slots[984] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[972] = nativeContext.LoadFunction("SDL_ShouldInit", "SDL3") + : _slots[984] = nativeContext.LoadFunction("SDL_ShouldInit", "SDL3") ) )(state); @@ -93900,9 +95523,9 @@ MaybeBool ISdl.ShouldInit(Ref state) byte ISdl.ShouldQuit(InitState* state) => ( (delegate* unmanaged)( - _slots[973] is not null and var loadedFnPtr + _slots[985] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[973] = nativeContext.LoadFunction("SDL_ShouldQuit", "SDL3") + : _slots[985] = nativeContext.LoadFunction("SDL_ShouldQuit", "SDL3") ) )(state); @@ -93939,9 +95562,9 @@ MaybeBool ISdl.ShouldQuit(Ref state) byte ISdl.ShowCursorRaw() => ( (delegate* unmanaged)( - _slots[974] is not null and var loadedFnPtr + _slots[986] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[974] = nativeContext.LoadFunction("SDL_ShowCursor", "SDL3") + : _slots[986] = nativeContext.LoadFunction("SDL_ShowCursor", "SDL3") ) )(); @@ -93950,6 +95573,57 @@ _slots[974] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static byte ShowCursorRaw() => DllImport.ShowCursorRaw(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + void* userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => + ( + (delegate* unmanaged)( + _slots[987] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[987] = nativeContext.LoadFunction( + "SDL_ShowFileDialogWithProperties", + "SDL3" + ) + ) + )(type, callback, userdata, props); + + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + void* userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.ShowFileDialogWithProperties(type, callback, userdata, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + Ref userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).ShowFileDialogWithProperties(type, callback, __dsl_userdata, props); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowFileDialogWithProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ShowFileDialogWithProperties( + FileDialogType type, + [NativeTypeName("SDL_DialogFileCallback")] DialogFileCallback callback, + Ref userdata, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.ShowFileDialogWithProperties(type, callback, userdata, props); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, @@ -93957,9 +95631,9 @@ byte ISdl.ShowMessageBox( ) => ( (delegate* unmanaged)( - _slots[975] is not null and var loadedFnPtr + _slots[988] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[975] = nativeContext.LoadFunction("SDL_ShowMessageBox", "SDL3") + : _slots[988] = nativeContext.LoadFunction("SDL_ShowMessageBox", "SDL3") ) )(messageboxdata, buttonid); @@ -94014,9 +95688,9 @@ void ISdl.ShowOpenFileDialog( sbyte*, byte, void>)( - _slots[976] is not null and var loadedFnPtr + _slots[989] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[976] = nativeContext.LoadFunction("SDL_ShowOpenFileDialog", "SDL3") + : _slots[989] = nativeContext.LoadFunction("SDL_ShowOpenFileDialog", "SDL3") ) )(callback, userdata, window, filters, nfilters, default_location, allow_many); @@ -94100,9 +95774,9 @@ void ISdl.ShowOpenFolderDialog( ) => ( (delegate* unmanaged)( - _slots[977] is not null and var loadedFnPtr + _slots[990] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[977] = nativeContext.LoadFunction("SDL_ShowOpenFolderDialog", "SDL3") + : _slots[990] = nativeContext.LoadFunction("SDL_ShowOpenFolderDialog", "SDL3") ) )(callback, userdata, window, default_location, allow_many); @@ -94167,9 +95841,9 @@ void ISdl.ShowSaveFileDialog( int, sbyte*, void>)( - _slots[978] is not null and var loadedFnPtr + _slots[991] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[978] = nativeContext.LoadFunction("SDL_ShowSaveFileDialog", "SDL3") + : _slots[991] = nativeContext.LoadFunction("SDL_ShowSaveFileDialog", "SDL3") ) )(callback, userdata, window, filters, nfilters, default_location); @@ -94246,9 +95920,9 @@ WindowHandle window ) => ( (delegate* unmanaged)( - _slots[979] is not null and var loadedFnPtr + _slots[992] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[979] = nativeContext.LoadFunction("SDL_ShowSimpleMessageBox", "SDL3") + : _slots[992] = nativeContext.LoadFunction("SDL_ShowSimpleMessageBox", "SDL3") ) )(flags, title, message, window); @@ -94303,9 +95977,9 @@ MaybeBool ISdl.ShowWindow(WindowHandle window) => byte ISdl.ShowWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[980] is not null and var loadedFnPtr + _slots[993] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[980] = nativeContext.LoadFunction("SDL_ShowWindow", "SDL3") + : _slots[993] = nativeContext.LoadFunction("SDL_ShowWindow", "SDL3") ) )(window); @@ -94329,9 +96003,9 @@ public static MaybeBool ShowWindowSystemMenu(WindowHandle window, int x, i byte ISdl.ShowWindowSystemMenuRaw(WindowHandle window, int x, int y) => ( (delegate* unmanaged)( - _slots[981] is not null and var loadedFnPtr + _slots[994] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[981] = nativeContext.LoadFunction("SDL_ShowWindowSystemMenu", "SDL3") + : _slots[994] = nativeContext.LoadFunction("SDL_ShowWindowSystemMenu", "SDL3") ) )(window, x, y); @@ -94345,9 +96019,9 @@ public static byte ShowWindowSystemMenuRaw(WindowHandle window, int x, int y) => void ISdl.SignalCondition(ConditionHandle cond) => ( (delegate* unmanaged)( - _slots[982] is not null and var loadedFnPtr + _slots[995] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[982] = nativeContext.LoadFunction("SDL_SignalCondition", "SDL3") + : _slots[995] = nativeContext.LoadFunction("SDL_SignalCondition", "SDL3") ) )(cond); @@ -94359,9 +96033,9 @@ _slots[982] is not null and var loadedFnPtr void ISdl.SignalSemaphore(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[983] is not null and var loadedFnPtr + _slots[996] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[983] = nativeContext.LoadFunction("SDL_SignalSemaphore", "SDL3") + : _slots[996] = nativeContext.LoadFunction("SDL_SignalSemaphore", "SDL3") ) )(sem); @@ -94373,9 +96047,9 @@ _slots[983] is not null and var loadedFnPtr double ISdl.Sin(double x) => ( (delegate* unmanaged)( - _slots[984] is not null and var loadedFnPtr + _slots[997] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[984] = nativeContext.LoadFunction("SDL_sin", "SDL3") + : _slots[997] = nativeContext.LoadFunction("SDL_sin", "SDL3") ) )(x); @@ -94387,9 +96061,9 @@ _slots[984] is not null and var loadedFnPtr float ISdl.Sinf(float x) => ( (delegate* unmanaged)( - _slots[985] is not null and var loadedFnPtr + _slots[998] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[985] = nativeContext.LoadFunction("SDL_sinf", "SDL3") + : _slots[998] = nativeContext.LoadFunction("SDL_sinf", "SDL3") ) )(x); @@ -94401,9 +96075,9 @@ _slots[985] is not null and var loadedFnPtr double ISdl.Sqrt(double x) => ( (delegate* unmanaged)( - _slots[986] is not null and var loadedFnPtr + _slots[999] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[986] = nativeContext.LoadFunction("SDL_sqrt", "SDL3") + : _slots[999] = nativeContext.LoadFunction("SDL_sqrt", "SDL3") ) )(x); @@ -94415,9 +96089,9 @@ _slots[986] is not null and var loadedFnPtr float ISdl.Sqrtf(float x) => ( (delegate* unmanaged)( - _slots[987] is not null and var loadedFnPtr + _slots[1000] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[987] = nativeContext.LoadFunction("SDL_sqrtf", "SDL3") + : _slots[1000] = nativeContext.LoadFunction("SDL_sqrtf", "SDL3") ) )(x); @@ -94429,9 +96103,9 @@ _slots[987] is not null and var loadedFnPtr void ISdl.Srand([NativeTypeName("Uint64")] ulong seed) => ( (delegate* unmanaged)( - _slots[988] is not null and var loadedFnPtr + _slots[1001] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[988] = nativeContext.LoadFunction("SDL_srand", "SDL3") + : _slots[1001] = nativeContext.LoadFunction("SDL_srand", "SDL3") ) )(seed); @@ -94454,9 +96128,9 @@ public static MaybeBool StartTextInput(WindowHandle window) => byte ISdl.StartTextInputRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[989] is not null and var loadedFnPtr + _slots[1002] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[989] = nativeContext.LoadFunction("SDL_StartTextInput", "SDL3") + : _slots[1002] = nativeContext.LoadFunction("SDL_StartTextInput", "SDL3") ) )(window); @@ -94488,9 +96162,9 @@ byte ISdl.StartTextInputWithPropertiesRaw( ) => ( (delegate* unmanaged)( - _slots[990] is not null and var loadedFnPtr + _slots[1003] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[990] = nativeContext.LoadFunction( + : _slots[1003] = nativeContext.LoadFunction( "SDL_StartTextInputWithProperties", "SDL3" ) @@ -94512,9 +96186,9 @@ uint ISdl.StepBackUTF8( ) => ( (delegate* unmanaged)( - _slots[991] is not null and var loadedFnPtr + _slots[1004] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[991] = nativeContext.LoadFunction("SDL_StepBackUTF8", "SDL3") + : _slots[1004] = nativeContext.LoadFunction("SDL_StepBackUTF8", "SDL3") ) )(start, pstr); @@ -94555,9 +96229,9 @@ uint ISdl.StepUTF8( ) => ( (delegate* unmanaged)( - _slots[992] is not null and var loadedFnPtr + _slots[1005] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[992] = nativeContext.LoadFunction("SDL_StepUTF8", "SDL3") + : _slots[1005] = nativeContext.LoadFunction("SDL_StepUTF8", "SDL3") ) )(pstr, pslen); @@ -94606,9 +96280,9 @@ public static MaybeBool StopHapticEffect(HapticHandle haptic, int effect) byte ISdl.StopHapticEffectRaw(HapticHandle haptic, int effect) => ( (delegate* unmanaged)( - _slots[993] is not null and var loadedFnPtr + _slots[1006] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[993] = nativeContext.LoadFunction("SDL_StopHapticEffect", "SDL3") + : _slots[1006] = nativeContext.LoadFunction("SDL_StopHapticEffect", "SDL3") ) )(haptic, effect); @@ -94633,9 +96307,9 @@ public static MaybeBool StopHapticEffects(HapticHandle haptic) => byte ISdl.StopHapticEffectsRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[994] is not null and var loadedFnPtr + _slots[1007] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[994] = nativeContext.LoadFunction("SDL_StopHapticEffects", "SDL3") + : _slots[1007] = nativeContext.LoadFunction("SDL_StopHapticEffects", "SDL3") ) )(haptic); @@ -94660,9 +96334,9 @@ public static MaybeBool StopHapticRumble(HapticHandle haptic) => byte ISdl.StopHapticRumbleRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[995] is not null and var loadedFnPtr + _slots[1008] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[995] = nativeContext.LoadFunction("SDL_StopHapticRumble", "SDL3") + : _slots[1008] = nativeContext.LoadFunction("SDL_StopHapticRumble", "SDL3") ) )(haptic); @@ -94687,9 +96361,9 @@ public static MaybeBool StopTextInput(WindowHandle window) => byte ISdl.StopTextInputRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[996] is not null and var loadedFnPtr + _slots[1009] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[996] = nativeContext.LoadFunction("SDL_StopTextInput", "SDL3") + : _slots[1009] = nativeContext.LoadFunction("SDL_StopTextInput", "SDL3") ) )(window); @@ -94713,9 +96387,9 @@ public static MaybeBool StorageReady(StorageHandle storage) => byte ISdl.StorageReadyRaw(StorageHandle storage) => ( (delegate* unmanaged)( - _slots[997] is not null and var loadedFnPtr + _slots[1010] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[997] = nativeContext.LoadFunction("SDL_StorageReady", "SDL3") + : _slots[1010] = nativeContext.LoadFunction("SDL_StorageReady", "SDL3") ) )(storage); @@ -94731,9 +96405,9 @@ int ISdl.Strcasecmp( ) => ( (delegate* unmanaged)( - _slots[998] is not null and var loadedFnPtr + _slots[1011] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[998] = nativeContext.LoadFunction("SDL_strcasecmp", "SDL3") + : _slots[1011] = nativeContext.LoadFunction("SDL_strcasecmp", "SDL3") ) )(str1, str2); @@ -94772,9 +96446,9 @@ public static int Strcasecmp( ) => ( (delegate* unmanaged)( - _slots[999] is not null and var loadedFnPtr + _slots[1012] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[999] = nativeContext.LoadFunction("SDL_strcasestr", "SDL3") + : _slots[1012] = nativeContext.LoadFunction("SDL_strcasestr", "SDL3") ) )(haystack, needle); @@ -94812,9 +96486,9 @@ public static Ptr Strcasestr( sbyte* ISdl.Strchr([NativeTypeName("const char *")] sbyte* str, int c) => ( (delegate* unmanaged)( - _slots[1000] is not null and var loadedFnPtr + _slots[1013] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1000] = nativeContext.LoadFunction("SDL_strchr", "SDL3") + : _slots[1013] = nativeContext.LoadFunction("SDL_strchr", "SDL3") ) )(str, c); @@ -94847,9 +96521,9 @@ int ISdl.Strcmp( ) => ( (delegate* unmanaged)( - _slots[1001] is not null and var loadedFnPtr + _slots[1014] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1001] = nativeContext.LoadFunction("SDL_strcmp", "SDL3") + : _slots[1014] = nativeContext.LoadFunction("SDL_strcmp", "SDL3") ) )(str1, str2); @@ -94885,9 +96559,9 @@ public static int Strcmp( sbyte* ISdl.Strdup([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[1002] is not null and var loadedFnPtr + _slots[1015] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1002] = nativeContext.LoadFunction("SDL_strdup", "SDL3") + : _slots[1015] = nativeContext.LoadFunction("SDL_strdup", "SDL3") ) )(str); @@ -94913,13 +96587,78 @@ Ptr ISdl.Strdup([NativeTypeName("const char *")] Ref str) public static Ptr Strdup([NativeTypeName("const char *")] Ref str) => DllImport.Strdup(str); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.StretchSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => + ( + (delegate* unmanaged)( + _slots[1016] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1016] = nativeContext.LoadFunction("SDL_StretchSurface", "SDL3") + ) + )(src, srcrect, dst, dstrect, scaleMode); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte StretchSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => DllImport.StretchSurface(src, srcrect, dst, dstrect, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.StretchSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte) + ((ISdl)this).StretchSurface( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StretchSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool StretchSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ) => DllImport.StretchSurface(src, srcrect, dst, dstrect, scaleMode); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Guid ISdl.StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID) => ( (delegate* unmanaged)( - _slots[1003] is not null and var loadedFnPtr + _slots[1017] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1003] = nativeContext.LoadFunction("SDL_StringToGUID", "SDL3") + : _slots[1017] = nativeContext.LoadFunction("SDL_StringToGUID", "SDL3") ) )(pchGUID); @@ -94951,9 +96690,9 @@ nuint ISdl.Strlcat( ) => ( (delegate* unmanaged)( - _slots[1004] is not null and var loadedFnPtr + _slots[1018] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1004] = nativeContext.LoadFunction("SDL_strlcat", "SDL3") + : _slots[1018] = nativeContext.LoadFunction("SDL_strlcat", "SDL3") ) )(dst, src, maxlen); @@ -94998,9 +96737,9 @@ nuint ISdl.Strlcpy( ) => ( (delegate* unmanaged)( - _slots[1005] is not null and var loadedFnPtr + _slots[1019] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1005] = nativeContext.LoadFunction("SDL_strlcpy", "SDL3") + : _slots[1019] = nativeContext.LoadFunction("SDL_strlcpy", "SDL3") ) )(dst, src, maxlen); @@ -95041,9 +96780,9 @@ public static nuint Strlcpy( nuint ISdl.Strlen([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[1006] is not null and var loadedFnPtr + _slots[1020] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1006] = nativeContext.LoadFunction("SDL_strlen", "SDL3") + : _slots[1020] = nativeContext.LoadFunction("SDL_strlen", "SDL3") ) )(str); @@ -95073,9 +96812,9 @@ public static nuint Strlen([NativeTypeName("const char *")] Ref str) => sbyte* ISdl.Strlwr([NativeTypeName("char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[1007] is not null and var loadedFnPtr + _slots[1021] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1007] = nativeContext.LoadFunction("SDL_strlwr", "SDL3") + : _slots[1021] = nativeContext.LoadFunction("SDL_strlwr", "SDL3") ) )(str); @@ -95108,9 +96847,9 @@ int ISdl.Strncasecmp( ) => ( (delegate* unmanaged)( - _slots[1008] is not null and var loadedFnPtr + _slots[1022] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1008] = nativeContext.LoadFunction("SDL_strncasecmp", "SDL3") + : _slots[1022] = nativeContext.LoadFunction("SDL_strncasecmp", "SDL3") ) )(str1, str2, maxlen); @@ -95153,9 +96892,9 @@ int ISdl.Strncmp( ) => ( (delegate* unmanaged)( - _slots[1009] is not null and var loadedFnPtr + _slots[1023] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1009] = nativeContext.LoadFunction("SDL_strncmp", "SDL3") + : _slots[1023] = nativeContext.LoadFunction("SDL_strncmp", "SDL3") ) )(str1, str2, maxlen); @@ -95197,9 +96936,9 @@ public static int Strncmp( ) => ( (delegate* unmanaged)( - _slots[1010] is not null and var loadedFnPtr + _slots[1024] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1010] = nativeContext.LoadFunction("SDL_strndup", "SDL3") + : _slots[1024] = nativeContext.LoadFunction("SDL_strndup", "SDL3") ) )(str, maxlen); @@ -95239,9 +96978,9 @@ nuint ISdl.Strnlen( ) => ( (delegate* unmanaged)( - _slots[1011] is not null and var loadedFnPtr + _slots[1025] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1011] = nativeContext.LoadFunction("SDL_strnlen", "SDL3") + : _slots[1025] = nativeContext.LoadFunction("SDL_strnlen", "SDL3") ) )(str, maxlen); @@ -95282,9 +97021,9 @@ public static nuint Strnlen( ) => ( (delegate* unmanaged)( - _slots[1012] is not null and var loadedFnPtr + _slots[1026] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1012] = nativeContext.LoadFunction("SDL_strnstr", "SDL3") + : _slots[1026] = nativeContext.LoadFunction("SDL_strnstr", "SDL3") ) )(haystack, needle, maxlen); @@ -95328,9 +97067,9 @@ public static Ptr Strnstr( ) => ( (delegate* unmanaged)( - _slots[1013] is not null and var loadedFnPtr + _slots[1027] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1013] = nativeContext.LoadFunction("SDL_strpbrk", "SDL3") + : _slots[1027] = nativeContext.LoadFunction("SDL_strpbrk", "SDL3") ) )(str, breakset); @@ -95368,9 +97107,9 @@ public static Ptr Strpbrk( sbyte* ISdl.Strrchr([NativeTypeName("const char *")] sbyte* str, int c) => ( (delegate* unmanaged)( - _slots[1014] is not null and var loadedFnPtr + _slots[1028] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1014] = nativeContext.LoadFunction("SDL_strrchr", "SDL3") + : _slots[1028] = nativeContext.LoadFunction("SDL_strrchr", "SDL3") ) )(str, c); @@ -95400,9 +97139,9 @@ public static Ptr Strrchr([NativeTypeName("const char *")] Ref str sbyte* ISdl.Strrev([NativeTypeName("char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[1015] is not null and var loadedFnPtr + _slots[1029] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1015] = nativeContext.LoadFunction("SDL_strrev", "SDL3") + : _slots[1029] = nativeContext.LoadFunction("SDL_strrev", "SDL3") ) )(str); @@ -95434,9 +97173,9 @@ public static Ptr Strrev([NativeTypeName("char *")] Ref str) => ) => ( (delegate* unmanaged)( - _slots[1016] is not null and var loadedFnPtr + _slots[1030] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1016] = nativeContext.LoadFunction("SDL_strstr", "SDL3") + : _slots[1030] = nativeContext.LoadFunction("SDL_strstr", "SDL3") ) )(haystack, needle); @@ -95477,9 +97216,9 @@ double ISdl.Strtod( ) => ( (delegate* unmanaged)( - _slots[1017] is not null and var loadedFnPtr + _slots[1031] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1017] = nativeContext.LoadFunction("SDL_strtod", "SDL3") + : _slots[1031] = nativeContext.LoadFunction("SDL_strtod", "SDL3") ) )(str, endp); @@ -95513,39 +97252,39 @@ public static double Strtod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.StrtokR( - [NativeTypeName("char *")] sbyte* s1, - [NativeTypeName("const char *")] sbyte* s2, + [NativeTypeName("char *")] sbyte* str, + [NativeTypeName("const char *")] sbyte* delim, [NativeTypeName("char **")] sbyte** saveptr ) => ( (delegate* unmanaged)( - _slots[1018] is not null and var loadedFnPtr + _slots[1032] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1018] = nativeContext.LoadFunction("SDL_strtok_r", "SDL3") + : _slots[1032] = nativeContext.LoadFunction("SDL_strtok_r", "SDL3") ) - )(s1, s2, saveptr); + )(str, delim, saveptr); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_strtok_r")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static sbyte* StrtokR( - [NativeTypeName("char *")] sbyte* s1, - [NativeTypeName("const char *")] sbyte* s2, + [NativeTypeName("char *")] sbyte* str, + [NativeTypeName("const char *")] sbyte* delim, [NativeTypeName("char **")] sbyte** saveptr - ) => DllImport.StrtokR(s1, s2, saveptr); + ) => DllImport.StrtokR(str, delim, saveptr); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.StrtokR( - [NativeTypeName("char *")] Ref s1, - [NativeTypeName("const char *")] Ref s2, + [NativeTypeName("char *")] Ref str, + [NativeTypeName("const char *")] Ref delim, [NativeTypeName("char **")] Ref2D saveptr ) { fixed (sbyte** __dsl_saveptr = saveptr) - fixed (sbyte* __dsl_s2 = s2) - fixed (sbyte* __dsl_s1 = s1) + fixed (sbyte* __dsl_delim = delim) + fixed (sbyte* __dsl_str = str) { - return (sbyte*)((ISdl)this).StrtokR(__dsl_s1, __dsl_s2, __dsl_saveptr); + return (sbyte*)((ISdl)this).StrtokR(__dsl_str, __dsl_delim, __dsl_saveptr); } } @@ -95554,10 +97293,10 @@ Ptr ISdl.StrtokR( [NativeFunction("SDL3", EntryPoint = "SDL_strtok_r")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static Ptr StrtokR( - [NativeTypeName("char *")] Ref s1, - [NativeTypeName("const char *")] Ref s2, + [NativeTypeName("char *")] Ref str, + [NativeTypeName("const char *")] Ref delim, [NativeTypeName("char **")] Ref2D saveptr - ) => DllImport.StrtokR(s1, s2, saveptr); + ) => DllImport.StrtokR(str, delim, saveptr); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] nint ISdl.Strtol( @@ -95567,9 +97306,9 @@ int @base ) => ( (delegate* unmanaged)( - _slots[1019] is not null and var loadedFnPtr + _slots[1033] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1019] = nativeContext.LoadFunction("SDL_strtol", "SDL3") + : _slots[1033] = nativeContext.LoadFunction("SDL_strtol", "SDL3") ) )(str, endp, @base); @@ -95614,9 +97353,9 @@ int @base ) => ( (delegate* unmanaged)( - _slots[1020] is not null and var loadedFnPtr + _slots[1034] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1020] = nativeContext.LoadFunction("SDL_strtoll", "SDL3") + : _slots[1034] = nativeContext.LoadFunction("SDL_strtoll", "SDL3") ) )(str, endp, @base); @@ -95661,9 +97400,9 @@ int @base ) => ( (delegate* unmanaged)( - _slots[1021] is not null and var loadedFnPtr + _slots[1035] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1021] = nativeContext.LoadFunction("SDL_strtoul", "SDL3") + : _slots[1035] = nativeContext.LoadFunction("SDL_strtoul", "SDL3") ) )(str, endp, @base); @@ -95708,9 +97447,9 @@ int @base ) => ( (delegate* unmanaged)( - _slots[1022] is not null and var loadedFnPtr + _slots[1036] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1022] = nativeContext.LoadFunction("SDL_strtoull", "SDL3") + : _slots[1036] = nativeContext.LoadFunction("SDL_strtoull", "SDL3") ) )(str, endp, @base); @@ -95751,9 +97490,9 @@ int @base sbyte* ISdl.Strupr([NativeTypeName("char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[1023] is not null and var loadedFnPtr + _slots[1037] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1023] = nativeContext.LoadFunction("SDL_strupr", "SDL3") + : _slots[1037] = nativeContext.LoadFunction("SDL_strupr", "SDL3") ) )(str); @@ -95795,9 +97534,9 @@ GPUCommandBufferHandle command_buffer ) => ( (delegate* unmanaged)( - _slots[1025] is not null and var loadedFnPtr + _slots[1039] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1025] = nativeContext.LoadFunction( + : _slots[1039] = nativeContext.LoadFunction( "SDL_SubmitGPUCommandBufferAndAcquireFence", "SDL3" ) @@ -95814,9 +97553,9 @@ GPUCommandBufferHandle command_buffer byte ISdl.SubmitGPUCommandBufferRaw(GPUCommandBufferHandle command_buffer) => ( (delegate* unmanaged)( - _slots[1024] is not null and var loadedFnPtr + _slots[1038] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1024] = nativeContext.LoadFunction( + : _slots[1038] = nativeContext.LoadFunction( "SDL_SubmitGPUCommandBuffer", "SDL3" ) @@ -95833,9 +97572,9 @@ public static byte SubmitGPUCommandBufferRaw(GPUCommandBufferHandle command_buff byte ISdl.SurfaceHasAlternateImages(Surface* surface) => ( (delegate* unmanaged)( - _slots[1026] is not null and var loadedFnPtr + _slots[1040] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1026] = nativeContext.LoadFunction( + : _slots[1040] = nativeContext.LoadFunction( "SDL_SurfaceHasAlternateImages", "SDL3" ) @@ -95868,9 +97607,9 @@ public static MaybeBool SurfaceHasAlternateImages(Ref surface) => byte ISdl.SurfaceHasColorKey(Surface* surface) => ( (delegate* unmanaged)( - _slots[1027] is not null and var loadedFnPtr + _slots[1041] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1027] = nativeContext.LoadFunction("SDL_SurfaceHasColorKey", "SDL3") + : _slots[1041] = nativeContext.LoadFunction("SDL_SurfaceHasColorKey", "SDL3") ) )(surface); @@ -95900,9 +97639,9 @@ public static MaybeBool SurfaceHasColorKey(Ref surface) => byte ISdl.SurfaceHasRLE(Surface* surface) => ( (delegate* unmanaged)( - _slots[1028] is not null and var loadedFnPtr + _slots[1042] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1028] = nativeContext.LoadFunction("SDL_SurfaceHasRLE", "SDL3") + : _slots[1042] = nativeContext.LoadFunction("SDL_SurfaceHasRLE", "SDL3") ) )(surface); @@ -95941,9 +97680,9 @@ MaybeBool ISdl.SyncWindow(WindowHandle window) => byte ISdl.SyncWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1029] is not null and var loadedFnPtr + _slots[1043] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1029] = nativeContext.LoadFunction("SDL_SyncWindow", "SDL3") + : _slots[1043] = nativeContext.LoadFunction("SDL_SyncWindow", "SDL3") ) )(window); @@ -95956,9 +97695,9 @@ _slots[1029] is not null and var loadedFnPtr double ISdl.Tan(double x) => ( (delegate* unmanaged)( - _slots[1030] is not null and var loadedFnPtr + _slots[1044] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1030] = nativeContext.LoadFunction("SDL_tan", "SDL3") + : _slots[1044] = nativeContext.LoadFunction("SDL_tan", "SDL3") ) )(x); @@ -95970,9 +97709,9 @@ _slots[1030] is not null and var loadedFnPtr float ISdl.Tanf(float x) => ( (delegate* unmanaged)( - _slots[1031] is not null and var loadedFnPtr + _slots[1045] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1031] = nativeContext.LoadFunction("SDL_tanf", "SDL3") + : _slots[1045] = nativeContext.LoadFunction("SDL_tanf", "SDL3") ) )(x); @@ -95984,9 +97723,9 @@ _slots[1031] is not null and var loadedFnPtr long ISdl.TellIO(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[1032] is not null and var loadedFnPtr + _slots[1046] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1032] = nativeContext.LoadFunction("SDL_TellIO", "SDL3") + : _slots[1046] = nativeContext.LoadFunction("SDL_TellIO", "SDL3") ) )(context); @@ -96010,9 +97749,9 @@ public static MaybeBool TextInputActive(WindowHandle window) => byte ISdl.TextInputActiveRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1033] is not null and var loadedFnPtr + _slots[1047] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1033] = nativeContext.LoadFunction("SDL_TextInputActive", "SDL3") + : _slots[1047] = nativeContext.LoadFunction("SDL_TextInputActive", "SDL3") ) )(window); @@ -96029,9 +97768,9 @@ long ISdl.TimeFromWindows( ) => ( (delegate* unmanaged)( - _slots[1034] is not null and var loadedFnPtr + _slots[1048] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1034] = nativeContext.LoadFunction("SDL_TimeFromWindows", "SDL3") + : _slots[1048] = nativeContext.LoadFunction("SDL_TimeFromWindows", "SDL3") ) )(dwLowDateTime, dwHighDateTime); @@ -96051,9 +97790,9 @@ byte ISdl.TimeToDateTime( ) => ( (delegate* unmanaged)( - _slots[1035] is not null and var loadedFnPtr + _slots[1049] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1035] = nativeContext.LoadFunction("SDL_TimeToDateTime", "SDL3") + : _slots[1049] = nativeContext.LoadFunction("SDL_TimeToDateTime", "SDL3") ) )(ticks, dt, localTime); @@ -96098,9 +97837,9 @@ void ISdl.TimeToWindows( ) => ( (delegate* unmanaged)( - _slots[1036] is not null and var loadedFnPtr + _slots[1050] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1036] = nativeContext.LoadFunction("SDL_TimeToWindows", "SDL3") + : _slots[1050] = nativeContext.LoadFunction("SDL_TimeToWindows", "SDL3") ) )(ticks, dwLowDateTime, dwHighDateTime); @@ -96139,9 +97878,9 @@ public static void TimeToWindows( int ISdl.Tolower(int x) => ( (delegate* unmanaged)( - _slots[1037] is not null and var loadedFnPtr + _slots[1051] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1037] = nativeContext.LoadFunction("SDL_tolower", "SDL3") + : _slots[1051] = nativeContext.LoadFunction("SDL_tolower", "SDL3") ) )(x); @@ -96153,9 +97892,9 @@ _slots[1037] is not null and var loadedFnPtr int ISdl.Toupper(int x) => ( (delegate* unmanaged)( - _slots[1038] is not null and var loadedFnPtr + _slots[1052] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1038] = nativeContext.LoadFunction("SDL_toupper", "SDL3") + : _slots[1052] = nativeContext.LoadFunction("SDL_toupper", "SDL3") ) )(x); @@ -96167,9 +97906,9 @@ _slots[1038] is not null and var loadedFnPtr double ISdl.Trunc(double x) => ( (delegate* unmanaged)( - _slots[1039] is not null and var loadedFnPtr + _slots[1053] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1039] = nativeContext.LoadFunction("SDL_trunc", "SDL3") + : _slots[1053] = nativeContext.LoadFunction("SDL_trunc", "SDL3") ) )(x); @@ -96181,9 +97920,9 @@ _slots[1039] is not null and var loadedFnPtr float ISdl.Truncf(float x) => ( (delegate* unmanaged)( - _slots[1040] is not null and var loadedFnPtr + _slots[1054] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1040] = nativeContext.LoadFunction("SDL_truncf", "SDL3") + : _slots[1054] = nativeContext.LoadFunction("SDL_truncf", "SDL3") ) )(x); @@ -96205,9 +97944,9 @@ MaybeBool ISdl.TryLockMutex(MutexHandle mutex) => byte ISdl.TryLockMutexRaw(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[1041] is not null and var loadedFnPtr + _slots[1055] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1041] = nativeContext.LoadFunction("SDL_TryLockMutex", "SDL3") + : _slots[1055] = nativeContext.LoadFunction("SDL_TryLockMutex", "SDL3") ) )(mutex); @@ -96231,9 +97970,9 @@ public static MaybeBool TryLockRWLockForReading(RWLockHandle rwlock) => byte ISdl.TryLockRWLockForReadingRaw(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[1042] is not null and var loadedFnPtr + _slots[1056] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1042] = nativeContext.LoadFunction( + : _slots[1056] = nativeContext.LoadFunction( "SDL_TryLockRWLockForReading", "SDL3" ) @@ -96261,9 +98000,9 @@ public static MaybeBool TryLockRWLockForWriting(RWLockHandle rwlock) => byte ISdl.TryLockRWLockForWritingRaw(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[1043] is not null and var loadedFnPtr + _slots[1057] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1043] = nativeContext.LoadFunction( + : _slots[1057] = nativeContext.LoadFunction( "SDL_TryLockRWLockForWriting", "SDL3" ) @@ -96280,9 +98019,9 @@ public static byte TryLockRWLockForWritingRaw(RWLockHandle rwlock) => byte ISdl.TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => ( (delegate* unmanaged)( - _slots[1044] is not null and var loadedFnPtr + _slots[1058] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1044] = nativeContext.LoadFunction("SDL_TryLockSpinlock", "SDL3") + : _slots[1058] = nativeContext.LoadFunction("SDL_TryLockSpinlock", "SDL3") ) )(@lock); @@ -96324,9 +98063,9 @@ public static MaybeBool TryWaitSemaphore(SemaphoreHandle sem) => byte ISdl.TryWaitSemaphoreRaw(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[1045] is not null and var loadedFnPtr + _slots[1059] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1045] = nativeContext.LoadFunction("SDL_TryWaitSemaphore", "SDL3") + : _slots[1059] = nativeContext.LoadFunction("SDL_TryWaitSemaphore", "SDL3") ) )(sem); @@ -96343,9 +98082,9 @@ public static byte TryWaitSemaphoreRaw(SemaphoreHandle sem) => ) => ( (delegate* unmanaged)( - _slots[1046] is not null and var loadedFnPtr + _slots[1060] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1046] = nativeContext.LoadFunction("SDL_UCS4ToUTF8", "SDL3") + : _slots[1060] = nativeContext.LoadFunction("SDL_UCS4ToUTF8", "SDL3") ) )(codepoint, dst); @@ -96386,9 +98125,9 @@ int radix ) => ( (delegate* unmanaged)( - _slots[1047] is not null and var loadedFnPtr + _slots[1061] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1047] = nativeContext.LoadFunction("SDL_uitoa", "SDL3") + : _slots[1061] = nativeContext.LoadFunction("SDL_uitoa", "SDL3") ) )(value, str, radix); @@ -96432,9 +98171,9 @@ int radix ) => ( (delegate* unmanaged)( - _slots[1048] is not null and var loadedFnPtr + _slots[1062] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1048] = nativeContext.LoadFunction("SDL_ulltoa", "SDL3") + : _slots[1062] = nativeContext.LoadFunction("SDL_ulltoa", "SDL3") ) )(value, str, radix); @@ -96478,9 +98217,9 @@ int radix ) => ( (delegate* unmanaged)( - _slots[1049] is not null and var loadedFnPtr + _slots[1063] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1049] = nativeContext.LoadFunction("SDL_ultoa", "SDL3") + : _slots[1063] = nativeContext.LoadFunction("SDL_ultoa", "SDL3") ) )(value, str, radix); @@ -96520,9 +98259,9 @@ int radix void ISdl.UnbindAudioStream(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[1050] is not null and var loadedFnPtr + _slots[1064] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1050] = nativeContext.LoadFunction("SDL_UnbindAudioStream", "SDL3") + : _slots[1064] = nativeContext.LoadFunction("SDL_UnbindAudioStream", "SDL3") ) )(stream); @@ -96532,22 +98271,30 @@ public static void UnbindAudioStream(AudioStreamHandle stream) => DllImport.UnbindAudioStream(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.UnbindAudioStreams(AudioStreamHandle* streams, int num_streams) => + void ISdl.UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, + int num_streams + ) => ( (delegate* unmanaged)( - _slots[1051] is not null and var loadedFnPtr + _slots[1065] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1051] = nativeContext.LoadFunction("SDL_UnbindAudioStreams", "SDL3") + : _slots[1065] = nativeContext.LoadFunction("SDL_UnbindAudioStreams", "SDL3") ) )(streams, num_streams); [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void UnbindAudioStreams(AudioStreamHandle* streams, int num_streams) => - DllImport.UnbindAudioStreams(streams, num_streams); + public static void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] AudioStreamHandle* streams, + int num_streams + ) => DllImport.UnbindAudioStreams(streams, num_streams); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.UnbindAudioStreams(Ref streams, int num_streams) + void ISdl.UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, + int num_streams + ) { fixed (AudioStreamHandle* __dsl_streams = streams) { @@ -96558,16 +98305,18 @@ void ISdl.UnbindAudioStreams(Ref streams, int num_streams) [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void UnbindAudioStreams(Ref streams, int num_streams) => - DllImport.UnbindAudioStreams(streams, num_streams); + public static void UnbindAudioStreams( + [NativeTypeName("SDL_AudioStream *const *")] Ref streams, + int num_streams + ) => DllImport.UnbindAudioStreams(streams, num_streams); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnloadObject(SharedObjectHandle handle) => ( (delegate* unmanaged)( - _slots[1052] is not null and var loadedFnPtr + _slots[1066] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1052] = nativeContext.LoadFunction("SDL_UnloadObject", "SDL3") + : _slots[1066] = nativeContext.LoadFunction("SDL_UnloadObject", "SDL3") ) )(handle); @@ -96590,9 +98339,9 @@ public static MaybeBool UnlockAudioStream(AudioStreamHandle stream) => byte ISdl.UnlockAudioStreamRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[1053] is not null and var loadedFnPtr + _slots[1067] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1053] = nativeContext.LoadFunction("SDL_UnlockAudioStream", "SDL3") + : _slots[1067] = nativeContext.LoadFunction("SDL_UnlockAudioStream", "SDL3") ) )(stream); @@ -96606,9 +98355,9 @@ public static byte UnlockAudioStreamRaw(AudioStreamHandle stream) => void ISdl.UnlockJoysticks() => ( (delegate* unmanaged)( - _slots[1054] is not null and var loadedFnPtr + _slots[1068] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1054] = nativeContext.LoadFunction("SDL_UnlockJoysticks", "SDL3") + : _slots[1068] = nativeContext.LoadFunction("SDL_UnlockJoysticks", "SDL3") ) )(); @@ -96620,9 +98369,9 @@ _slots[1054] is not null and var loadedFnPtr void ISdl.UnlockMutex(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[1055] is not null and var loadedFnPtr + _slots[1069] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1055] = nativeContext.LoadFunction("SDL_UnlockMutex", "SDL3") + : _slots[1069] = nativeContext.LoadFunction("SDL_UnlockMutex", "SDL3") ) )(mutex); @@ -96634,9 +98383,9 @@ _slots[1055] is not null and var loadedFnPtr void ISdl.UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( (delegate* unmanaged)( - _slots[1056] is not null and var loadedFnPtr + _slots[1070] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1056] = nativeContext.LoadFunction("SDL_UnlockProperties", "SDL3") + : _slots[1070] = nativeContext.LoadFunction("SDL_UnlockProperties", "SDL3") ) )(props); @@ -96649,9 +98398,9 @@ public static void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint pr void ISdl.UnlockRWLock(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[1057] is not null and var loadedFnPtr + _slots[1071] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1057] = nativeContext.LoadFunction("SDL_UnlockRWLock", "SDL3") + : _slots[1071] = nativeContext.LoadFunction("SDL_UnlockRWLock", "SDL3") ) )(rwlock); @@ -96663,9 +98412,9 @@ _slots[1057] is not null and var loadedFnPtr void ISdl.UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => ( (delegate* unmanaged)( - _slots[1058] is not null and var loadedFnPtr + _slots[1072] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1058] = nativeContext.LoadFunction("SDL_UnlockSpinlock", "SDL3") + : _slots[1072] = nativeContext.LoadFunction("SDL_UnlockSpinlock", "SDL3") ) )(@lock); @@ -96693,9 +98442,9 @@ public static void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @l void ISdl.UnlockSurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[1059] is not null and var loadedFnPtr + _slots[1073] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1059] = nativeContext.LoadFunction("SDL_UnlockSurface", "SDL3") + : _slots[1073] = nativeContext.LoadFunction("SDL_UnlockSurface", "SDL3") ) )(surface); @@ -96721,9 +98470,9 @@ void ISdl.UnlockSurface(Ref surface) void ISdl.UnlockTexture(Texture* texture) => ( (delegate* unmanaged)( - _slots[1060] is not null and var loadedFnPtr + _slots[1074] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1060] = nativeContext.LoadFunction("SDL_UnlockTexture", "SDL3") + : _slots[1074] = nativeContext.LoadFunction("SDL_UnlockTexture", "SDL3") ) )(texture); @@ -96752,9 +98501,9 @@ GPUTransferBufferHandle transfer_buffer ) => ( (delegate* unmanaged)( - _slots[1061] is not null and var loadedFnPtr + _slots[1075] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1061] = nativeContext.LoadFunction( + : _slots[1075] = nativeContext.LoadFunction( "SDL_UnmapGPUTransferBuffer", "SDL3" ) @@ -96772,9 +98521,9 @@ GPUTransferBufferHandle transfer_buffer int ISdl.UnsetenvUnsafe([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[1062] is not null and var loadedFnPtr + _slots[1076] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1062] = nativeContext.LoadFunction("SDL_unsetenv_unsafe", "SDL3") + : _slots[1076] = nativeContext.LoadFunction("SDL_unsetenv_unsafe", "SDL3") ) )(name); @@ -96805,9 +98554,9 @@ byte ISdl.UnsetEnvironmentVariable( ) => ( (delegate* unmanaged)( - _slots[1063] is not null and var loadedFnPtr + _slots[1077] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1063] = nativeContext.LoadFunction( + : _slots[1077] = nativeContext.LoadFunction( "SDL_UnsetEnvironmentVariable", "SDL3" ) @@ -96847,9 +98596,9 @@ public static MaybeBool UnsetEnvironmentVariable( void ISdl.UpdateGamepads() => ( (delegate* unmanaged)( - _slots[1064] is not null and var loadedFnPtr + _slots[1078] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1064] = nativeContext.LoadFunction("SDL_UpdateGamepads", "SDL3") + : _slots[1078] = nativeContext.LoadFunction("SDL_UpdateGamepads", "SDL3") ) )(); @@ -96865,9 +98614,9 @@ byte ISdl.UpdateHapticEffect( ) => ( (delegate* unmanaged)( - _slots[1065] is not null and var loadedFnPtr + _slots[1079] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1065] = nativeContext.LoadFunction("SDL_UpdateHapticEffect", "SDL3") + : _slots[1079] = nativeContext.LoadFunction("SDL_UpdateHapticEffect", "SDL3") ) )(haptic, effect, data); @@ -96908,9 +98657,9 @@ public static MaybeBool UpdateHapticEffect( void ISdl.UpdateJoysticks() => ( (delegate* unmanaged)( - _slots[1066] is not null and var loadedFnPtr + _slots[1080] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1066] = nativeContext.LoadFunction("SDL_UpdateJoysticks", "SDL3") + : _slots[1080] = nativeContext.LoadFunction("SDL_UpdateJoysticks", "SDL3") ) )(); @@ -96929,9 +98678,9 @@ int UVpitch ) => ( (delegate* unmanaged)( - _slots[1067] is not null and var loadedFnPtr + _slots[1081] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1067] = nativeContext.LoadFunction("SDL_UpdateNVTexture", "SDL3") + : _slots[1081] = nativeContext.LoadFunction("SDL_UpdateNVTexture", "SDL3") ) )(texture, rect, Yplane, Ypitch, UVplane, UVpitch); @@ -96992,9 +98741,9 @@ int UVpitch void ISdl.UpdateSensors() => ( (delegate* unmanaged)( - _slots[1068] is not null and var loadedFnPtr + _slots[1082] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1068] = nativeContext.LoadFunction("SDL_UpdateSensors", "SDL3") + : _slots[1082] = nativeContext.LoadFunction("SDL_UpdateSensors", "SDL3") ) )(); @@ -97011,9 +98760,9 @@ int pitch ) => ( (delegate* unmanaged)( - _slots[1069] is not null and var loadedFnPtr + _slots[1083] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1069] = nativeContext.LoadFunction("SDL_UpdateTexture", "SDL3") + : _slots[1083] = nativeContext.LoadFunction("SDL_UpdateTexture", "SDL3") ) )(texture, rect, pixels, pitch); @@ -97070,9 +98819,9 @@ public static MaybeBool UpdateWindowSurface(WindowHandle window) => byte ISdl.UpdateWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1070] is not null and var loadedFnPtr + _slots[1084] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1070] = nativeContext.LoadFunction("SDL_UpdateWindowSurface", "SDL3") + : _slots[1084] = nativeContext.LoadFunction("SDL_UpdateWindowSurface", "SDL3") ) )(window); @@ -97090,9 +98839,9 @@ int numrects ) => ( (delegate* unmanaged)( - _slots[1071] is not null and var loadedFnPtr + _slots[1085] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1071] = nativeContext.LoadFunction( + : _slots[1085] = nativeContext.LoadFunction( "SDL_UpdateWindowSurfaceRects", "SDL3" ) @@ -97145,9 +98894,9 @@ int Vpitch ) => ( (delegate* unmanaged)( - _slots[1072] is not null and var loadedFnPtr + _slots[1086] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1072] = nativeContext.LoadFunction("SDL_UpdateYUVTexture", "SDL3") + : _slots[1086] = nativeContext.LoadFunction("SDL_UpdateYUVTexture", "SDL3") ) )(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); @@ -97227,9 +98976,9 @@ void ISdl.UploadToGPUBuffer( GPUBufferRegion*, byte, void>)( - _slots[1073] is not null and var loadedFnPtr + _slots[1087] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1073] = nativeContext.LoadFunction("SDL_UploadToGPUBuffer", "SDL3") + : _slots[1087] = nativeContext.LoadFunction("SDL_UploadToGPUBuffer", "SDL3") ) )(copy_pass, source, destination, cycle); @@ -97283,9 +99032,9 @@ void ISdl.UploadToGPUTexture( GPUTextureRegion*, byte, void>)( - _slots[1074] is not null and var loadedFnPtr + _slots[1088] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1074] = nativeContext.LoadFunction("SDL_UploadToGPUTexture", "SDL3") + : _slots[1088] = nativeContext.LoadFunction("SDL_UploadToGPUTexture", "SDL3") ) )(copy_pass, source, destination, cycle); @@ -97336,9 +99085,9 @@ nuint ISdl.Utf8Strlcpy( ) => ( (delegate* unmanaged)( - _slots[1075] is not null and var loadedFnPtr + _slots[1089] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1075] = nativeContext.LoadFunction("SDL_utf8strlcpy", "SDL3") + : _slots[1089] = nativeContext.LoadFunction("SDL_utf8strlcpy", "SDL3") ) )(dst, src, dst_bytes); @@ -97379,9 +99128,9 @@ public static nuint Utf8Strlcpy( nuint ISdl.Utf8Strlen([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[1076] is not null and var loadedFnPtr + _slots[1090] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1076] = nativeContext.LoadFunction("SDL_utf8strlen", "SDL3") + : _slots[1090] = nativeContext.LoadFunction("SDL_utf8strlen", "SDL3") ) )(str); @@ -97414,9 +99163,9 @@ nuint ISdl.Utf8Strnlen( ) => ( (delegate* unmanaged)( - _slots[1077] is not null and var loadedFnPtr + _slots[1091] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1077] = nativeContext.LoadFunction("SDL_utf8strnlen", "SDL3") + : _slots[1091] = nativeContext.LoadFunction("SDL_utf8strnlen", "SDL3") ) )(str, bytes); @@ -97457,9 +99206,9 @@ int ISdl.Vasprintf( ) => ( (delegate* unmanaged)( - _slots[1078] is not null and var loadedFnPtr + _slots[1092] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1078] = nativeContext.LoadFunction("SDL_vasprintf", "SDL3") + : _slots[1092] = nativeContext.LoadFunction("SDL_vasprintf", "SDL3") ) )(strp, fmt, ap); @@ -97504,9 +99253,9 @@ int ISdl.Vsnprintf( ) => ( (delegate* unmanaged)( - _slots[1079] is not null and var loadedFnPtr + _slots[1093] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1079] = nativeContext.LoadFunction("SDL_vsnprintf", "SDL3") + : _slots[1093] = nativeContext.LoadFunction("SDL_vsnprintf", "SDL3") ) )(text, maxlen, fmt, ap); @@ -97553,9 +99302,9 @@ int ISdl.Vsscanf( ) => ( (delegate* unmanaged)( - _slots[1080] is not null and var loadedFnPtr + _slots[1094] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1080] = nativeContext.LoadFunction("SDL_vsscanf", "SDL3") + : _slots[1094] = nativeContext.LoadFunction("SDL_vsscanf", "SDL3") ) )(text, fmt, ap); @@ -97600,9 +99349,9 @@ int ISdl.Vswprintf( ) => ( (delegate* unmanaged)( - _slots[1081] is not null and var loadedFnPtr + _slots[1095] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1081] = nativeContext.LoadFunction("SDL_vswprintf", "SDL3") + : _slots[1095] = nativeContext.LoadFunction("SDL_vswprintf", "SDL3") ) )(text, maxlen, fmt, ap); @@ -97650,9 +99399,9 @@ byte ISdl.VulkanCreateSurface( ) => ( (delegate* unmanaged)( - _slots[1082] is not null and var loadedFnPtr + _slots[1096] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1082] = nativeContext.LoadFunction("SDL_Vulkan_CreateSurface", "SDL3") + : _slots[1096] = nativeContext.LoadFunction("SDL_Vulkan_CreateSurface", "SDL3") ) )(window, instance, allocator, surface); @@ -97708,9 +99457,9 @@ void ISdl.VulkanDestroySurface( ) => ( (delegate* unmanaged)( - _slots[1083] is not null and var loadedFnPtr + _slots[1097] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1083] = nativeContext.LoadFunction("SDL_Vulkan_DestroySurface", "SDL3") + : _slots[1097] = nativeContext.LoadFunction("SDL_Vulkan_DestroySurface", "SDL3") ) )(instance, surface, allocator); @@ -97749,9 +99498,9 @@ public static void VulkanDestroySurface( sbyte** ISdl.VulkanGetInstanceExtensions([NativeTypeName("Uint32 *")] uint* count) => ( (delegate* unmanaged)( - _slots[1084] is not null and var loadedFnPtr + _slots[1098] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1084] = nativeContext.LoadFunction( + : _slots[1098] = nativeContext.LoadFunction( "SDL_Vulkan_GetInstanceExtensions", "SDL3" ) @@ -97789,9 +99538,9 @@ byte ISdl.VulkanGetPresentationSupport( ) => ( (delegate* unmanaged)( - _slots[1085] is not null and var loadedFnPtr + _slots[1099] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1085] = nativeContext.LoadFunction( + : _slots[1099] = nativeContext.LoadFunction( "SDL_Vulkan_GetPresentationSupport", "SDL3" ) @@ -97840,9 +99589,9 @@ public static MaybeBool VulkanGetPresentationSupport( FunctionPointer ISdl.VulkanGetVkGetInstanceProcAddr() => ( (delegate* unmanaged)( - _slots[1086] is not null and var loadedFnPtr + _slots[1100] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1086] = nativeContext.LoadFunction( + : _slots[1100] = nativeContext.LoadFunction( "SDL_Vulkan_GetVkGetInstanceProcAddr", "SDL3" ) @@ -97859,9 +99608,9 @@ public static FunctionPointer VulkanGetVkGetInstanceProcAddr() => byte ISdl.VulkanLoadLibrary([NativeTypeName("const char *")] sbyte* path) => ( (delegate* unmanaged)( - _slots[1087] is not null and var loadedFnPtr + _slots[1101] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1087] = nativeContext.LoadFunction("SDL_Vulkan_LoadLibrary", "SDL3") + : _slots[1101] = nativeContext.LoadFunction("SDL_Vulkan_LoadLibrary", "SDL3") ) )(path); @@ -97892,9 +99641,9 @@ public static MaybeBool VulkanLoadLibrary( void ISdl.VulkanUnloadLibrary() => ( (delegate* unmanaged)( - _slots[1088] is not null and var loadedFnPtr + _slots[1102] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1088] = nativeContext.LoadFunction("SDL_Vulkan_UnloadLibrary", "SDL3") + : _slots[1102] = nativeContext.LoadFunction("SDL_Vulkan_UnloadLibrary", "SDL3") ) )(); @@ -97902,13 +99651,106 @@ _slots[1088] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void VulkanUnloadLibrary() => DllImport.VulkanUnloadLibrary(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + GPUTextureHandle* swapchain_texture, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_width, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_height + ) => + ( + (delegate* unmanaged< + GPUCommandBufferHandle, + WindowHandle, + GPUTextureHandle*, + uint*, + uint*, + byte>)( + _slots[1103] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1103] = nativeContext.LoadFunction( + "SDL_WaitAndAcquireGPUSwapchainTexture", + "SDL3" + ) + ) + )( + command_buffer, + window, + swapchain_texture, + swapchain_texture_width, + swapchain_texture_height + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + GPUTextureHandle* swapchain_texture, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_width, + [NativeTypeName("Uint32 *")] uint* swapchain_texture_height + ) => + DllImport.WaitAndAcquireGPUSwapchainTexture( + command_buffer, + window, + swapchain_texture, + swapchain_texture_width, + swapchain_texture_height + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + Ref swapchain_texture, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_width, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_height + ) + { + fixed (uint* __dsl_swapchain_texture_height = swapchain_texture_height) + fixed (uint* __dsl_swapchain_texture_width = swapchain_texture_width) + fixed (GPUTextureHandle* __dsl_swapchain_texture = swapchain_texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).WaitAndAcquireGPUSwapchainTexture( + command_buffer, + window, + __dsl_swapchain_texture, + __dsl_swapchain_texture_width, + __dsl_swapchain_texture_height + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitAndAcquireGPUSwapchainTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WaitAndAcquireGPUSwapchainTexture( + GPUCommandBufferHandle command_buffer, + WindowHandle window, + Ref swapchain_texture, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_width, + [NativeTypeName("Uint32 *")] Ref swapchain_texture_height + ) => + DllImport.WaitAndAcquireGPUSwapchainTexture( + command_buffer, + window, + swapchain_texture, + swapchain_texture_width, + swapchain_texture_height + ); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.WaitCondition(ConditionHandle cond, MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[1089] is not null and var loadedFnPtr + _slots[1104] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1089] = nativeContext.LoadFunction("SDL_WaitCondition", "SDL3") + : _slots[1104] = nativeContext.LoadFunction("SDL_WaitCondition", "SDL3") ) )(cond, mutex); @@ -97942,9 +99784,9 @@ byte ISdl.WaitConditionTimeoutRaw( ) => ( (delegate* unmanaged)( - _slots[1090] is not null and var loadedFnPtr + _slots[1105] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1090] = nativeContext.LoadFunction("SDL_WaitConditionTimeout", "SDL3") + : _slots[1105] = nativeContext.LoadFunction("SDL_WaitConditionTimeout", "SDL3") ) )(cond, mutex, timeoutMS); @@ -97961,9 +99803,9 @@ public static byte WaitConditionTimeoutRaw( byte ISdl.WaitEvent(Event* @event) => ( (delegate* unmanaged)( - _slots[1091] is not null and var loadedFnPtr + _slots[1106] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1091] = nativeContext.LoadFunction("SDL_WaitEvent", "SDL3") + : _slots[1106] = nativeContext.LoadFunction("SDL_WaitEvent", "SDL3") ) )(@event); @@ -97991,9 +99833,9 @@ MaybeBool ISdl.WaitEvent(Ref @event) byte ISdl.WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => ( (delegate* unmanaged)( - _slots[1092] is not null and var loadedFnPtr + _slots[1107] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1092] = nativeContext.LoadFunction("SDL_WaitEventTimeout", "SDL3") + : _slots[1107] = nativeContext.LoadFunction("SDL_WaitEventTimeout", "SDL3") ) )(@event, timeoutMS); @@ -98033,9 +99875,9 @@ byte ISdl.WaitForGPUFences( ) => ( (delegate* unmanaged)( - _slots[1093] is not null and var loadedFnPtr + _slots[1108] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1093] = nativeContext.LoadFunction("SDL_WaitForGPUFences", "SDL3") + : _slots[1108] = nativeContext.LoadFunction("SDL_WaitForGPUFences", "SDL3") ) )(device, wait_all, fences, num_fences); @@ -98091,9 +99933,9 @@ public static MaybeBool WaitForGPUIdle(GPUDeviceHandle device) => byte ISdl.WaitForGPUIdleRaw(GPUDeviceHandle device) => ( (delegate* unmanaged)( - _slots[1094] is not null and var loadedFnPtr + _slots[1109] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1094] = nativeContext.LoadFunction("SDL_WaitForGPUIdle", "SDL3") + : _slots[1109] = nativeContext.LoadFunction("SDL_WaitForGPUIdle", "SDL3") ) )(device); @@ -98103,6 +99945,35 @@ _slots[1094] is not null and var loadedFnPtr public static byte WaitForGPUIdleRaw(GPUDeviceHandle device) => DllImport.WaitForGPUIdleRaw(device); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WaitForGPUSwapchain(GPUDeviceHandle device, WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).WaitForGPUSwapchainRaw(device, window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WaitForGPUSwapchain( + GPUDeviceHandle device, + WindowHandle window + ) => DllImport.WaitForGPUSwapchain(device, window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.WaitForGPUSwapchainRaw(GPUDeviceHandle device, WindowHandle window) => + ( + (delegate* unmanaged)( + _slots[1110] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1110] = nativeContext.LoadFunction("SDL_WaitForGPUSwapchain", "SDL3") + ) + )(device, window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitForGPUSwapchain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte WaitForGPUSwapchainRaw(GPUDeviceHandle device, WindowHandle window) => + DllImport.WaitForGPUSwapchainRaw(device, window); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.WaitProcess( ProcessHandle process, @@ -98111,9 +99982,9 @@ byte ISdl.WaitProcess( ) => ( (delegate* unmanaged)( - _slots[1095] is not null and var loadedFnPtr + _slots[1111] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1095] = nativeContext.LoadFunction("SDL_WaitProcess", "SDL3") + : _slots[1111] = nativeContext.LoadFunction("SDL_WaitProcess", "SDL3") ) )(process, block, exitcode); @@ -98154,9 +100025,9 @@ Ref exitcode void ISdl.WaitSemaphore(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[1096] is not null and var loadedFnPtr + _slots[1112] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1096] = nativeContext.LoadFunction("SDL_WaitSemaphore", "SDL3") + : _slots[1112] = nativeContext.LoadFunction("SDL_WaitSemaphore", "SDL3") ) )(sem); @@ -98186,9 +100057,9 @@ byte ISdl.WaitSemaphoreTimeoutRaw( ) => ( (delegate* unmanaged)( - _slots[1097] is not null and var loadedFnPtr + _slots[1113] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1097] = nativeContext.LoadFunction("SDL_WaitSemaphoreTimeout", "SDL3") + : _slots[1113] = nativeContext.LoadFunction("SDL_WaitSemaphoreTimeout", "SDL3") ) )(sem, timeoutMS); @@ -98204,9 +100075,9 @@ public static byte WaitSemaphoreTimeoutRaw( void ISdl.WaitThread(ThreadHandle thread, int* status) => ( (delegate* unmanaged)( - _slots[1098] is not null and var loadedFnPtr + _slots[1114] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1098] = nativeContext.LoadFunction("SDL_WaitThread", "SDL3") + : _slots[1114] = nativeContext.LoadFunction("SDL_WaitThread", "SDL3") ) )(thread, status); @@ -98245,9 +100116,9 @@ public static MaybeBool WarpMouseGlobal(float x, float y) => byte ISdl.WarpMouseGlobalRaw(float x, float y) => ( (delegate* unmanaged)( - _slots[1099] is not null and var loadedFnPtr + _slots[1115] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1099] = nativeContext.LoadFunction("SDL_WarpMouseGlobal", "SDL3") + : _slots[1115] = nativeContext.LoadFunction("SDL_WarpMouseGlobal", "SDL3") ) )(x, y); @@ -98260,9 +100131,9 @@ _slots[1099] is not null and var loadedFnPtr void ISdl.WarpMouseInWindow(WindowHandle window, float x, float y) => ( (delegate* unmanaged)( - _slots[1100] is not null and var loadedFnPtr + _slots[1116] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1100] = nativeContext.LoadFunction("SDL_WarpMouseInWindow", "SDL3") + : _slots[1116] = nativeContext.LoadFunction("SDL_WarpMouseInWindow", "SDL3") ) )(window, x, y); @@ -98275,9 +100146,9 @@ public static void WarpMouseInWindow(WindowHandle window, float x, float y) => uint ISdl.WasInit([NativeTypeName("SDL_InitFlags")] uint flags) => ( (delegate* unmanaged)( - _slots[1101] is not null and var loadedFnPtr + _slots[1117] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1101] = nativeContext.LoadFunction("SDL_WasInit", "SDL3") + : _slots[1117] = nativeContext.LoadFunction("SDL_WasInit", "SDL3") ) )(flags); @@ -98294,9 +100165,9 @@ int ISdl.Wcscasecmp( ) => ( (delegate* unmanaged)( - _slots[1102] is not null and var loadedFnPtr + _slots[1118] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1102] = nativeContext.LoadFunction("SDL_wcscasecmp", "SDL3") + : _slots[1118] = nativeContext.LoadFunction("SDL_wcscasecmp", "SDL3") ) )(str1, str2); @@ -98335,9 +100206,9 @@ int ISdl.Wcscmp( ) => ( (delegate* unmanaged)( - _slots[1103] is not null and var loadedFnPtr + _slots[1119] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1103] = nativeContext.LoadFunction("SDL_wcscmp", "SDL3") + : _slots[1119] = nativeContext.LoadFunction("SDL_wcscmp", "SDL3") ) )(str1, str2); @@ -98373,9 +100244,9 @@ public static int Wcscmp( uint* ISdl.Wcsdup([NativeTypeName("const wchar_t *")] uint* wstr) => ( (delegate* unmanaged)( - _slots[1104] is not null and var loadedFnPtr + _slots[1120] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1104] = nativeContext.LoadFunction("SDL_wcsdup", "SDL3") + : _slots[1120] = nativeContext.LoadFunction("SDL_wcsdup", "SDL3") ) )(wstr); @@ -98409,9 +100280,9 @@ nuint ISdl.Wcslcat( ) => ( (delegate* unmanaged)( - _slots[1105] is not null and var loadedFnPtr + _slots[1121] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1105] = nativeContext.LoadFunction("SDL_wcslcat", "SDL3") + : _slots[1121] = nativeContext.LoadFunction("SDL_wcslcat", "SDL3") ) )(dst, src, maxlen); @@ -98456,9 +100327,9 @@ nuint ISdl.Wcslcpy( ) => ( (delegate* unmanaged)( - _slots[1106] is not null and var loadedFnPtr + _slots[1122] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1106] = nativeContext.LoadFunction("SDL_wcslcpy", "SDL3") + : _slots[1122] = nativeContext.LoadFunction("SDL_wcslcpy", "SDL3") ) )(dst, src, maxlen); @@ -98499,9 +100370,9 @@ public static nuint Wcslcpy( nuint ISdl.Wcslen([NativeTypeName("const wchar_t *")] uint* wstr) => ( (delegate* unmanaged)( - _slots[1107] is not null and var loadedFnPtr + _slots[1123] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1107] = nativeContext.LoadFunction("SDL_wcslen", "SDL3") + : _slots[1123] = nativeContext.LoadFunction("SDL_wcslen", "SDL3") ) )(wstr); @@ -98535,9 +100406,9 @@ int ISdl.Wcsncasecmp( ) => ( (delegate* unmanaged)( - _slots[1108] is not null and var loadedFnPtr + _slots[1124] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1108] = nativeContext.LoadFunction("SDL_wcsncasecmp", "SDL3") + : _slots[1124] = nativeContext.LoadFunction("SDL_wcsncasecmp", "SDL3") ) )(str1, str2, maxlen); @@ -98580,9 +100451,9 @@ int ISdl.Wcsncmp( ) => ( (delegate* unmanaged)( - _slots[1109] is not null and var loadedFnPtr + _slots[1125] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1109] = nativeContext.LoadFunction("SDL_wcsncmp", "SDL3") + : _slots[1125] = nativeContext.LoadFunction("SDL_wcsncmp", "SDL3") ) )(str1, str2, maxlen); @@ -98624,9 +100495,9 @@ nuint ISdl.Wcsnlen( ) => ( (delegate* unmanaged)( - _slots[1110] is not null and var loadedFnPtr + _slots[1126] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1110] = nativeContext.LoadFunction("SDL_wcsnlen", "SDL3") + : _slots[1126] = nativeContext.LoadFunction("SDL_wcsnlen", "SDL3") ) )(wstr, maxlen); @@ -98667,9 +100538,9 @@ public static nuint Wcsnlen( ) => ( (delegate* unmanaged)( - _slots[1111] is not null and var loadedFnPtr + _slots[1127] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1111] = nativeContext.LoadFunction("SDL_wcsnstr", "SDL3") + : _slots[1127] = nativeContext.LoadFunction("SDL_wcsnstr", "SDL3") ) )(haystack, needle, maxlen); @@ -98713,9 +100584,9 @@ public static Ptr Wcsnstr( ) => ( (delegate* unmanaged)( - _slots[1112] is not null and var loadedFnPtr + _slots[1128] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1112] = nativeContext.LoadFunction("SDL_wcsstr", "SDL3") + : _slots[1128] = nativeContext.LoadFunction("SDL_wcsstr", "SDL3") ) )(haystack, needle); @@ -98757,9 +100628,9 @@ int @base ) => ( (delegate* unmanaged)( - _slots[1113] is not null and var loadedFnPtr + _slots[1129] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1113] = nativeContext.LoadFunction("SDL_wcstol", "SDL3") + : _slots[1129] = nativeContext.LoadFunction("SDL_wcstol", "SDL3") ) )(str, endp, @base); @@ -98811,9 +100682,9 @@ public static MaybeBool WindowHasSurface(WindowHandle window) => byte ISdl.WindowHasSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1114] is not null and var loadedFnPtr + _slots[1130] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1114] = nativeContext.LoadFunction("SDL_WindowHasSurface", "SDL3") + : _slots[1130] = nativeContext.LoadFunction("SDL_WindowHasSurface", "SDL3") ) )(window); @@ -98850,9 +100721,9 @@ GPUPresentMode present_mode ) => ( (delegate* unmanaged)( - _slots[1115] is not null and var loadedFnPtr + _slots[1131] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1115] = nativeContext.LoadFunction( + : _slots[1131] = nativeContext.LoadFunction( "SDL_WindowSupportsGPUPresentMode", "SDL3" ) @@ -98900,9 +100771,9 @@ GPUSwapchainComposition swapchain_composition ) => ( (delegate* unmanaged)( - _slots[1116] is not null and var loadedFnPtr + _slots[1132] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1116] = nativeContext.LoadFunction( + : _slots[1132] = nativeContext.LoadFunction( "SDL_WindowSupportsGPUSwapchainComposition", "SDL3" ) @@ -98926,9 +100797,9 @@ nuint ISdl.WriteIO( ) => ( (delegate* unmanaged)( - _slots[1117] is not null and var loadedFnPtr + _slots[1133] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1117] = nativeContext.LoadFunction("SDL_WriteIO", "SDL3") + : _slots[1133] = nativeContext.LoadFunction("SDL_WriteIO", "SDL3") ) )(context, ptr, size); @@ -98981,9 +100852,9 @@ public static MaybeBool WriteS16BE( byte ISdl.WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => ( (delegate* unmanaged)( - _slots[1118] is not null and var loadedFnPtr + _slots[1134] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1118] = nativeContext.LoadFunction("SDL_WriteS16BE", "SDL3") + : _slots[1134] = nativeContext.LoadFunction("SDL_WriteS16BE", "SDL3") ) )(dst, value); @@ -99010,9 +100881,9 @@ public static MaybeBool WriteS16LE( byte ISdl.WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => ( (delegate* unmanaged)( - _slots[1119] is not null and var loadedFnPtr + _slots[1135] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1119] = nativeContext.LoadFunction("SDL_WriteS16LE", "SDL3") + : _slots[1135] = nativeContext.LoadFunction("SDL_WriteS16LE", "SDL3") ) )(dst, value); @@ -99039,9 +100910,9 @@ public static MaybeBool WriteS32BE( byte ISdl.WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => ( (delegate* unmanaged)( - _slots[1120] is not null and var loadedFnPtr + _slots[1136] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1120] = nativeContext.LoadFunction("SDL_WriteS32BE", "SDL3") + : _slots[1136] = nativeContext.LoadFunction("SDL_WriteS32BE", "SDL3") ) )(dst, value); @@ -99068,9 +100939,9 @@ public static MaybeBool WriteS32LE( byte ISdl.WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => ( (delegate* unmanaged)( - _slots[1121] is not null and var loadedFnPtr + _slots[1137] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1121] = nativeContext.LoadFunction("SDL_WriteS32LE", "SDL3") + : _slots[1137] = nativeContext.LoadFunction("SDL_WriteS32LE", "SDL3") ) )(dst, value); @@ -99097,9 +100968,9 @@ public static MaybeBool WriteS64BE( byte ISdl.WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => ( (delegate* unmanaged)( - _slots[1122] is not null and var loadedFnPtr + _slots[1138] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1122] = nativeContext.LoadFunction("SDL_WriteS64BE", "SDL3") + : _slots[1138] = nativeContext.LoadFunction("SDL_WriteS64BE", "SDL3") ) )(dst, value); @@ -99126,9 +100997,9 @@ public static MaybeBool WriteS64LE( byte ISdl.WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => ( (delegate* unmanaged)( - _slots[1123] is not null and var loadedFnPtr + _slots[1139] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1123] = nativeContext.LoadFunction("SDL_WriteS64LE", "SDL3") + : _slots[1139] = nativeContext.LoadFunction("SDL_WriteS64LE", "SDL3") ) )(dst, value); @@ -99155,9 +101026,9 @@ public static MaybeBool WriteS8( byte ISdl.WriteS8Raw(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value) => ( (delegate* unmanaged)( - _slots[1124] is not null and var loadedFnPtr + _slots[1140] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1124] = nativeContext.LoadFunction("SDL_WriteS8", "SDL3") + : _slots[1140] = nativeContext.LoadFunction("SDL_WriteS8", "SDL3") ) )(dst, value); @@ -99176,9 +101047,9 @@ byte ISdl.WriteStorageFile( ) => ( (delegate* unmanaged)( - _slots[1125] is not null and var loadedFnPtr + _slots[1141] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1125] = nativeContext.LoadFunction("SDL_WriteStorageFile", "SDL3") + : _slots[1141] = nativeContext.LoadFunction("SDL_WriteStorageFile", "SDL3") ) )(storage, path, source, length); @@ -99231,9 +101102,9 @@ byte ISdl.WriteSurfacePixel( ) => ( (delegate* unmanaged)( - _slots[1126] is not null and var loadedFnPtr + _slots[1142] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1126] = nativeContext.LoadFunction("SDL_WriteSurfacePixel", "SDL3") + : _slots[1142] = nativeContext.LoadFunction("SDL_WriteSurfacePixel", "SDL3") ) )(surface, x, y, r, g, b, a); @@ -99294,9 +101165,9 @@ float a ) => ( (delegate* unmanaged)( - _slots[1127] is not null and var loadedFnPtr + _slots[1143] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1127] = nativeContext.LoadFunction( + : _slots[1143] = nativeContext.LoadFunction( "SDL_WriteSurfacePixelFloat", "SDL3" ) @@ -99365,9 +101236,9 @@ public static MaybeBool WriteU16BE( byte ISdl.WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => ( (delegate* unmanaged)( - _slots[1128] is not null and var loadedFnPtr + _slots[1144] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1128] = nativeContext.LoadFunction("SDL_WriteU16BE", "SDL3") + : _slots[1144] = nativeContext.LoadFunction("SDL_WriteU16BE", "SDL3") ) )(dst, value); @@ -99394,9 +101265,9 @@ public static MaybeBool WriteU16LE( byte ISdl.WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => ( (delegate* unmanaged)( - _slots[1129] is not null and var loadedFnPtr + _slots[1145] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1129] = nativeContext.LoadFunction("SDL_WriteU16LE", "SDL3") + : _slots[1145] = nativeContext.LoadFunction("SDL_WriteU16LE", "SDL3") ) )(dst, value); @@ -99423,9 +101294,9 @@ public static MaybeBool WriteU32BE( byte ISdl.WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => ( (delegate* unmanaged)( - _slots[1130] is not null and var loadedFnPtr + _slots[1146] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1130] = nativeContext.LoadFunction("SDL_WriteU32BE", "SDL3") + : _slots[1146] = nativeContext.LoadFunction("SDL_WriteU32BE", "SDL3") ) )(dst, value); @@ -99452,9 +101323,9 @@ public static MaybeBool WriteU32LE( byte ISdl.WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => ( (delegate* unmanaged)( - _slots[1131] is not null and var loadedFnPtr + _slots[1147] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1131] = nativeContext.LoadFunction("SDL_WriteU32LE", "SDL3") + : _slots[1147] = nativeContext.LoadFunction("SDL_WriteU32LE", "SDL3") ) )(dst, value); @@ -99481,9 +101352,9 @@ public static MaybeBool WriteU64BE( byte ISdl.WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => ( (delegate* unmanaged)( - _slots[1132] is not null and var loadedFnPtr + _slots[1148] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1132] = nativeContext.LoadFunction("SDL_WriteU64BE", "SDL3") + : _slots[1148] = nativeContext.LoadFunction("SDL_WriteU64BE", "SDL3") ) )(dst, value); @@ -99510,9 +101381,9 @@ public static MaybeBool WriteU64LE( byte ISdl.WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => ( (delegate* unmanaged)( - _slots[1133] is not null and var loadedFnPtr + _slots[1149] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1133] = nativeContext.LoadFunction("SDL_WriteU64LE", "SDL3") + : _slots[1149] = nativeContext.LoadFunction("SDL_WriteU64LE", "SDL3") ) )(dst, value); @@ -99539,9 +101410,9 @@ public static MaybeBool WriteU8( byte ISdl.WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => ( (delegate* unmanaged)( - _slots[1134] is not null and var loadedFnPtr + _slots[1150] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1134] = nativeContext.LoadFunction("SDL_WriteU8", "SDL3") + : _slots[1150] = nativeContext.LoadFunction("SDL_WriteU8", "SDL3") ) )(dst, value); diff --git a/sources/SDL/SDL/SDL3/ThreadState.gen.cs b/sources/SDL/SDL/SDL3/ThreadState.gen.cs new file mode 100644 index 0000000000..2e4eca3e9a --- /dev/null +++ b/sources/SDL/SDL/SDL3/ThreadState.gen.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum ThreadState : uint +{ + Unknown, + Alive, + Detached, + Complete, +} diff --git a/sources/SDL/SDL/Sdl.gen.cs b/sources/SDL/SDL/Sdl.gen.cs index d661a08c35..4b5e6ebc71 100644 --- a/sources/SDL/SDL/Sdl.gen.cs +++ b/sources/SDL/SDL/Sdl.gen.cs @@ -25,7 +25,7 @@ public partial class ThisThread : ISdl.Static public static void MakeCurrent(ISdl ctx) => Underlying.Value = ctx; } - private readonly unsafe void*[] _slots = new void*[1135]; + private readonly unsafe void*[] _slots = new void*[1151]; public static ISdl Instance { get; } = new StaticWrapper(); public static ISdl Create() => Instance; diff --git a/tests/SDL/SDL/SDL3/SDL_RenderEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_RenderEventTests.gen.cs new file mode 100644 index 0000000000..28bcbe17a6 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_RenderEventTests.gen.cs @@ -0,0 +1,36 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_RenderEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(RenderEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(RenderEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(RenderEvent), Is.EqualTo(24)); + } +}