pub struct Surface { /* private fields */ }
Implementations§
Source§impl Surface
impl Surface
pub fn new(entry: &Entry, instance: &Instance) -> Self
Sourcepub unsafe fn get_physical_device_surface_support(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
surface: SurfaceKHR,
) -> VkResult<bool>
pub unsafe fn get_physical_device_surface_support( &self, physical_device: PhysicalDevice, queue_family_index: u32, surface: SurfaceKHR, ) -> VkResult<bool>
Sourcepub unsafe fn get_physical_device_surface_present_modes(
&self,
physical_device: PhysicalDevice,
surface: SurfaceKHR,
) -> VkResult<Vec<PresentModeKHR>>
pub unsafe fn get_physical_device_surface_present_modes( &self, physical_device: PhysicalDevice, surface: SurfaceKHR, ) -> VkResult<Vec<PresentModeKHR>>
Sourcepub unsafe fn get_physical_device_surface_capabilities(
&self,
physical_device: PhysicalDevice,
surface: SurfaceKHR,
) -> VkResult<SurfaceCapabilitiesKHR>
pub unsafe fn get_physical_device_surface_capabilities( &self, physical_device: PhysicalDevice, surface: SurfaceKHR, ) -> VkResult<SurfaceCapabilitiesKHR>
Sourcepub unsafe fn get_physical_device_surface_formats(
&self,
physical_device: PhysicalDevice,
surface: SurfaceKHR,
) -> VkResult<Vec<SurfaceFormatKHR>>
pub unsafe fn get_physical_device_surface_formats( &self, physical_device: PhysicalDevice, surface: SurfaceKHR, ) -> VkResult<Vec<SurfaceFormatKHR>>
Sourcepub unsafe fn destroy_surface(
&self,
surface: SurfaceKHR,
allocation_callbacks: Option<&AllocationCallbacks>,
)
pub unsafe fn destroy_surface( &self, surface: SurfaceKHR, allocation_callbacks: Option<&AllocationCallbacks>, )
pub const fn name() -> &'static CStr
pub fn fp(&self) -> &KhrSurfaceFn
pub fn instance(&self) -> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)