[][src]Struct lava::VkAccessFlags

pub struct VkAccessFlags {
    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 transform_feedback_write_ext: bool,
    pub transform_feedback_counter_read_ext: bool,
    pub transform_feedback_counter_write_ext: bool,
    pub conditional_rendering_read_ext: bool,
    pub command_process_read_nvx: bool,
    pub command_process_write_nvx: bool,
    pub color_attachment_read_noncoherent_ext: bool,
    pub shading_rate_image_read_nv: bool,
    pub acceleration_structure_read_nv: bool,
    pub acceleration_structure_write_nv: bool,
    pub fragment_density_map_read_ext: bool,
}

Wrapper for VkAccessFlags.

Use the macro VkAccessFlags! as an alternative method to create a structure. For example, these two snippets return the same value:

VkAccessFlags!(indirect_command_read, index_read)
VkAccessFlags {
    indirect_command_read: true,
    index_read: true,
    ..VkAccessFlags::none()
}

Fields

indirect_command_read: boolindex_read: boolvertex_attribute_read: booluniform_read: boolinput_attachment_read: boolshader_read: boolshader_write: boolcolor_attachment_read: boolcolor_attachment_write: booldepth_stencil_attachment_read: booldepth_stencil_attachment_write: booltransfer_read: booltransfer_write: boolhost_read: boolhost_write: boolmemory_read: boolmemory_write: booltransform_feedback_write_ext: booltransform_feedback_counter_read_ext: booltransform_feedback_counter_write_ext: boolconditional_rendering_read_ext: boolcommand_process_read_nvx: boolcommand_process_write_nvx: boolcolor_attachment_read_noncoherent_ext: boolshading_rate_image_read_nv: boolacceleration_structure_read_nv: boolacceleration_structure_write_nv: boolfragment_density_map_read_ext: bool

Methods

impl VkAccessFlags[src]

pub fn none() -> Self[src]

Return a structure with all flags to false.

pub fn all() -> Self[src]

Return a structure with all flags to true.

pub fn to_u32(&self) -> u32[src]

Return the numerical bit flags corresponding to the structure (as described in the Vulkan specs).

pub fn from_u32(value: u32) -> Self[src]

Create a structure corresponding to the specified numerical bit flags.

Trait Implementations

impl Clone for VkAccessFlags[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for VkAccessFlags[src]

impl Debug for VkAccessFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]