[][src]Struct rendy_wsi::Target

pub struct Target<B: Backend> { /* fields omitted */ }

Rendering target bound to window. With swapchain created.

Methods

impl<B> Target<B> where
    B: Backend
[src]

pub unsafe fn dispose(
    self,
    device: &impl Device<B>
)
[src]

Dispose of target.

Safety

Swapchain must be not in use.

pub fn surface(&self) -> &B::Surface[src]

Get raw surface handle.

pub fn swapchain(&self) -> &B::Swapchain[src]

Get raw surface handle.

pub unsafe fn swapchain_mut(
    &mut self
) -> &mut impl Swapchain<B>
[src]

Get swapchain impl trait.

Safety

Trait usage should not violate this type valid usage.

pub fn backbuffer(&self) -> &Backbuffer<B>[src]

Get raw handlers for the swapchain images.

pub unsafe fn next_image(
    &mut self,
    signal: &B::Semaphore
) -> Result<NextImages<B>, AcquireError>
[src]

Acquire next image.

pub fn window(&self) -> &Window[src]

Get a reference to the internal window.

Trait Implementations

impl<B> Debug for Target<B> where
    B: Backend
[src]

Auto Trait Implementations

impl<B> Send for Target<B> where
    <B as Backend>::Framebuffer: Send,
    <B as Backend>::Image: Send + Sync,
    <B as Backend>::Surface: Send,
    <B as Backend>::Swapchain: Send

impl<B> Sync for Target<B> where
    <B as Backend>::Framebuffer: Sync,
    <B as Backend>::Image: Send + Sync,
    <B as Backend>::Surface: Sync,
    <B as Backend>::Swapchain: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Supports for T[src]

impl<T> Erased for T