[−][src]Struct amethyst_rendy::rendy::wsi::Target
Rendering target bound to window. With swapchain created.
Methods
impl<B> Target<B> where
B: Backend,
[src][−]
B: Backend,
pub unsafe fn dispose(self, device: &Device<B>) -> Surface<B>
[src][−]
pub fn surface(&self) -> &Surface<B>
[src][−]
Get raw surface handle.
pub fn swapchain(&self) -> &<B as Backend>::Swapchain
[src][−]
Get raw surface handle.
pub unsafe fn recreate(
&mut self,
physical_device: &<B as Backend>::PhysicalDevice,
device: &Device<B>,
suggest_extent: Extent2D
) -> Result<(), Error>
[src][−]
&mut self,
physical_device: &<B as Backend>::PhysicalDevice,
device: &Device<B>,
suggest_extent: Extent2D
) -> Result<(), Error>
Recreate swapchain.
#Safety
Current swapchain must be not in use.
pub unsafe fn swapchain_mut(&mut self) -> &mut impl Swapchain<B>
[src][−]
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 as Backend>::Semaphore
) -> Result<NextImages<B>, AcquireError>
[src][−]
&mut self,
signal: &<B as Backend>::Semaphore
) -> Result<NextImages<B>, AcquireError>
Acquire next image.
impl<B> Target<B> where
B: Backend,
[−]
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.
Trait Implementations
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,
<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,
<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,
<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,
<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,
<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][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src][+]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
impl<T> SetParameter for T
[src][+]
impl<T> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src][+]
SS: SubsetOf<SP>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src][+]
T: Any,
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,