Skip to content

Commit 6f59005

Browse files
committed
Add remap-stdint.rsp for Vulkan
Only uint64_t=ulong affects the generation, but the others are included to be slightly more complete. This does not fix the enum backing types though, which also differ between Linux/Windows. See this conversation in the Silk.NET Discord for more information: https://discord.com/channels/521092042781229087/1376331581198827520/1376628539536969949 Relevant ClangSharp issue: dotnet/ClangSharp#574
1 parent 20ef463 commit 6f59005

File tree

164 files changed

+1591
-1583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1591
-1583
lines changed

.silktouch/34f29eca37f140e7.stout

0 Bytes
Binary file not shown.

.silktouch/9e67eb90438793e2.stout

1.6 MB
Binary file not shown.

.silktouch/baee07d7b1f57893.stout

1.6 MB
Binary file not shown.

.silktouch/f951354756cbc62a.stout

1.6 MB
Binary file not shown.

eng/silktouch/vulkan/remap-stdint.rsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--remap
2+
int32_t=int
3+
uint32_t=uint
4+
int64_t=long
5+
uint64_t=ulong

eng/silktouch/vulkan/remap.rsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
@../remap-stdint.rsp
12
--remap
23
TODO_ADD_REMAPPINGS=HERE

eng/silktouch/vulkan/settings.rsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ TODO_DEFINE_MACROS=HERE
55
../header.txt
66
--include-directory
77
../../../submodules/vulkan-headers/include
8+
# TODO: Remove this
9+
/usr/lib/clang/19/include
810
--with-callconv
911
*=Winapi
1012
--with-librarypath

sources/Vulkan/Vulkan/IVulkan/IVulkan.gen.cs

Lines changed: 442 additions & 442 deletions
Large diffs are not rendered by default.

sources/Vulkan/Vulkan/Vulkan/AccelerationStructureBuildSizesInfoKHR.gen.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public unsafe partial struct AccelerationStructureBuildSizesInfoKHR
4141
"VK_KHR_deferred_host_operations+VK_VERSION_1_2",
4242
]
4343
)]
44-
public nuint AccelerationStructureSize;
44+
public ulong AccelerationStructureSize;
4545

4646
[NativeTypeName("VkDeviceSize")]
4747
[SupportedApiProfile(
@@ -52,7 +52,7 @@ public unsafe partial struct AccelerationStructureBuildSizesInfoKHR
5252
"VK_KHR_deferred_host_operations+VK_VERSION_1_2",
5353
]
5454
)]
55-
public nuint UpdateScratchSize;
55+
public ulong UpdateScratchSize;
5656

5757
[NativeTypeName("VkDeviceSize")]
5858
[SupportedApiProfile(
@@ -63,5 +63,5 @@ public unsafe partial struct AccelerationStructureBuildSizesInfoKHR
6363
"VK_KHR_deferred_host_operations+VK_VERSION_1_2",
6464
]
6565
)]
66-
public nuint BuildScratchSize;
66+
public ulong BuildScratchSize;
6767
}

sources/Vulkan/Vulkan/Vulkan/AccelerationStructureCreateInfoKHR.gen.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public unsafe partial struct AccelerationStructureCreateInfoKHR
6363
"VK_KHR_deferred_host_operations+VK_VERSION_1_2",
6464
]
6565
)]
66-
public nuint Offset;
66+
public ulong Offset;
6767

6868
[NativeTypeName("VkDeviceSize")]
6969
[SupportedApiProfile(
@@ -74,7 +74,7 @@ public unsafe partial struct AccelerationStructureCreateInfoKHR
7474
"VK_KHR_deferred_host_operations+VK_VERSION_1_2",
7575
]
7676
)]
77-
public nuint Size;
77+
public ulong Size;
7878

7979
[SupportedApiProfile(
8080
"vulkan",
@@ -95,5 +95,5 @@ public unsafe partial struct AccelerationStructureCreateInfoKHR
9595
"VK_KHR_deferred_host_operations+VK_VERSION_1_2",
9696
]
9797
)]
98-
public nuint DeviceAddress;
98+
public ulong DeviceAddress;
9999
}

0 commit comments

Comments
 (0)