Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -3767,6 +3767,12 @@ typedef struct WGPUBindGroupLayoutEntry {
* The `INIT` macro sets this to @ref WGPUShaderStage_None.
*/
WGPUShaderStage visibility;
/**
* If non-zero, this entry defines a binding array with this size.
*
* The `INIT` macro sets this to `0`.
*/
uint32_t bindingArraySize;
/**
* The `INIT` macro sets this to zero (which sets the entry to `BindingNotUsed`).
*/
Expand All @@ -3792,6 +3798,7 @@ typedef struct WGPUBindGroupLayoutEntry {
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.binding=*/0 _wgpu_COMMA \
/*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
/*.bindingArraySize=*/0 _wgpu_COMMA \
/*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
/*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
/*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
Expand Down
4 changes: 4 additions & 0 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,10 @@ structs:
TODO
type: bitflag.shader_stage
default: none
- name: binding_array_size
doc: |
If non-zero, this entry defines a binding array with this size.
type: uint32
- name: buffer
doc: |
TODO
Expand Down