daily update on 20240104 by nitload youmu, double threading not work

This commit is contained in:
Nitload
2024-01-04 08:58:12 +08:00
parent 14eaab455f
commit 2767c91293
138 changed files with 9692 additions and 11011 deletions
@@ -132,21 +132,17 @@ namespace StgSharp.Graphics
}
[StructLayout(LayoutKind.Sequential)]
public struct GLFWgamepadstate
public unsafe struct GLFWgamepadstate
{
/*! The states of each [gamepad button](@ref gamepad_buttons), `GLFW_PRESS`
* or `GLFW_RELEASE`.
*/
byte[] buttons = new byte[15];
public fixed byte buttons[15];
/*! The states of each [gamepad axis](@ref gamepad_axes), in the range -1.0
* to 1.0 inclusive.
*/
float[] axes = new float[6];
public GLFWgamepadstate()
{
}
public fixed float axes[6];
}
[StructLayout(LayoutKind.Sequential)]
@@ -216,10 +212,8 @@ namespace StgSharp.Graphics
public bool stickyMouseButtons = false;
public bool lockKeyMods = false;
public int cursorMode = 0;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public byte[] mouseButtons = new byte[8];
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 349)]
public byte[] keys = new byte[349];
public fixed byte mouseButtons[8];
public fixed byte keys[349];
// Virtual cursor position when cursor is disabled
public double virtualCursorPosX = 0, virtualCursorPosY = 0;
public bool rawMouseMotion = false;
@@ -307,8 +301,7 @@ namespace StgSharp.Graphics
internal struct Ns
{
GLFWbool retina = false;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)]
byte[] frameName = new byte[256];
public fixed byte frameName[256];
public Ns()
{
@@ -318,10 +311,9 @@ namespace StgSharp.Graphics
internal struct X11
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)]
byte[] className = new byte[256];
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)]
byte[] instanceName = new byte[256];
public fixed byte className[256];
public fixed byte instanceName[256];
public X11()
{
@@ -337,8 +329,7 @@ namespace StgSharp.Graphics
internal struct Wl
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)]
byte[] appId = new byte[256];
public fixed byte appId[256];
public Wl()
{
@@ -517,8 +508,7 @@ namespace StgSharp.Graphics
{
GLFWbool available;
void* handle;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
byte*[] extensions = new byte*[2];
fixed ulong extensions[2];
IntPtr GetInstanceProcAddr;
GLFWbool KHR_surface;
GLFWbool KHR_win32_surface;
@@ -560,10 +550,8 @@ namespace StgSharp.Graphics
public unsafe struct GLFWmapping
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
byte[] name = new byte[128];
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 33)]
byte[] guid = new byte[33];
fixed byte name[128];
fixed byte guid[33];
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 15)]
GLFWmapelement[] buttons = new GLFWmapelement[15];
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
@@ -584,11 +572,9 @@ namespace StgSharp.Graphics
int buttonCount;
byte* hats;
int hatCount;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
byte[] name = new byte[128];
fixed byte name[128];
void* userPointer;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 33)]
byte[] guid = new byte[33];
fixed byte guid[33];
//GLFWmapping* mapping;
IntPtr mapping;
@@ -783,8 +769,7 @@ namespace StgSharp.Graphics
[StructLayout(LayoutKind.Sequential)]
internal unsafe struct VkExtensionProperties
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)]
byte[] extensionName = new byte[256];
fixed byte extensionName[256];
uint specVersion;
public VkExtensionProperties()
File diff suppressed because it is too large Load Diff