56 lines
1.5 KiB
Zig
56 lines
1.5 KiB
Zig
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,
|
|
};
|
|
|
|
pub const DescriptorFromAndroidNativeWindow = extern struct {
|
|
chain: ChainedStruct,
|
|
window: *anyopaque,
|
|
};
|
|
|
|
pub const DescriptorFromCanvasHTMLSelector = extern struct {
|
|
chain: ChainedStruct,
|
|
selector: [*:0]const u8,
|
|
};
|
|
|
|
pub const DescriptorFromMetalLayer = extern struct {
|
|
chain: ChainedStruct,
|
|
layer: *anyopaque,
|
|
};
|
|
|
|
pub const DescriptorFromWaylandSurface = extern struct {
|
|
chain: ChainedStruct,
|
|
display: *anyopaque,
|
|
surface: *anyopaque,
|
|
};
|
|
|
|
pub const DescriptorFromWindowsCoreWindow = extern struct {
|
|
chain: ChainedStruct,
|
|
core_window: *anyopaque,
|
|
};
|
|
|
|
pub const DescriptorFromWindowsHWND = extern struct {
|
|
chain: ChainedStruct,
|
|
hinstance: *anyopaque,
|
|
hwnd: *anyopaque,
|
|
};
|
|
|
|
pub const DescriptorFromWindowsSwapChainPanel = extern struct {
|
|
chain: ChainedStruct,
|
|
swap_chain_panel: *anyopaque,
|
|
};
|
|
|
|
pub const DescriptorFromXlibWindow = extern struct {
|
|
chain: ChainedStruct,
|
|
display: *anyopaque,
|
|
window: u32,
|
|
};
|
|
};
|