Struct VkPipelineStageFlags

Source
pub struct VkPipelineStageFlags {
Show 26 fields pub top_of_pipe: bool, pub draw_indirect: bool, pub vertex_input: bool, pub vertex_shader: bool, pub tessellation_control_shader: bool, pub tessellation_evaluation_shader: bool, pub geometry_shader: bool, pub fragment_shader: bool, pub early_fragment_tests: bool, pub late_fragment_tests: bool, pub color_attachment_output: bool, pub compute_shader: bool, pub transfer: bool, pub bottom_of_pipe: bool, pub host: bool, pub all_graphics: bool, pub all_commands: bool, pub transform_feedback_ext: bool, pub conditional_rendering_ext: bool, pub ray_tracing_shader_khr: bool, pub acceleration_structure_build_khr: bool, pub shading_rate_image_nv: bool, pub task_shader_nv: bool, pub mesh_shader_nv: bool, pub fragment_density_process_ext: bool, pub command_preprocess_nv: bool,
}
Expand description

Wrapper for VkPipelineStageFlags.

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

VkPipelineStageFlags!(top_of_pipe, draw_indirect)
VkPipelineStageFlags {
    top_of_pipe: true,
    draw_indirect: true,
    ..VkPipelineStageFlags::none()
}

Fields§

§top_of_pipe: bool§draw_indirect: bool§vertex_input: bool§vertex_shader: bool§tessellation_control_shader: bool§tessellation_evaluation_shader: bool§geometry_shader: bool§fragment_shader: bool§early_fragment_tests: bool§late_fragment_tests: bool§color_attachment_output: bool§compute_shader: bool§transfer: bool§bottom_of_pipe: bool§host: bool§all_graphics: bool§all_commands: bool§transform_feedback_ext: bool§conditional_rendering_ext: bool§ray_tracing_shader_khr: bool§acceleration_structure_build_khr: bool§shading_rate_image_nv: bool§task_shader_nv: bool§mesh_shader_nv: bool§fragment_density_process_ext: bool§command_preprocess_nv: bool

Implementations§

Source§

impl VkPipelineStageFlags

Source

pub fn none() -> Self

Return a structure with all flags to false.

Source

pub fn all() -> Self

Return a structure with all flags to true.

Source

pub fn to_u32(&self) -> u32

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

Source

pub fn from_u32(value: u32) -> Self

Create a structure corresponding to the specified numerical bit flags.

Trait Implementations§

Source§

impl Clone for VkPipelineStageFlags

Source§

fn clone(&self) -> VkPipelineStageFlags

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VkPipelineStageFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VkPipelineStageFlags

Source§

fn default() -> VkPipelineStageFlags

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.