38 lines
731 B
Zig
38 lines
731 B
Zig
|
|
/// ----------------------------------------------------
|
||
|
|
/// ----------------------------------------------------
|
||
|
|
pub const Window = union(enum) {
|
||
|
|
win32: struct {
|
||
|
|
hwnd: *anyopaque,
|
||
|
|
hinstance: *anyopaque,
|
||
|
|
},
|
||
|
|
|
||
|
|
xcb: struct {
|
||
|
|
connection: *anyopaque,
|
||
|
|
window: u32,
|
||
|
|
},
|
||
|
|
|
||
|
|
xlib: struct {
|
||
|
|
display: *anyopaque,
|
||
|
|
window: c_ulong,
|
||
|
|
},
|
||
|
|
|
||
|
|
wayland: struct {
|
||
|
|
display: *anyopaque,
|
||
|
|
surface: *anyopaque,
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
//
|
||
|
|
// HANDLE TYPES
|
||
|
|
//
|
||
|
|
|
||
|
|
pub const Buffer = struct {};
|
||
|
|
|
||
|
|
pub const Image = struct {};
|
||
|
|
pub const ImageView = struct {};
|
||
|
|
pub const Sampler = struct {};
|
||
|
|
|
||
|
|
pub const Shader = struct {};
|
||
|
|
pub const Pipeline = struct {};
|
||
|
|
pub const PipelineLayout = struct {};
|