Skip to content

Commit

Permalink
Proposal: Make WGPUVertexBufferLayout and WGPUVertexAttribute extensi…
Browse files Browse the repository at this point in the history
…ble (#410)
  • Loading branch information
kainino0x authored Nov 13, 2024
1 parent bac5208 commit 075474d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1971,6 +1971,7 @@ typedef struct WGPUTextureViewDescriptor {
} WGPUTextureViewDescriptor WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPUVertexAttribute {
WGPUChainedStruct const * nextInChain;
WGPUVertexFormat format;
uint64_t offset;
uint32_t shaderLocation;
Expand Down Expand Up @@ -2117,6 +2118,7 @@ typedef struct WGPUTextureDescriptor {
} WGPUTextureDescriptor WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPUVertexBufferLayout {
WGPUChainedStruct const * nextInChain;
/**
* The step mode for the vertex buffer. If @ref WGPUVertexStepMode_VertexBufferNotUsed,
* indicates a "hole" in the parent @ref WGPUVertexState `buffers` array:
Expand Down
4 changes: 2 additions & 2 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2964,7 +2964,7 @@ structs:
- name: vertex_attribute
doc: |
TODO
type: standalone
type: base_in
members:
- name: format
doc: |
Expand All @@ -2981,7 +2981,7 @@ structs:
- name: vertex_buffer_layout
doc: |
TODO
type: standalone
type: base_in
members:
- name: step_mode
doc: |
Expand Down

0 comments on commit 075474d

Please sign in to comment.