gpu: add Instance.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
128f87a3fd
commit
8f80cdc321
2 changed files with 6 additions and 4 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue