[−][src]Struct rendy_wsi::Target
Rendering target bound to window. With swapchain created.
Methods
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.
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<(), Error>
[src]
&mut self,
physical_device: &B::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::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> 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,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,