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

pub fn device_id(&self) -> DeviceId

Get owned id.

pub fn assert_device_owner(&self, device: &Device<B>)

Assert specified device is owner.

pub fn instance_id(&self) -> InstanceId

Get owned id.

pub fn assert_instance_owner(&self, instance: &Instance<B>)

Assert specified instance is owner.

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

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

Dispose of target.

Safety

Swapchain must be not in use.

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

Get raw surface handle.

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

Get raw surface handle.

pub unsafe fn recreate(
    &mut self,
    physical_device: &B::PhysicalDevice,
    device: &Device<B>,
    suggest_extent: Extent2D
) -> Result<(), Error>
[src]

Recreate swapchain.

#Safety

Current swapchain must be not in use.

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) -> &Vec<Image<B>>[src]

Get raw handlers for the swapchain images.

pub fn extent(&self) -> Extent2D[src]

Get render target size.

pub fn usage(&self) -> Usage[src]

Get image usage flags.

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

Acquire next image.

Trait Implementations

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

Auto Trait Implementations

impl<B> Unpin for Target<B> where
    <B as Backend>::Image: Unpin,
    <B as Backend>::Memory: Unpin,
    <B as Backend>::Surface: Unpin,
    <B as Backend>::Swapchain: Unpin

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

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

impl<B> UnwindSafe for Target<B> where
    <B as Backend>::Image: UnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe + UnwindSafe,
    <B as Backend>::Surface: UnwindSafe,
    <B as Backend>::Swapchain: UnwindSafe

impl<B> RefUnwindSafe for Target<B> where
    <B as Backend>::Image: RefUnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe,
    <B as Backend>::Surface: RefUnwindSafe,
    <B as Backend>::Swapchain: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Supports<T> for T[src]

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]