pub struct Surface { /* private fields */ }
Available on crate feature
vulkan
only.Trait Implementations§
source§impl Surface<Api> for Surface
impl Surface<Api> for Surface
unsafe fn configure( &mut self, device: &Device, config: &SurfaceConfiguration ) -> Result<(), SurfaceError>
unsafe fn unconfigure(&mut self, device: &Device)
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