Struct AccessFlags

Source
pub struct AccessFlags {
    pub read: VkAccessFlags,
    pub write: VkAccessFlags,
}
Expand description

Access Types

Fields§

§read: VkAccessFlags§write: VkAccessFlags

Implementations§

Source§

impl AccessFlags

Source

pub const INDIRECT_COMMAND_READ: VkAccessFlags = 1u32

Specifies read access to an indirect command structure read as part of an indirect drawing or dispatch command.

Source

pub const INDEX_READ: VkAccessFlags = 2u32

Specifies read access to an index buffer as part of an indexed drawing command, bound by vkCmdBindIndexBuffer.

Source

pub const VERTEX_ATTRIBUTE_READ: VkAccessFlags = 4u32

Specifies read access to a vertex buffer as part of a drawing command, bound by vkCmdBindVertexBuffers.

Source

pub const UNIFORM_READ: VkAccessFlags = 8u32

Specifies read access to a uniform buffer.

Source

pub const INPUT_ATTACHMENT_READ: VkAccessFlags = 16u32

Specifies read access to an input attachment within a render pass during fragment shading.

Source

pub const SHADER: Self

Specifies read/write access to a storage buffer, uniform texel buffer(read only), storage texel buffer, samples image(read only), or storage image.

Source

pub const COLOR_ATTACHMENT: Self

Source

pub const DEPTH_STENCIL_ATTACHMENT: Self

Source

pub const TRANSFER: Self

Specifies read/write access to an image or buffer in a clear(write only) or copy operation.

Source

pub const HOST: Self

Specifies read/write access by a host operation. Accesses of this type are not performed through a resource, but directly on memory.

Source

pub const MEMORY: Self

Specifies read/write access via non-specific entities. These entities include the Vulkan device and host, but may also include entities external to the Vulkan device or otherwise not part of the core Vulkan pipeline.

  • When the write mask included in a source access mask, all writes that are performed by entities known to the Vulkan device are made available.
  • When included in a destination access mask, makes all available writes visible to all future read accesses on entities known to the Vulkan device.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.