pub struct TextureBarrier<'a, T: DynTexture + ?Sized> {
pub texture: &'a T,
pub range: ImageSubresourceRange,
pub usage: StateTransition<TextureUses>,
pub queue_family_ownership_transfer: Option<QueueFamilyOwnershipTransfer>,
}Fields§
§texture: &'a T§range: ImageSubresourceRange§usage: StateTransition<TextureUses>§queue_family_ownership_transfer: Option<QueueFamilyOwnershipTransfer>An optional Vulkan queue family ownership transfer to perform alongside
the layout/access transition described by usage.
This is honored only by the Vulkan backend; all other backends ignore
it. Leave it as None for the common case where no ownership transfer
is required. See QueueFamilyOwnershipTransfer for details.
Trait Implementations§
Source§impl<'a, T: DynTexture + ?Sized> Clone for TextureBarrier<'a, T>
impl<'a, T: DynTexture + ?Sized> Clone for TextureBarrier<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for TextureBarrier<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for TextureBarrier<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for TextureBarrier<'a, T>where
T: ?Sized,
impl<'a, T> Sync for TextureBarrier<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for TextureBarrier<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for TextureBarrier<'a, T>where
T: RefUnwindSafe + ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more