gpu: implement RenderPassColorAttachment

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 22:03:22 -07:00 committed by Stephen Gutekanst
parent 510c7de9f2
commit f5a5c7eaa7
3 changed files with 61 additions and 20 deletions

View file

@ -53,9 +53,9 @@ pub inline fn setLabel(pass: RenderPassEncoder, label: [:0]const u8) void {
pub const Descriptor = struct {
label: ?[*:0]const u8 = null,
color_attachments: []const RenderPassColorAttachment,
depth_stencil_attachment: *const RenderPassDepthStencilAttachment,
occlusion_query_set: QuerySet,
timestamp_writes: []RenderPassTimestampWrite,
depth_stencil_attachment: ?*const RenderPassDepthStencilAttachment,
occlusion_query_set: ?QuerySet = null,
timestamp_writes: ?[]RenderPassTimestampWrite = null,
};
test "syntax" {