pipeline_layout.zig (630B)
1 const c = @import("c.zig").c; 2 const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout; 3 const ChainedStruct = @import("common.zig").ChainedStruct; 4 const StringView = @import("common.zig").StringView; 5 6 pub const PipelineLayout = opaque { 7 pub const Descriptor = extern struct { 8 next: ?*ChainedStruct = null, 9 label: StringView, 10 bind_group_layout_count: u64, 11 bind_group_layouts: ?[*]const *BindGroupLayout, 12 }; 13 14 pub fn release(pipeline_layout: *PipelineLayout) void { 15 c.wgpuPipelineLayoutRelease(@ptrCast(pipeline_layout)); 16 } 17 18 // setLabel 19 // reference 20 };