[−][src]Struct bedrock::resources::ImageUsage
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]
fn clone(&self) -> ImageUsage[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ImageUsage[src]
impl Debug for ImageUsage[src]
impl Eq for ImageUsage[src]
impl PartialEq<ImageUsage> for ImageUsage[src]
fn eq(&self, other: &ImageUsage) -> bool[src]
fn ne(&self, other: &ImageUsage) -> bool[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]
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>,