Skip to content

Commit

Permalink
Proposal: Move nullability inside WGPURenderPassDepthStencilAttachment
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Nov 12, 2024
1 parent f848447 commit 28689af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,9 @@ typedef struct WGPURenderBundleEncoderDescriptor {
} WGPURenderBundleEncoderDescriptor WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPURenderPassDepthStencilAttachment {
/**
* Texture view to use as a depth/stencil attachment. Null indicates there is no attachment; other fields are ignored.
*/
WGPUTextureView view;
WGPULoadOp depthLoadOp;
WGPUStoreOp depthStoreOp;
Expand Down Expand Up @@ -2158,7 +2161,7 @@ typedef struct WGPURenderPassDescriptor {
WGPUStringView label;
size_t colorAttachmentCount;
WGPURenderPassColorAttachment const * colorAttachments;
WGPU_NULLABLE WGPURenderPassDepthStencilAttachment const * depthStencilAttachment;
WGPURenderPassDepthStencilAttachment depthStencilAttachment;
WGPU_NULLABLE WGPUQuerySet occlusionQuerySet;
WGPU_NULLABLE WGPURenderPassTimestampWrites const * timestampWrites;
} WGPURenderPassDescriptor WGPU_STRUCTURE_ATTRIBUTE;
Expand Down
4 changes: 1 addition & 3 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2341,7 +2341,7 @@ structs:
members:
- name: view
doc: |
TODO
Texture view to use as a depth/stencil attachment. Null indicates there is no attachment; other fields are ignored.
type: object.texture_view
- name: depth_load_op
doc: |
Expand Down Expand Up @@ -2393,8 +2393,6 @@ structs:
doc: |
TODO
type: struct.render_pass_depth_stencil_attachment
pointer: immutable
optional: true
- name: occlusion_query_set
doc: |
TODO
Expand Down

0 comments on commit 28689af

Please sign in to comment.