gpu: add Instance.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 00:28:53 -07:00 committed by Stephen Gutekanst
parent 128f87a3fd
commit 8f80cdc321
2 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,3 @@
typedef struct WGPUInstanceDescriptor {
next_in_chain: *const ChainedStruct,
} WGPUInstanceDescriptor;
typedef struct WGPUMultisampleState { typedef struct WGPUMultisampleState {
next_in_chain: *const ChainedStruct, next_in_chain: *const ChainedStruct,
count: u32, count: u32,

View file

@ -1,6 +1,12 @@
pub const ChainedStruct = @import("types.zig").ChainedStruct;
pub const Instance = enum(usize) { pub const Instance = enum(usize) {
_, _,
// TODO: verify there is a use case for nullable value of this type. // TODO: verify there is a use case for nullable value of this type.
pub const none: Instance = @intToEnum(Instance, 0); pub const none: Instance = @intToEnum(Instance, 0);
pub const Descriptor = extern struct {
next_in_chain: *const ChainedStruct,
};
}; };