pub struct Surface {
pub create_info: Win32SurfaceCreateInfoKHR,
pub surface_capabilities: SurfaceCapabilitiesKHR,
pub surface_formats: Vec<SurfaceFormatKHR>,
pub surface_format: SurfaceFormatKHR,
pub present_modes: Vec<PresentModeKHR>,
pub present_mode: PresentModeKHR,
/* private fields */
}Fields§
§create_info: Win32SurfaceCreateInfoKHR§surface_capabilities: SurfaceCapabilitiesKHR§surface_formats: Vec<SurfaceFormatKHR>§surface_format: SurfaceFormatKHR§present_modes: Vec<PresentModeKHR>§present_mode: PresentModeKHRImplementations§
Source§impl Surface
impl Surface
pub unsafe fn create<Window>(
_instance: &Instance,
_physical_device: &PhysicalDevice,
_window: &Window,
) -> Result<Self>where
Window: HasRawDisplayHandle + HasRawWindowHandle,
pub unsafe fn destroy(self, instance: &Instance)
pub fn handle(&self) -> SurfaceKHR
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl !Send for Surface
impl !Sync for Surface
impl Unpin for Surface
impl UnwindSafe for Surface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more