From d3b1cab50b3ba3cb70b3d610a90da3a21561b52a Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Thu, 19 Dec 2024 15:19:34 -0800 Subject: [PATCH] Add storage limits for Compat --- webgpu.h | 20 ++++++++++++++++++++ webgpu.yml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/webgpu.h b/webgpu.h index a143beb1..a090a27b 100644 --- a/webgpu.h +++ b/webgpu.h @@ -2031,10 +2031,26 @@ typedef struct WGPULimits { * The `INIT` macro sets this to @ref WGPU_LIMIT_U32_UNDEFINED. */ uint32_t maxStorageBuffersPerShaderStage; + /** + * The `INIT` macro sets this to @ref WGPU_LIMIT_U32_UNDEFINED. + */ + uint32_t maxStorageBuffersInVertexStage; + /** + * The `INIT` macro sets this to @ref WGPU_LIMIT_U32_UNDEFINED. + */ + uint32_t maxStorageBuffersInFragmentStage; /** * The `INIT` macro sets this to @ref WGPU_LIMIT_U32_UNDEFINED. */ uint32_t maxStorageTexturesPerShaderStage; + /** + * The `INIT` macro sets this to @ref WGPU_LIMIT_U32_UNDEFINED. + */ + uint32_t maxStorageTexturesInVertexStage; + /** + * The `INIT` macro sets this to @ref WGPU_LIMIT_U32_UNDEFINED. + */ + uint32_t maxStorageTexturesInFragmentStage; /** * The `INIT` macro sets this to @ref WGPU_LIMIT_U32_UNDEFINED. */ @@ -2126,7 +2142,11 @@ typedef struct WGPULimits { /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ + /*.maxStorageBuffersInVertexStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ + /*.maxStorageBuffersInFragmentStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ + /*.maxStorageTexturesInVertexStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ + /*.maxStorageTexturesInFragmentStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \ /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \ /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \ diff --git a/webgpu.yml b/webgpu.yml index 2f4af11f..cd8214a9 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -2142,11 +2142,31 @@ structs: TODO type: uint32 default: constant.limit_u32_undefined + - name: max_storage_buffers_in_vertex_stage + doc: | + TODO + type: uint32 + default: constant.limit_u32_undefined + - name: max_storage_buffers_in_fragment_stage + doc: | + TODO + type: uint32 + default: constant.limit_u32_undefined - name: max_storage_textures_per_shader_stage doc: | TODO type: uint32 default: constant.limit_u32_undefined + - name: max_storage_textures_in_vertex_stage + doc: | + TODO + type: uint32 + default: constant.limit_u32_undefined + - name: max_storage_textures_in_fragment_stage + doc: | + TODO + type: uint32 + default: constant.limit_u32_undefined - name: max_uniform_buffers_per_shader_stage doc: | TODO