gpu: add Surface.DescriptorFromXlibWindow
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7b748eaca1
commit
2273d2517e
2 changed files with 6 additions and 6 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
pub const WGPUSurfaceDescriptorFromXlibWindow = extern struct {
|
|
||||||
chain: ChainedStruct,
|
|
||||||
display: *anyopaque,
|
|
||||||
window: u32,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPUSwapChainDescriptor = extern struct {
|
pub const WGPUSwapChainDescriptor = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
label: ?[*:0]const u8 = null,
|
label: ?[*:0]const u8 = null,
|
||||||
|
|
|
||||||
|
|
@ -47,4 +47,10 @@ pub const Surface = enum(usize) {
|
||||||
chain: ChainedStruct,
|
chain: ChainedStruct,
|
||||||
swap_chain_panel: *anyopaque,
|
swap_chain_panel: *anyopaque,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const DescriptorFromXlibWindow = extern struct {
|
||||||
|
chain: ChainedStruct,
|
||||||
|
display: *anyopaque,
|
||||||
|
window: u32,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue