Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Make WGPUVertexBufferLayout and WGPUVertexAttribute extensible #410

Merged
merged 2 commits into from
Nov 13, 2024
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
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
Loading