[−][src]Struct rendy_wsi::Target
Rendering target bound to window. With swapchain created.
Implementations
impl<B> Target<B> where
B: Backend,
[src]
B: Backend,
pub fn device_id(&self) -> DeviceId
[src]
Get owned id.
pub fn assert_device_owner(&self, device: &Device<B>)
[src]
Assert specified device is owner.
pub fn instance_id(&self) -> InstanceId
[src]
Get owned id.
pub fn assert_instance_owner(&self, instance: &Instance<B>)
[src]
Assert specified instance is owner.
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::Swapchain
[src]
Get raw surface handle.
pub unsafe fn recreate(
&mut self,
physical_device: &B::PhysicalDevice,
device: &Device<B>,
suggest_extent: Extent2D
) -> Result<(), SwapchainError>
[src]
&mut self,
physical_device: &B::PhysicalDevice,
device: &Device<B>,
suggest_extent: Extent2D
) -> Result<(), SwapchainError>
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::Semaphore
) -> Result<NextImages<'_, B>, AcquireError>
[src]
&mut self,
signal: &B::Semaphore
) -> Result<NextImages<'_, B>, AcquireError>
Acquire next image.
Trait Implementations
Auto Trait Implementations
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,
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> 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> 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> 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,
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,
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.
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>,