gpu: add TogglesDeviceDescriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
cb80cfc3c2
commit
5e4aa7e6df
4 changed files with 19 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue