[][src]Struct bedrock::ImageMemoryBarrier

pub struct 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]

Construct a new barrier descriptor

pub fn new_raw<SR>(
    res: &Image,
    subres: &SR,
    old: ImageLayout,
    new: ImageLayout
) -> Self where
    SR: Borrow<VkImageSubresourceRange>, 
[src]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.