pub struct Surface { /* private fields */ }Implementations§
Source§impl Surface
impl Surface
pub fn new( entry: &Entry, instance: Arc<Instance>, raw_display_handle: RawDisplayHandle, raw_window_handle: RawWindowHandle, ) -> Result<Self, SurfaceCreationError>
pub fn get_physical_device_surface_support( &self, physical_device: &PhysicalDevice, queue_family_index: u32, ) -> VkResult<bool>
pub fn get_physical_device_surface_capabilities( &self, physical_device: &PhysicalDevice, ) -> VkResult<SurfaceCapabilitiesKHR>
pub fn get_physical_device_surface_formats( &self, physical_device: &PhysicalDevice, ) -> VkResult<Vec<SurfaceFormatKHR>>
pub fn get_physical_device_surface_present_modes( &self, physical_device: &PhysicalDevice, ) -> VkResult<Vec<PresentModeKHR>>
pub fn handle(&self) -> SurfaceKHR
pub fn surface_loader(&self) -> &Surface
pub fn instance(&self) -> &Arc<Instance>
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