This commit is contained in:
parent
d0c6f31a1a
commit
caa79270db
5 changed files with 58 additions and 42 deletions
|
@ -1,6 +1,6 @@
|
|||
use crate::vulkan::{VkPhysicalDevice, LOG_TARGET};
|
||||
use ash::prelude::VkResult;
|
||||
use ash::vk;
|
||||
use crate::vulkan::VkPhysicalDevice;
|
||||
|
||||
pub struct VkSurface {
|
||||
surface_loader: ash::khr::surface::Instance,
|
||||
|
@ -14,7 +14,7 @@ impl VkSurface {
|
|||
) -> Self {
|
||||
Self {
|
||||
surface_loader,
|
||||
surface
|
||||
surface,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ impl VkSurface {
|
|||
self.surface_loader.get_physical_device_surface_support(
|
||||
physical_device.handle,
|
||||
queue_index,
|
||||
self.surface
|
||||
self.surface,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ impl VkSurface {
|
|||
unsafe {
|
||||
self.surface_loader.get_physical_device_surface_formats(
|
||||
physical_device.handle,
|
||||
self.surface
|
||||
self.surface,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ impl VkSurface {
|
|||
unsafe {
|
||||
self.surface_loader.get_physical_device_surface_capabilities(
|
||||
physical_device.handle,
|
||||
self.surface
|
||||
self.surface,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ impl VkSurface {
|
|||
unsafe {
|
||||
self.surface_loader.get_physical_device_surface_present_modes(
|
||||
physical_device.handle,
|
||||
self.surface
|
||||
self.surface,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -61,6 +61,6 @@ impl Drop for VkSurface {
|
|||
unsafe {
|
||||
self.surface_loader.destroy_surface(self.surface, None);
|
||||
}
|
||||
log::debug!("Surface destroyed");
|
||||
log::debug!(target: LOG_TARGET, "Surface destroyed");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue