pub struct Target<B: Backend> { /* private fields */ }
Expand description
Rendering target bound to window. With swapchain created.
Implementations§
Source§impl<B> Target<B>where
B: Backend,
impl<B> Target<B>where
B: Backend,
Sourcepub fn assert_device_owner(&self, device: &Device<B>)
pub fn assert_device_owner(&self, device: &Device<B>)
Assert specified device is owner.
Sourcepub fn instance_id(&self) -> InstanceId
pub fn instance_id(&self) -> InstanceId
Get owned id.
Sourcepub fn assert_instance_owner(&self, instance: &Instance<B>)
pub fn assert_instance_owner(&self, instance: &Instance<B>)
Assert specified instance is owner.
Source§impl<B> Target<B>where
B: Backend,
impl<B> Target<B>where
B: Backend,
Sourcepub unsafe fn recreate(
&mut self,
physical_device: &B::PhysicalDevice,
device: &Device<B>,
suggest_extent: Extent2D,
) -> Result<(), SwapchainError>
pub unsafe fn recreate( &mut self, physical_device: &B::PhysicalDevice, device: &Device<B>, suggest_extent: Extent2D, ) -> Result<(), SwapchainError>
Recreate swapchain.
#Safety
Current swapchain must be not in use.
Sourcepub unsafe fn swapchain_mut(&mut self) -> &mut impl Swapchain<B>
pub unsafe fn swapchain_mut(&mut self) -> &mut impl Swapchain<B>
Sourcepub fn backbuffer(&self) -> &Vec<Image<B>>
pub fn backbuffer(&self) -> &Vec<Image<B>>
Get raw handlers for the swapchain images.
Sourcepub unsafe fn next_image(
&mut self,
signal: &B::Semaphore,
) -> Result<NextImages<'_, B>, AcquireError>
pub unsafe fn next_image( &mut self, signal: &B::Semaphore, ) -> Result<NextImages<'_, B>, AcquireError>
Acquire next image.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Target<B>
impl<B> RefUnwindSafe for Target<B>where
<B as Backend>::Surface: RefUnwindSafe,
<B as Backend>::Swapchain: RefUnwindSafe,
<B as Backend>::Image: RefUnwindSafe,
<B as Backend>::Memory: RefUnwindSafe,
impl<B> Send for Target<B>
impl<B> Sync for Target<B>
impl<B> Unpin for Target<B>
impl<B> UnwindSafe for Target<B>where
<B as Backend>::Surface: UnwindSafe,
<B as Backend>::Swapchain: UnwindSafe,
<B as Backend>::Image: UnwindSafe,
<B as Backend>::Memory: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more