gpu: add Queue.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 19:54:54 -07:00 committed by Stephen Gutekanst
parent 0eff9e1cb3
commit 8163a5876c
2 changed files with 7 additions and 5 deletions

View file

@ -1,8 +1,3 @@
pub const WGPUQueueDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
};
pub const WGPURenderBundleDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,

View file

@ -1,3 +1,5 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
pub const Queue = enum(usize) {
_,
@ -10,4 +12,9 @@ pub const Queue = enum(usize) {
unknown = 0x00000002,
device_lost = 0x00000003,
};
pub const Descriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
};
};