[][src]Struct lava::VkBufferUsageFlags

pub struct VkBufferUsageFlags {
    pub transfer_src: bool,
    pub transfer_dst: bool,
    pub uniform_texel_buffer: bool,
    pub storage_texel_buffer: bool,
    pub uniform_buffer: bool,
    pub storage_buffer: bool,
    pub index_buffer: bool,
    pub vertex_buffer: bool,
    pub indirect_buffer: bool,
    pub shader_device_address: bool,
    pub transform_feedback_buffer_ext: bool,
    pub transform_feedback_counter_buffer_ext: bool,
    pub conditional_rendering_ext: bool,
    pub ray_tracing_khr: bool,
}

Wrapper for VkBufferUsageFlags.

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

VkBufferUsageFlags!(transfer_src, transfer_dst)
VkBufferUsageFlags {
    transfer_src: true,
    transfer_dst: true,
    ..VkBufferUsageFlags::none()
}

Fields

transfer_src: booltransfer_dst: booluniform_texel_buffer: boolstorage_texel_buffer: booluniform_buffer: boolstorage_buffer: boolindex_buffer: boolvertex_buffer: boolindirect_buffer: boolshader_device_address: booltransform_feedback_buffer_ext: booltransform_feedback_counter_buffer_ext: boolconditional_rendering_ext: boolray_tracing_khr: bool

Methods

impl VkBufferUsageFlags[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 VkBufferUsageFlags[src]

impl Debug for VkBufferUsageFlags[src]

impl Default for VkBufferUsageFlags[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.