gpu: fix string handling / pointer casting

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 08:36:06 -07:00 committed by Stephen Gutekanst
parent ce46b2a652
commit bd1d91faa3
5 changed files with 22 additions and 22 deletions

View file

@ -27,9 +27,9 @@ pub const CodeTag = enum {
};
pub const Descriptor = struct {
label: ?[]const u8 = null,
label: ?[*:0]const u8 = null,
code: union(CodeTag) {
wgsl: [:0]const u8,
wgsl: [*:0]const u8,
spirv: []const u32,
},
};