gpu: convert CommandEncoder from enum(usize) to *opaque
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0c1a15a804
commit
05dbde311b
1 changed files with 4 additions and 9 deletions
|
|
@ -1,13 +1,8 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const CommandEncoder = enum(usize) {
|
||||
_,
|
||||
pub const CommandEncoder = *opaque {};
|
||||
|
||||
// TODO: verify there is a use case for nullable value of this type.
|
||||
pub const none: CommandEncoder = @intToEnum(CommandEncoder, 0);
|
||||
|
||||
pub const Descriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
};
|
||||
pub const CommandEncoderDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue