Struct vulkano::sync::AccessFlags
source · pub struct AccessFlags(/* private fields */);
Expand description
A set of memory access types that are included in a memory dependency.
Implementations§
source§impl AccessFlags
impl AccessFlags
sourcepub const INDIRECT_COMMAND_READ: Self = _
pub const INDIRECT_COMMAND_READ: Self = _
Read access to an indirect buffer.
sourcepub const INDEX_READ: Self = _
pub const INDEX_READ: Self = _
Read access to an index buffer.
sourcepub const VERTEX_ATTRIBUTE_READ: Self = _
pub const VERTEX_ATTRIBUTE_READ: Self = _
Read access to a vertex buffer.
sourcepub const UNIFORM_READ: Self = _
pub const UNIFORM_READ: Self = _
Read access to a uniform buffer in a shader.
sourcepub const INPUT_ATTACHMENT_READ: Self = _
pub const INPUT_ATTACHMENT_READ: Self = _
Read access to an input attachment in a fragment shader, within a render pass.
sourcepub const SHADER_READ: Self = _
pub const SHADER_READ: Self = _
Read access to a buffer or image in a shader.
It is currently equivalent to setting all of the following flags, but automatically omitting any that are not supported in a given context. It also implicitly includes future flags that are added to Vulkan, if they are not yet supported by Vulkano.
uniform_read
shader_sampled_read
shader_storage_read
shader_binding_table_read
sourcepub const SHADER_WRITE: Self = _
pub const SHADER_WRITE: Self = _
Write access to a buffer or image in a shader.
It is currently equivalent to shader_storage_write
. It also implicitly includes future
flags that are added to Vulkan, if they are not yet supported by Vulkano.
sourcepub const COLOR_ATTACHMENT_READ: Self = _
pub const COLOR_ATTACHMENT_READ: Self = _
Read access to a color attachment during blending, logic operations or subpass load operations.
sourcepub const COLOR_ATTACHMENT_WRITE: Self = _
pub const COLOR_ATTACHMENT_WRITE: Self = _
Write access to a color, resolve or depth/stencil resolve attachment during a render pass or subpass store operations.
sourcepub const DEPTH_STENCIL_ATTACHMENT_READ: Self = _
pub const DEPTH_STENCIL_ATTACHMENT_READ: Self = _
Read access to a depth/stencil attachment during depth/stencil operations or subpass load operations.
sourcepub const DEPTH_STENCIL_ATTACHMENT_WRITE: Self = _
pub const DEPTH_STENCIL_ATTACHMENT_WRITE: Self = _
Write access to a depth/stencil attachment during depth/stencil operations or subpass store operations.
sourcepub const TRANSFER_READ: Self = _
pub const TRANSFER_READ: Self = _
Read access to a buffer or image during a copy, blit or resolve command.
sourcepub const TRANSFER_WRITE: Self = _
pub const TRANSFER_WRITE: Self = _
Write access to a buffer or image during a copy, blit, resolve or clear command.
sourcepub const HOST_WRITE: Self = _
pub const HOST_WRITE: Self = _
Write access performed by the host.
sourcepub const MEMORY_READ: Self = _
pub const MEMORY_READ: Self = _
Any type of read access.
This is equivalent to setting all _read
flags that are allowed in the given context.
sourcepub const MEMORY_WRITE: Self = _
pub const MEMORY_WRITE: Self = _
Any type of write access.
This is equivalent to setting all _write
flags that are allowed in the given context.
sourcepub const SHADER_SAMPLED_READ: Self = _
pub const SHADER_SAMPLED_READ: Self = _
Read access to a uniform texel buffer or sampled image in a shader.
sourcepub const SHADER_STORAGE_READ: Self = _
pub const SHADER_STORAGE_READ: Self = _
Read access to a storage buffer, storage texel buffer or storage image in a shader.
sourcepub const SHADER_STORAGE_WRITE: Self = _
pub const SHADER_STORAGE_WRITE: Self = _
Write access to a storage buffer, storage texel buffer or storage image in a shader.
sourcepub const VIDEO_DECODE_READ: Self = _
pub const VIDEO_DECODE_READ: Self = _
Read access to an image or buffer as part of a video decode operation.
sourcepub const VIDEO_DECODE_WRITE: Self = _
pub const VIDEO_DECODE_WRITE: Self = _
Write access to an image or buffer as part of a video decode operation.
sourcepub const VIDEO_ENCODE_READ: Self = _
pub const VIDEO_ENCODE_READ: Self = _
Read access to an image or buffer as part of a video encode operation.
sourcepub const VIDEO_ENCODE_WRITE: Self = _
pub const VIDEO_ENCODE_WRITE: Self = _
Write access to an image or buffer as part of a video encode operation.
sourcepub const TRANSFORM_FEEDBACK_WRITE: Self = _
pub const TRANSFORM_FEEDBACK_WRITE: Self = _
Write access to a transform feedback buffer during transform feedback operations.
sourcepub const TRANSFORM_FEEDBACK_COUNTER_READ: Self = _
pub const TRANSFORM_FEEDBACK_COUNTER_READ: Self = _
Read access to a transform feedback counter buffer during transform feedback operations.
sourcepub const TRANSFORM_FEEDBACK_COUNTER_WRITE: Self = _
pub const TRANSFORM_FEEDBACK_COUNTER_WRITE: Self = _
Write access to a transform feedback counter buffer during transform feedback operations.
sourcepub const CONDITIONAL_RENDERING_READ: Self = _
pub const CONDITIONAL_RENDERING_READ: Self = _
Read access to a predicate during conditional rendering.
sourcepub const COMMAND_PREPROCESS_READ: Self = _
pub const COMMAND_PREPROCESS_READ: Self = _
Read access to preprocess buffers input to preprocess_generated_commands
.
sourcepub const COMMAND_PREPROCESS_WRITE: Self = _
pub const COMMAND_PREPROCESS_WRITE: Self = _
Read access to sequences buffers output by preprocess_generated_commands
.
sourcepub const FRAGMENT_SHADING_RATE_ATTACHMENT_READ: Self = _
pub const FRAGMENT_SHADING_RATE_ATTACHMENT_READ: Self = _
Read access to a fragment shading rate attachment during rasterization.
sourcepub const ACCELERATION_STRUCTURE_READ: Self = _
pub const ACCELERATION_STRUCTURE_READ: Self = _
Read access to an acceleration structure or acceleration structure scratch buffer during trace, build or copy commands.
sourcepub const ACCELERATION_STRUCTURE_WRITE: Self = _
pub const ACCELERATION_STRUCTURE_WRITE: Self = _
Write access to an acceleration structure or acceleration structure scratch buffer during trace, build or copy commands.
sourcepub const FRAGMENT_DENSITY_MAP_READ: Self = _
pub const FRAGMENT_DENSITY_MAP_READ: Self = _
Read access to a fragment density map attachment during dynamic fragment density map operations.
sourcepub const COLOR_ATTACHMENT_READ_NONCOHERENT: Self = _
pub const COLOR_ATTACHMENT_READ_NONCOHERENT: Self = _
Read access to color attachments when performing advanced blend operations.
sourcepub const INVOCATION_MASK_READ: Self = _
pub const INVOCATION_MASK_READ: Self = _
Read access to an invocation mask image.
sourcepub const SHADER_BINDING_TABLE_READ: Self = _
pub const SHADER_BINDING_TABLE_READ: Self = _
Read access to a shader binding table.
sourcepub const MICROMAP_READ: Self = _
pub const MICROMAP_READ: Self = _
Read access to a micromap object.
sourcepub const MICROMAP_WRITE: Self = _
pub const MICROMAP_WRITE: Self = _
Write access to a micromap object.
sourcepub const OPTICAL_FLOW_READ: Self = _
pub const OPTICAL_FLOW_READ: Self = _
Read access to a buffer or image during optical flow operations.
sourcepub const OPTICAL_FLOW_WRITE: Self = _
pub const OPTICAL_FLOW_WRITE: Self = _
Write access to a buffer or image during optical flow operations.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a AccessFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for AccessFlags
impl BitAnd for AccessFlags
source§impl BitAndAssign for AccessFlags
impl BitAndAssign for AccessFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for AccessFlags
impl BitOr for AccessFlags
source§impl BitOrAssign for AccessFlags
impl BitOrAssign for AccessFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for AccessFlags
impl BitXor for AccessFlags
source§impl BitXorAssign for AccessFlags
impl BitXorAssign for AccessFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for AccessFlags
impl Clone for AccessFlags
source§fn clone(&self) -> AccessFlags
fn clone(&self) -> AccessFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessFlags
impl Debug for AccessFlags
source§impl Default for AccessFlags
impl Default for AccessFlags
source§impl From<AccessFlags> for AccessFlags
impl From<AccessFlags> for AccessFlags
source§fn from(val: AccessFlags) -> Self
fn from(val: AccessFlags) -> Self
source§impl From<AccessFlags> for AccessFlags2
impl From<AccessFlags> for AccessFlags2
source§fn from(val: AccessFlags) -> Self
fn from(val: AccessFlags) -> Self
source§impl From<AccessFlags2> for AccessFlags
impl From<AccessFlags2> for AccessFlags
source§fn from(val: AccessFlags2) -> Self
fn from(val: AccessFlags2) -> Self
source§impl From<PipelineStages> for AccessFlags
impl From<PipelineStages> for AccessFlags
source§fn from(val: PipelineStages) -> Self
fn from(val: PipelineStages) -> Self
Corresponds to the table “Supported access types” in the Vulkan specification.
source§impl Hash for AccessFlags
impl Hash for AccessFlags
source§impl PartialEq for AccessFlags
impl PartialEq for AccessFlags
source§fn eq(&self, other: &AccessFlags) -> bool
fn eq(&self, other: &AccessFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for AccessFlags
impl Sub for AccessFlags
source§impl SubAssign for AccessFlags
impl SubAssign for AccessFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more