pub struct Surface;
Expand description
Dummy surface.
Trait Implementations§
Source§impl PresentationSurface<Backend> for Surface
impl PresentationSurface<Backend> for Surface
Source§type SwapchainImage = SwapchainImage
type SwapchainImage = SwapchainImage
An opaque type wrapping the swapchain image.
Source§unsafe fn configure_swapchain(
&mut self,
_: &Device,
_: SwapchainConfig,
) -> Result<(), SwapchainError>
unsafe fn configure_swapchain( &mut self, _: &Device, _: SwapchainConfig, ) -> Result<(), SwapchainError>
Set up the swapchain associated with the surface to have the given format.
Source§unsafe fn unconfigure_swapchain(&mut self, _: &Device)
unsafe fn unconfigure_swapchain(&mut self, _: &Device)
Remove the associated swapchain from this surface. Read more
Source§unsafe fn acquire_image(
&mut self,
_: u64,
) -> Result<(SwapchainImage, Option<Suboptimal>), AcquireError>
unsafe fn acquire_image( &mut self, _: u64, ) -> Result<(SwapchainImage, Option<Suboptimal>), AcquireError>
Acquire a new swapchain image for rendering. Read more
Source§impl Surface<Backend> for Surface
impl Surface<Backend> for Surface
Source§fn supports_queue_family(&self, _: &QueueFamily) -> bool
fn supports_queue_family(&self, _: &QueueFamily) -> bool
Check if the queue family supports presentation to this surface.
Source§fn capabilities(&self, _: &PhysicalDevice) -> SurfaceCapabilities
fn capabilities(&self, _: &PhysicalDevice) -> SurfaceCapabilities
Query surface capabilities for this physical device. Read more
Source§fn supported_formats(&self, _: &PhysicalDevice) -> Option<Vec<Format>>
fn supported_formats(&self, _: &PhysicalDevice) -> Option<Vec<Format>>
Query surface formats for this physical device. Read more
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