[−][src]Struct lava::VkAccessFlags
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: 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
transform_feedback_write_ext: bool
transform_feedback_counter_read_ext: bool
transform_feedback_counter_write_ext: bool
conditional_rendering_read_ext: bool
color_attachment_read_noncoherent_ext: bool
acceleration_structure_read_khr: bool
acceleration_structure_write_khr: bool
shading_rate_image_read_nv: bool
fragment_density_map_read_ext: bool
command_preprocess_read_nv: bool
command_preprocess_write_nv: 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(&self) -> VkAccessFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VkAccessFlags
[src]
impl Default for VkAccessFlags
[src]
fn default() -> VkAccessFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for VkAccessFlags
impl Send for VkAccessFlags
impl Sync for VkAccessFlags
impl Unpin for VkAccessFlags
impl UnwindSafe for VkAccessFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,