Skip to content

Commit

Permalink
New enum values for wgpu-native specific enums (#294)
Browse files Browse the repository at this point in the history
* New enum values for wgpu-native specific enums.

webgpu-native/webgpu-headers#214

* update comment

Co-authored-by: Almar Klein <almar@almarklein.org>

---------

Co-authored-by: Almar Klein <almar@almarklein.org>
  • Loading branch information
rajveermalviya and almarklein authored Sep 20, 2023
1 parent 19d2681 commit baaee05
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ffi/wgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
#include "webgpu-headers/webgpu.h"

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,
// Start at 0003 since that's allocated range for wgpu-native
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;

Expand Down

0 comments on commit baaee05

Please sign in to comment.