[−][src]Struct bedrock::ImageMemoryBarrier
Wrapper object of VkImageMemoryBarrier
, derscribes a memory barrier of an image.
Methods
impl ImageMemoryBarrier
[src]
pub fn new(
img: &ImageSubref,
old_layout: ImageLayout,
new_layout: ImageLayout
) -> Self
[src]
img: &ImageSubref,
old_layout: ImageLayout,
new_layout: ImageLayout
) -> Self
Construct a new barrier descriptor
pub fn new_raw<SR>(
res: &Image,
subres: &SR,
old: ImageLayout,
new: ImageLayout
) -> Self where
SR: Borrow<VkImageSubresourceRange>,
[src]
res: &Image,
subres: &SR,
old: ImageLayout,
new: ImageLayout
) -> Self where
SR: Borrow<VkImageSubresourceRange>,
Construct a new barrier descriptor from discrete pair of resource and subresource range
pub fn src_access_mask(self, mask: VkAccessFlags) -> Self
[src]
Update the source access mask
pub fn dest_access_mask(self, mask: VkAccessFlags) -> Self
[src]
Update the destination access mask
pub fn flip(self) -> Self
[src]
Flip access masks and image layouts
Trait Implementations
impl Clone for ImageMemoryBarrier
[src]
fn clone(&self) -> ImageMemoryBarrier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageMemoryBarrier
impl !Send for ImageMemoryBarrier
impl !Sync for ImageMemoryBarrier
impl Unpin for ImageMemoryBarrier
impl UnwindSafe for ImageMemoryBarrier
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,