gpu: add RenderPassDescriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 21:03:20 -07:00 committed by Stephen Gutekanst
parent 8484d47e78
commit 2fa5e5adf4
2 changed files with 12 additions and 11 deletions

View file

@ -1,14 +1,3 @@
pub const WGPURenderPassDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
color_attachment_count: u32,
color_attachments: [*]const RenderPassColorAttachment,
depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment = null, // nullable
occlusion_query_set: QuerySet = QuerySet.none, // nullable
timestamp_write_count: u32,
timestamp_writes: [*]const RenderPassTimestampWrite,
};
pub const VertexState = extern struct {
next_in_chain: *const ChainedStruct,
module: ShaderModule,