Struct vulkano::sync::AccessFlagBits
source · pub struct AccessFlagBits {Show 17 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,
}
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
Implementations
sourceimpl AccessFlagBits
impl AccessFlagBits
sourcepub fn all() -> AccessFlagBits
pub fn all() -> AccessFlagBits
Builds an AccessFlagBits
struct with all bits set.
sourcepub fn none() -> AccessFlagBits
pub fn none() -> AccessFlagBits
Builds an AccessFlagBits
struct with none of the bits set.
sourceimpl AccessFlagBits
impl AccessFlagBits
sourcepub fn is_compatible_with(&self, stages: &PipelineStages) -> bool
pub fn is_compatible_with(&self, stages: &PipelineStages) -> bool
Returns true if the access flags can be used with the given pipeline stages.
Corresponds to Table 4. Supported access types
in section 6.1.3. Access Types
of the
Vulkan specs.
Trait Implementations
sourceimpl BitOr<AccessFlagBits> for AccessFlagBits
impl BitOr<AccessFlagBits> for AccessFlagBits
type Output = AccessFlagBits
type Output = AccessFlagBits
The resulting type after applying the
|
operator.sourcefn bitor(self, rhs: AccessFlagBits) -> AccessFlagBits
fn bitor(self, rhs: AccessFlagBits) -> AccessFlagBits
Performs the
|
operation. Read moresourceimpl BitOrAssign<AccessFlagBits> for AccessFlagBits
impl BitOrAssign<AccessFlagBits> for AccessFlagBits
sourcefn bitor_assign(&mut self, rhs: AccessFlagBits)
fn bitor_assign(&mut self, rhs: AccessFlagBits)
Performs the
|=
operation. Read moresourceimpl Clone for AccessFlagBits
impl Clone for AccessFlagBits
sourcefn clone(&self) -> AccessFlagBits
fn clone(&self) -> AccessFlagBits
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 AccessFlagBits
impl Debug for AccessFlagBits
impl Copy for AccessFlagBits
Auto Trait Implementations
impl RefUnwindSafe for AccessFlagBits
impl Send for AccessFlagBits
impl Sync for AccessFlagBits
impl Unpin for AccessFlagBits
impl UnwindSafe for AccessFlagBits
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.