pub(crate) struct NativeSurface {
raw: SurfaceKHR,
functor: Instance,
instance: Arc<InstanceShared>,
}Fields§
§raw: SurfaceKHR§functor: Instance§instance: Arc<InstanceShared>Implementations§
Source§impl NativeSurface
impl NativeSurface
pub fn from_vk_surface_khr(instance: &Instance, raw: SurfaceKHR) -> Self
pub fn as_raw(&self) -> SurfaceKHR
Trait Implementations§
Source§impl Surface for NativeSurface
impl Surface for NativeSurface
Source§unsafe fn delete_surface(self: Box<Self>)
unsafe fn delete_surface(self: Box<Self>)
Deletes the surface and associated resources. Read more
Source§fn surface_capabilities(&self, adapter: &Adapter) -> Option<SurfaceCapabilities>
fn surface_capabilities(&self, adapter: &Adapter) -> Option<SurfaceCapabilities>
Returns the surface capabilities for the given adapter. Read more
Source§unsafe fn create_swapchain(
&self,
device: &Device,
config: &SurfaceConfiguration,
provided_old_swapchain: Option<Box<dyn Swapchain>>,
) -> Result<Box<dyn Swapchain>, SurfaceError>
unsafe fn create_swapchain( &self, device: &Device, config: &SurfaceConfiguration, provided_old_swapchain: Option<Box<dyn Swapchain>>, ) -> Result<Box<dyn Swapchain>, SurfaceError>
Creates a swapchain for the surface with the given configuration. Read more
Auto Trait Implementations§
impl Freeze for NativeSurface
impl !RefUnwindSafe for NativeSurface
impl Send for NativeSurface
impl Sync for NativeSurface
impl Unpin for NativeSurface
impl !UnwindSafe for NativeSurface
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