vulkan 32/64 bit parity
This commit is contained in:
@@ -103,9 +103,10 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case .TypedefDecl:
|
case .TypedefDecl:
|
||||||
String prefix = scope .(64);
|
|
||||||
var spelling = GetCursorSpelling!(cursor);
|
var spelling = GetCursorSpelling!(cursor);
|
||||||
|
if (spelling.StartsWith("Vk")) return;
|
||||||
|
|
||||||
|
String prefix = scope .(64);
|
||||||
if (spelling == "SDL_Keycode")
|
if (spelling == "SDL_Keycode")
|
||||||
prefix.Set("SDLK_");
|
prefix.Set("SDLK_");
|
||||||
else
|
else
|
||||||
@@ -225,6 +226,9 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
|||||||
}
|
}
|
||||||
FixCurly();
|
FixCurly();
|
||||||
return;
|
return;
|
||||||
|
case .StructDecl:
|
||||||
|
var spelling = GetCursorSpelling!(cursor);
|
||||||
|
if (spelling.StartsWith("Vk")) return;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
base.HandleCursor(cursor);
|
base.HandleCursor(cursor);
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ static class SDL
|
|||||||
typealias CrcUint32 = Uint32;
|
typealias CrcUint32 = Uint32;
|
||||||
typealias CrcUint8 = Uint8;
|
typealias CrcUint8 = Uint8;
|
||||||
|
|
||||||
|
public typealias VkInstance = int;
|
||||||
|
public typealias VkSurfaceKHR = uint64;
|
||||||
|
public typealias VkPhysicalDevice = int;
|
||||||
|
public struct VkAllocationCallbacks;
|
||||||
|
|
||||||
[OnCompile(.TypeDone)]
|
[OnCompile(.TypeDone)]
|
||||||
private static void Build()
|
private static void Build()
|
||||||
{
|
{
|
||||||
|
|||||||
+4
-4
@@ -74,10 +74,10 @@ extension SDL
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
[CRepr] public struct VkInstance_T;public typealias VkInstance = VkInstance_T*;
|
|
||||||
[CRepr] public struct VkPhysicalDevice_T;public typealias VkPhysicalDevice = VkPhysicalDevice_T*;
|
|
||||||
[CRepr] public struct VkSurfaceKHR_T;public typealias VkSurfaceKHR = VkSurfaceKHR_T*;
|
|
||||||
[CRepr] public struct VkAllocationCallbacks;
|
|
||||||
|
|
||||||
/* Make sure to undef to avoid issues in case of later vulkan include */
|
/* Make sure to undef to avoid issues in case of later vulkan include */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user