Add swapchain (work in progress)
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s

This commit is contained in:
Florian RICHER 2024-11-12 22:01:08 +01:00
parent caa79270db
commit ee8b886aec
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
7 changed files with 139 additions and 13 deletions

View file

@ -35,6 +35,7 @@ impl Window {
let mut extension_names = ash_window::enumerate_required_extensions(display_handle.as_raw())?
.to_vec();
// TODO: Move this because is not related to Window extensions
#[cfg(any(target_os = "macos", target_os = "ios"))]
{
extension_names.push(ash::khr::portability_enumeration::NAME.as_ptr());
@ -48,6 +49,10 @@ impl Window {
pub fn handle(&self) -> Option<&winit::window::Window> {
self.handle.as_ref()
}
pub fn size(&self) -> Option<winit::dpi::Size> {
self.window_attributes.inner_size
}
pub fn window_event(&mut self, _event_loop: &ActiveEventLoop, _id: WindowId, event: WindowEvent) {
match event {