gpu: add Surface.DescriptorFromWindowsHWND

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:16:26 -07:00 committed by Stephen Gutekanst
parent 84300bd6fc
commit 1b7e753209
2 changed files with 6 additions and 6 deletions

View file

@ -1,9 +1,3 @@
pub const WGPUSurfaceDescriptorFromWindowsHWND = extern struct {
chain: ChainedStruct,
hinstance: *anyopaque,
hwnd: *anyopaque,
};
pub const WGPUSurfaceDescriptorFromWindowsSwapChainPanel = extern struct {
chain: ChainedStruct,
swap_chain_panel: *anyopaque,

View file

@ -36,4 +36,10 @@ pub const Surface = enum(usize) {
chain: ChainedStruct,
core_window: *anyopaque,
};
pub const DescriptorFromWindowsHWND = extern struct {
chain: ChainedStruct,
hinstance: *anyopaque,
hwnd: *anyopaque,
};
};