From 364d2e630ab062ff3d39e6c73ea3e6e7d8f4df78 Mon Sep 17 00:00:00 2001 From: rajveermalviya Date: Sat, 16 Sep 2023 22:34:03 +0530 Subject: [PATCH 1/2] New enum values for wgpu-native specific enums. https://github.com/webgpu-native/webgpu-headers/issues/214 --- ffi/wgpu.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ffi/wgpu.h b/ffi/wgpu.h index 876d464c..63f33bfa 100644 --- a/ffi/wgpu.h +++ b/ffi/wgpu.h @@ -5,21 +5,21 @@ typedef enum WGPUNativeSType { // Start at 6 to prevent collisions with webgpu STypes - WGPUSType_DeviceExtras = 0x60000001, - WGPUSType_RequiredLimitsExtras = 0x60000002, - WGPUSType_PipelineLayoutExtras = 0x60000003, - WGPUSType_ShaderModuleGLSLDescriptor = 0x60000004, - WGPUSType_SupportedLimitsExtras = 0x60000005, - WGPUSType_InstanceExtras = 0x60000006, + WGPUSType_DeviceExtras = 0x00030001, + WGPUSType_RequiredLimitsExtras = 0x00030002, + WGPUSType_PipelineLayoutExtras = 0x00030003, + WGPUSType_ShaderModuleGLSLDescriptor = 0x00030004, + WGPUSType_SupportedLimitsExtras = 0x00030005, + WGPUSType_InstanceExtras = 0x00030006, WGPUNativeSType_Force32 = 0x7FFFFFFF } WGPUNativeSType; typedef enum WGPUNativeFeature { - WGPUNativeFeature_PushConstants = 0x60000001, - WGPUNativeFeature_TextureAdapterSpecificFormatFeatures = 0x60000002, - WGPUNativeFeature_MultiDrawIndirect = 0x60000003, - WGPUNativeFeature_MultiDrawIndirectCount = 0x60000004, - WGPUNativeFeature_VertexWritableStorage = 0x60000005, + WGPUNativeFeature_PushConstants = 0x00030001, + WGPUNativeFeature_TextureAdapterSpecificFormatFeatures = 0x00030002, + WGPUNativeFeature_MultiDrawIndirect = 0x00030003, + WGPUNativeFeature_MultiDrawIndirectCount = 0x00030004, + WGPUNativeFeature_VertexWritableStorage = 0x00030005, WGPUNativeFeature_Force32 = 0x7FFFFFFF } WGPUNativeFeature; From 3bb405580365f87343176fc9ec247a536a6a06cb Mon Sep 17 00:00:00 2001 From: Rajesh Malviya Date: Wed, 20 Sep 2023 14:08:26 +0530 Subject: [PATCH 2/2] update comment Co-authored-by: Almar Klein --- ffi/wgpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffi/wgpu.h b/ffi/wgpu.h index 63f33bfa..bc061a4e 100644 --- a/ffi/wgpu.h +++ b/ffi/wgpu.h @@ -4,7 +4,7 @@ #include "webgpu-headers/webgpu.h" typedef enum WGPUNativeSType { - // Start at 6 to prevent collisions with webgpu STypes + // Start at 0003 since that's allocated range for wgpu-native WGPUSType_DeviceExtras = 0x00030001, WGPUSType_RequiredLimitsExtras = 0x00030002, WGPUSType_PipelineLayoutExtras = 0x00030003,