gpu: add PipelineLayout.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3ec84f516a
commit
d19c868fb6
3 changed files with 24 additions and 14 deletions
|
|
@ -1,3 +1,5 @@
|
|||
const BindGroup = @import("BindGroup.zig");
|
||||
|
||||
const PipelineLayout = @This();
|
||||
|
||||
/// The type erased pointer to the PipelineLayout implementation
|
||||
|
|
@ -23,8 +25,14 @@ pub inline fn setLabel(qset: PipelineLayout, label: [:0]const u8) void {
|
|||
qset.vtable.setLabel(qset.ptr, label);
|
||||
}
|
||||
|
||||
pub const Descriptor = struct {
|
||||
label: ?[*:0]const u8 = null,
|
||||
bind_group_layouts: []const BindGroup.Layout,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
_ = Descriptor;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue