pub struct VkSurface {
pub surface: SurfaceKHR,
pub surface_loader: Surface,
}
Fields
surface: SurfaceKHR
surface_loader: Surface
Implementations
sourceimpl VkSurface
impl VkSurface
pub fn get_capabilities(
&self,
device: &VkDevice
) -> VkResult<SurfaceCapabilitiesKHR>
pub fn get_present_modes(
&self,
device: &VkDevice
) -> VkResult<Vec<PresentModeKHR>>
pub fn get_formats(&self, device: &VkDevice) -> VkResult<Vec<SurfaceFormatKHR>>
pub fn get_physical_device_surface_support(
&self,
device: &VkDevice,
queue_family_index: usize
) -> VkResult<bool>
pub fn resolution(&self, device: &VkDevice) -> VkResult<Extent2D>
pub fn resolution_slice(&self, device: &VkDevice) -> VkResult<[f32; 2]>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VkSurface
impl Send for VkSurface
impl Sync for VkSurface
impl Unpin for VkSurface
impl UnwindSafe for VkSurface
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more