[][src]Struct bedrock::resources::ImageUsage

pub struct ImageUsage(pub VkImageUsageFlags);

Bitmask specifying intended usage of an image

Methods

impl ImageUsage[src]

pub const TRANSFER_SRC: Self[src]

The image can be used as the source of a transfer command

pub const TRANSFER_DEST: Self[src]

The image can be used as the destination of a transfer command

pub const SAMPLED: Self[src]

The image can be used to create ImageView suitable for occupying a DescriptorSet slot either of type DescriptorType::SampledImage or DescriptorType::CombinedImageSampler, and be sampled by a shader

pub const STORAGE: Self[src]

The image can be used to create a ImageView suitable for occupying a DescriptorSet slot of type DescriptorType::StorageImage

pub const COLOR_ATTACHMENT: Self[src]

The image can be used to create a ImageView suitable for use as a color or resolve attachment in a Framebuffer

pub const DEPTH_STENCIL_ATTACHMENT: Self[src]

The image can be used to create a ImageView suitable for use as a depth/stencil attachment in a Framebuffer

pub const TRANSIENT_ATTACHMENT: Self[src]

The memory bound to this image will have been allocated with the VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT This bit can be set for any image that can be used to create a ImageView suitable for use as a color, resolve, depth/stencil, or input attachment

pub const INPUT_ATTACHMENT: Self[src]

The image can be used to create a ImageView suitable for occupying DescriptorSet slot of type DescriptorType::InputAttachment; be read from a shader as an input attachment; and be used as an input attachment in a framebuffer

pub fn transfer_src(self) -> Self[src]

The image can be used as the source of a transfer command

pub fn transfer_dest(self) -> Self[src]

The image can be used as the destination of a transfer command

pub fn sampled(self) -> Self[src]

The image can be used to create ImageView suitable for occupying a DescriptorSet slot either of type DescriptorType::SampledImage or DescriptorType::CombinedImageSampler, and be sampled by a shader

pub fn storage(self) -> Self[src]

The image can be used to create a ImageView suitable for occupying a DescriptorSet slot of type DescriptorType::StorageImage

pub fn color_attachment(self) -> Self[src]

The image can be used to create a ImageView suitable for use as a color or resolve attachment in a Framebuffer

pub fn depth_stencil_attachment(self) -> Self[src]

The image can be used to create a ImageView suitable for use as a depth/stencil attachment in a Framebuffer

pub fn transient_attachment(self) -> Self[src]

The memory bound to this image will have been allocated with the VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT This bit can be set for any image that can be used to create a ImageView suitable for use as a color, resolve, depth/stencil, or input attachment

pub fn input_attachment(self) -> Self[src]

The image can be used to create a ImageView suitable for occupying DescriptorSet slot of type DescriptorType::InputAttachment; be read from a shader as an input attachment; and be used as an input attachment in a framebuffer

Trait Implementations

impl Clone for ImageUsage[src]

impl Copy for ImageUsage[src]

impl Debug for ImageUsage[src]

impl Eq for ImageUsage[src]

impl PartialEq<ImageUsage> for ImageUsage[src]

impl StructuralEq for ImageUsage[src]

impl StructuralPartialEq for ImageUsage[src]

Auto Trait Implementations

impl RefUnwindSafe for ImageUsage

impl Send for ImageUsage

impl Sync for ImageUsage

impl Unpin for ImageUsage

impl UnwindSafe for ImageUsage

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.