gpu: add TogglesDeviceDescriptor.init slice helper

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-16 17:32:03 -07:00
parent cb80cfc3c2
commit 5e4aa7e6df
4 changed files with 19 additions and 5 deletions

View file

@ -96,7 +96,7 @@ pub const BindGroupLayout = opaque {
entries: ?[*]const Entry = null,
/// Provides a slightly friendlier Zig API to initialize this structure.
pub fn init(v: struct {
pub inline fn init(v: struct {
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
entries: ?[]const Entry = null,