[−][src]Struct gfx_backend_gl::Surface
Implementations
impl Surface
[src]
pub fn make_context_current(&self)
[src]
Make the surface's gl context the current context
pub fn context(&self) -> Starc<RwLock<Context>>
[src]
Trait Implementations
impl Debug for Surface
[src]
impl Drop for Surface
[src]
impl PresentationSurface<Backend> for Surface
[src]
type SwapchainImage = ImageView
An opaque type wrapping the swapchain image.
unsafe fn configure_swapchain(
&mut self,
device: &Device,
config: SwapchainConfig
) -> Result<(), CreationError>
[src]
&mut self,
device: &Device,
config: SwapchainConfig
) -> Result<(), CreationError>
unsafe fn unconfigure_swapchain(&mut self, device: &Device)
[src]
unsafe fn acquire_image(
&mut self,
_timeout_ns: u64
) -> Result<(Self::SwapchainImage, Option<Suboptimal>), AcquireError>
[src]
&mut self,
_timeout_ns: u64
) -> Result<(Self::SwapchainImage, Option<Suboptimal>), AcquireError>
impl Surface<Backend> for Surface
[src]
fn supports_queue_family(&self, _: &QueueFamily) -> bool
[src]
fn capabilities(&self, _physical_device: &PhysicalDevice) -> SurfaceCapabilities
[src]
fn supported_formats(
&self,
_physical_device: &PhysicalDevice
) -> Option<Vec<Format>>
[src]
&self,
_physical_device: &PhysicalDevice
) -> Option<Vec<Format>>
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,