Add swapchain (work in progress)
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
This commit is contained in:
parent
caa79270db
commit
ee8b886aec
7 changed files with 139 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue