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 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