gpu: add Surface.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
340739ad44
commit
637e0c92d3
2 changed files with 7 additions and 5 deletions
|
|
@ -1,8 +1,3 @@
|
||||||
pub const WGPUSurfaceDescriptor = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
label: ?[*:0]const u8 = null,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPUSurfaceDescriptorFromAndroidNativeWindow = extern struct {
|
pub const WGPUSurfaceDescriptorFromAndroidNativeWindow = extern struct {
|
||||||
chain: ChainedStruct,
|
chain: ChainedStruct,
|
||||||
window: *anyopaque,
|
window: *anyopaque,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
|
|
||||||
pub const Surface = enum(usize) {
|
pub const Surface = 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: Surface = @intToEnum(Surface, 0);
|
pub const none: Surface = @intToEnum(Surface, 0);
|
||||||
|
|
||||||
|
pub const Descriptor = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
label: ?[*:0]const u8 = null,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue