gpu: add Surface.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:10:24 -07:00 committed by Stephen Gutekanst
parent 340739ad44
commit 637e0c92d3
2 changed files with 7 additions and 5 deletions

View file

@ -1,8 +1,3 @@
pub const WGPUSurfaceDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
};
pub const WGPUSurfaceDescriptorFromAndroidNativeWindow = extern struct {
chain: ChainedStruct,
window: *anyopaque,

View file

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