pub struct AccessFlags {
pub read: VkAccessFlags,
pub write: VkAccessFlags,
}
Expand description
Access Types
Fields§
§read: VkAccessFlags
§write: VkAccessFlags
Implementations§
Source§impl AccessFlags
impl AccessFlags
Sourcepub const INDIRECT_COMMAND_READ: VkAccessFlags = 1u32
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.
Sourcepub const INDEX_READ: VkAccessFlags = 2u32
pub const INDEX_READ: VkAccessFlags = 2u32
Specifies read access to an index buffer as part of an indexed drawing command, bound by vkCmdBindIndexBuffer
.
Sourcepub const VERTEX_ATTRIBUTE_READ: VkAccessFlags = 4u32
pub const VERTEX_ATTRIBUTE_READ: VkAccessFlags = 4u32
Specifies read access to a vertex buffer as part of a drawing command, bound by vkCmdBindVertexBuffers
.
Sourcepub const UNIFORM_READ: VkAccessFlags = 8u32
pub const UNIFORM_READ: VkAccessFlags = 8u32
Specifies read access to a uniform buffer.
Sourcepub const INPUT_ATTACHMENT_READ: VkAccessFlags = 16u32
pub const INPUT_ATTACHMENT_READ: VkAccessFlags = 16u32
Specifies read access to an input attachment within a render pass during fragment shading.
Sourcepub const SHADER: Self
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.
Sourcepub const COLOR_ATTACHMENT: Self
pub const COLOR_ATTACHMENT: Self
read
: Specifies read access to a color attachment, such as via blending, logic operations, or via certain subpass load operations.write
: specifies write access to a color or resolve attachment during a render pass or via certain subpass load and store operations.
Sourcepub const DEPTH_STENCIL_ATTACHMENT: Self
pub const DEPTH_STENCIL_ATTACHMENT: Self
read
: Specifies read access to a depth/stencil attachment, via depth or stencil operations or via certain subpass load operations.write
: Specifies write access to a depth/stencil attachment, via depth or stencil operations or via certain subpass load and store operations.
Sourcepub const HOST: Self
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.
Sourcepub const MEMORY: Self
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.