Struct gfx_backend_gl::Surface [−][src]
pub struct Surface { /* fields omitted */ }
Trait Implementations
type SwapchainImage = SwapchainImage
type SwapchainImage = SwapchainImage
An opaque type wrapping the swapchain image.
unsafe fn configure_swapchain(
&mut self,
device: &Device,
config: SwapchainConfig
) -> Result<(), SwapchainError>
unsafe fn configure_swapchain(
&mut self,
device: &Device,
config: SwapchainConfig
) -> Result<(), SwapchainError>
Set up the swapchain associated with the surface to have the given format.
Remove the associated swapchain from this surface. Read more
unsafe fn acquire_image(
&mut self,
_timeout_ns: u64
) -> Result<(Self::SwapchainImage, Option<Suboptimal>), AcquireError>
unsafe fn acquire_image(
&mut self,
_timeout_ns: u64
) -> Result<(Self::SwapchainImage, Option<Suboptimal>), AcquireError>
Acquire a new swapchain image for rendering. Read more