gpu: update defaults/optionality for ColorTargetState/VertexState

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 09:22:39 -07:00 committed by Stephen Gutekanst
parent e1a0c6dee6
commit 937d0120a3
3 changed files with 9 additions and 7 deletions

View file

@ -113,7 +113,7 @@ pub const RenderPassDescriptor = extern struct {
label: ?[*:0]const u8 = null,
color_attachment_count: u32,
color_attachments: [*]const types.RenderPassColorAttachment,
depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment = null, // nullable
depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment = null,
occlusion_query_set: ?query_set.QuerySet,
timestamp_write_count: u32,
timestamp_writes: [*]const RenderPassTimestampWrite,