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

source

pub const INDIRECT_COMMAND_READ: Self = _

Read access to an indirect buffer.

source

pub const INDEX_READ: Self = _

Read access to an index buffer.

source

pub const VERTEX_ATTRIBUTE_READ: Self = _

Read access to a vertex buffer.

source

pub const UNIFORM_READ: Self = _

Read access to a uniform buffer in a shader.

source

pub const INPUT_ATTACHMENT_READ: Self = _

Read access to an input attachment in a fragment shader, within a render pass.

source

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
source

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.

source

pub const COLOR_ATTACHMENT_READ: Self = _

Read access to a color attachment during blending, logic operations or subpass load operations.

source

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.

source

pub const DEPTH_STENCIL_ATTACHMENT_READ: Self = _

Read access to a depth/stencil attachment during depth/stencil operations or subpass load operations.

source

pub const DEPTH_STENCIL_ATTACHMENT_WRITE: Self = _

Write access to a depth/stencil attachment during depth/stencil operations or subpass store operations.

source

pub const TRANSFER_READ: Self = _

Read access to a buffer or image during a copy, blit or resolve command.

source

pub const TRANSFER_WRITE: Self = _

Write access to a buffer or image during a copy, blit, resolve or clear command.

source

pub const HOST_READ: Self = _

Read access performed by the host.

source

pub const HOST_WRITE: Self = _

Write access performed by the host.

source

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.

source

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.

source

pub const SHADER_SAMPLED_READ: Self = _

Read access to a uniform texel buffer or sampled image in a shader.

source

pub const SHADER_STORAGE_READ: Self = _

Read access to a storage buffer, storage texel buffer or storage image in a shader.

source

pub const SHADER_STORAGE_WRITE: Self = _

Write access to a storage buffer, storage texel buffer or storage image in a shader.

source

pub const VIDEO_DECODE_READ: Self = _

Read access to an image or buffer as part of a video decode operation.

source

pub const VIDEO_DECODE_WRITE: Self = _

Write access to an image or buffer as part of a video decode operation.

source

pub const VIDEO_ENCODE_READ: Self = _

Read access to an image or buffer as part of a video encode operation.

source

pub const VIDEO_ENCODE_WRITE: Self = _

Write access to an image or buffer as part of a video encode operation.

source

pub const TRANSFORM_FEEDBACK_WRITE: Self = _

Write access to a transform feedback buffer during transform feedback operations.

source

pub const TRANSFORM_FEEDBACK_COUNTER_READ: Self = _

Read access to a transform feedback counter buffer during transform feedback operations.

source

pub const TRANSFORM_FEEDBACK_COUNTER_WRITE: Self = _

Write access to a transform feedback counter buffer during transform feedback operations.

source

pub const CONDITIONAL_RENDERING_READ: Self = _

Read access to a predicate during conditional rendering.

source

pub const COMMAND_PREPROCESS_READ: Self = _

Read access to preprocess buffers input to preprocess_generated_commands.

source

pub const COMMAND_PREPROCESS_WRITE: Self = _

Read access to sequences buffers output by preprocess_generated_commands.

source

pub const FRAGMENT_SHADING_RATE_ATTACHMENT_READ: Self = _

Read access to a fragment shading rate attachment during rasterization.

source

pub const ACCELERATION_STRUCTURE_READ: Self = _

Read access to an acceleration structure or acceleration structure scratch buffer during trace, build or copy commands.

source

pub const ACCELERATION_STRUCTURE_WRITE: Self = _

Write access to an acceleration structure or acceleration structure scratch buffer during trace, build or copy commands.

source

pub const FRAGMENT_DENSITY_MAP_READ: Self = _

Read access to a fragment density map attachment during dynamic fragment density map operations.

source

pub const COLOR_ATTACHMENT_READ_NONCOHERENT: Self = _

Read access to color attachments when performing advanced blend operations.

source

pub const INVOCATION_MASK_READ: Self = _

Read access to an invocation mask image.

source

pub const SHADER_BINDING_TABLE_READ: Self = _

Read access to a shader binding table.

source

pub const MICROMAP_READ: Self = _

Read access to a micromap object.

source

pub const MICROMAP_WRITE: Self = _

Write access to a micromap object.

source

pub const OPTICAL_FLOW_READ: Self = _

Read access to a buffer or image during optical flow operations.

source

pub const OPTICAL_FLOW_WRITE: Self = _

Write access to a buffer or image during optical flow operations.

source

pub const fn empty() -> Self

Returns a AccessFlags with none of the flags set.

source

pub const fn none() -> Self

👎Deprecated since 0.31.0: use empty instead

Returns a AccessFlags with none of the flags set.

source

pub const fn count(self) -> u32

Returns the number of flags set in self.

source

pub const fn is_empty(self) -> bool

Returns whether no flags are set in self.

source

pub const fn intersects(self, other: Self) -> bool

Returns whether any flags are set in both self and other.

source

pub const fn contains(self, other: Self) -> bool

Returns whether all flags in other are set in self.

source

pub const fn union(self, other: Self) -> Self

Returns the union of self and other.

source

pub const fn intersection(self, other: Self) -> Self

Returns the intersection of self and other.

source

pub const fn difference(self, other: Self) -> Self

Returns self without the flags set in other.

source

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

§

type Output = AccessFlags

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
source§

impl BitAndAssign for AccessFlags

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr for AccessFlags

§

type Output = AccessFlags

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
source§

impl BitOrAssign for AccessFlags

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitXor for AccessFlags

§

type Output = AccessFlags

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Self) -> Self

Performs the ^ operation. Read more
source§

impl BitXorAssign for AccessFlags

source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
source§

impl Clone for AccessFlags

source§

fn clone(&self) -> AccessFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AccessFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for AccessFlags

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<AccessFlags> for AccessFlags

source§

fn from(val: AccessFlags) -> Self

Converts to this type from the input type.
source§

impl From<AccessFlags> for AccessFlags2

source§

fn from(val: AccessFlags) -> Self

Converts to this type from the input type.
source§

impl From<AccessFlags2> for AccessFlags

source§

fn from(val: AccessFlags2) -> Self

Converts to this type from the input type.
source§

impl From<PipelineStages> for AccessFlags

source§

fn from(val: PipelineStages) -> Self

Corresponds to the table “Supported access types” in the Vulkan specification.

source§

impl Hash for AccessFlags

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for AccessFlags

source§

fn eq(&self, other: &AccessFlags) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sub for AccessFlags

§

type Output = AccessFlags

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
source§

impl SubAssign for AccessFlags

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl Copy for AccessFlags

source§

impl Eq for AccessFlags

source§

impl StructuralEq for AccessFlags

source§

impl StructuralPartialEq for AccessFlags

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.