Struct vulkano::sync::AccessFlags
source · [−]pub struct AccessFlags {Show 18 fields
pub indirect_command_read: bool,
pub index_read: bool,
pub vertex_attribute_read: bool,
pub uniform_read: bool,
pub input_attachment_read: bool,
pub shader_read: bool,
pub shader_write: bool,
pub color_attachment_read: bool,
pub color_attachment_write: bool,
pub depth_stencil_attachment_read: bool,
pub depth_stencil_attachment_write: bool,
pub transfer_read: bool,
pub transfer_write: bool,
pub host_read: bool,
pub host_write: bool,
pub memory_read: bool,
pub memory_write: bool,
pub _ne: NonExhaustive,
}
Fields
indirect_command_read: bool
index_read: bool
vertex_attribute_read: bool
uniform_read: bool
input_attachment_read: bool
shader_read: bool
shader_write: bool
color_attachment_read: bool
color_attachment_write: bool
depth_stencil_attachment_read: bool
depth_stencil_attachment_write: bool
transfer_read: bool
transfer_write: bool
host_read: bool
host_write: bool
memory_read: bool
memory_write: bool
_ne: NonExhaustive
Implementations
sourceimpl AccessFlags
impl AccessFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
Use empty
instead.
Returns 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 set in self
or other
, but not both.
Trait Implementations
sourceimpl BitAnd<AccessFlags> for AccessFlags
impl BitAnd<AccessFlags> for AccessFlags
type Output = AccessFlags
type Output = AccessFlags
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<AccessFlags> for AccessFlags
impl BitAndAssign<AccessFlags> for AccessFlags
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<AccessFlags> for AccessFlags
impl BitOr<AccessFlags> for AccessFlags
type Output = AccessFlags
type Output = AccessFlags
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<AccessFlags> for AccessFlags
impl BitOrAssign<AccessFlags> for AccessFlags
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<AccessFlags> for AccessFlags
impl BitXor<AccessFlags> for AccessFlags
type Output = AccessFlags
type Output = AccessFlags
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<AccessFlags> for AccessFlags
impl BitXorAssign<AccessFlags> for AccessFlags
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for AccessFlags
impl Clone for AccessFlags
sourcefn clone(&self) -> AccessFlags
fn clone(&self) -> AccessFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AccessFlags
impl Debug for AccessFlags
sourceimpl Default for AccessFlags
impl Default for AccessFlags
sourceimpl From<AccessFlags> for AccessFlags
impl From<AccessFlags> for AccessFlags
sourcefn from(val: AccessFlags) -> Self
fn from(val: AccessFlags) -> Self
Converts to this type from the input type.
sourceimpl From<AccessFlags> for AccessFlags2
impl From<AccessFlags> for AccessFlags2
sourcefn from(val: AccessFlags) -> Self
fn from(val: AccessFlags) -> Self
Converts to this type from the input type.
sourceimpl From<AccessFlags2> for AccessFlags
impl From<AccessFlags2> for AccessFlags
sourcefn from(val: AccessFlags2) -> Self
fn from(val: AccessFlags2) -> Self
Converts to this type from the input type.
sourceimpl Hash for AccessFlags
impl Hash for AccessFlags
sourceimpl PartialEq<AccessFlags> for AccessFlags
impl PartialEq<AccessFlags> for AccessFlags
sourcefn eq(&self, other: &AccessFlags) -> bool
fn eq(&self, other: &AccessFlags) -> bool
sourceimpl Sub<AccessFlags> for AccessFlags
impl Sub<AccessFlags> for AccessFlags
type Output = AccessFlags
type Output = AccessFlags
The resulting type after applying the
-
operator.sourceimpl SubAssign<AccessFlags> for AccessFlags
impl SubAssign<AccessFlags> for AccessFlags
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for AccessFlags
impl Eq for AccessFlags
impl StructuralEq for AccessFlags
impl StructuralPartialEq for AccessFlags
Auto Trait Implementations
impl RefUnwindSafe for AccessFlags
impl Send for AccessFlags
impl Sync for AccessFlags
impl Unpin for AccessFlags
impl UnwindSafe for AccessFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more