pub struct Surface { /* private fields */ }
Trait Implementations§
source§impl Surface<Api> for Surface
impl Surface<Api> for Surface
source§unsafe fn configure(
&mut self,
device: &Device,
config: &SurfaceConfiguration
) -> Result<(), SurfaceError>
unsafe fn configure( &mut self, device: &Device, config: &SurfaceConfiguration ) -> Result<(), SurfaceError>
Configures the surface to use the given device. Read more
source§unsafe fn unconfigure(&mut self, device: &Device)
unsafe fn unconfigure(&mut self, device: &Device)
Unconfigures the surface on the given device. Read more
source§unsafe fn acquire_texture(
&mut self,
timeout: Option<Duration>
) -> Result<Option<AcquiredSurfaceTexture<Api>>, SurfaceError>
unsafe fn acquire_texture( &mut self, timeout: Option<Duration> ) -> Result<Option<AcquiredSurfaceTexture<Api>>, SurfaceError>
Returns the next texture to be presented by the swapchain for drawing Read more
unsafe fn discard_texture(&mut self, _texture: SurfaceTexture)
Auto Trait Implementations§
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