gpu: add PipelineLayout.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 10:44:52 -07:00 committed by Stephen Gutekanst
parent 4fc752723c
commit f8e8af0cae
4 changed files with 13 additions and 10 deletions

View file

@ -1,6 +1,16 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
pub const PipelineLayout = enum(usize) {
_,
// TODO: verify there is a use case for nullable value of this type.
pub const none: PipelineLayout = @intToEnum(PipelineLayout, 0);
pub const Descriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
bind_group_layout_count: u32,
bind_group_layouts: [*]const BindGroupLayout,
};
};