Struct vulkano::shader::ShaderStages
source · [−]pub struct ShaderStages {
pub vertex: bool,
pub tessellation_control: bool,
pub tessellation_evaluation: bool,
pub geometry: bool,
pub fragment: bool,
pub compute: bool,
pub raygen: bool,
pub any_hit: bool,
pub closest_hit: bool,
pub miss: bool,
pub intersection: bool,
pub callable: bool,
}
Expand description
A set of shader stages.
Fields
vertex: bool
tessellation_control: bool
tessellation_evaluation: bool
geometry: bool
fragment: bool
compute: bool
raygen: bool
any_hit: bool
closest_hit: bool
miss: bool
intersection: bool
callable: bool
Implementations
sourceimpl ShaderStages
impl ShaderStages
sourcepub const fn all() -> ShaderStages
pub const fn all() -> ShaderStages
Creates a ShaderStages
struct will all stages set to true
.
sourcepub const fn none() -> ShaderStages
pub const fn none() -> ShaderStages
Creates a ShaderStages
struct will all stages set to false
.
sourcepub const fn all_graphics() -> ShaderStages
pub const fn all_graphics() -> ShaderStages
Creates a ShaderStages
struct with all graphics stages set to true
.
sourcepub const fn compute() -> ShaderStages
pub const fn compute() -> ShaderStages
Creates a ShaderStages
struct with the compute stage set to true
.
sourcepub const fn is_superset_of(&self, other: &ShaderStages) -> bool
pub const fn is_superset_of(&self, other: &ShaderStages) -> bool
Returns whether self
contains all the stages of other
.
sourcepub const fn intersects(&self, other: &ShaderStages) -> bool
pub const fn intersects(&self, other: &ShaderStages) -> bool
Checks whether any of the stages in self
are also present in other
.
Trait Implementations
sourceimpl BitOr<ShaderStages> for ShaderStages
impl BitOr<ShaderStages> for ShaderStages
type Output = ShaderStages
type Output = ShaderStages
The resulting type after applying the |
operator.
sourcefn bitor(self, other: ShaderStages) -> ShaderStages
fn bitor(self, other: ShaderStages) -> ShaderStages
Performs the |
operation. Read more
sourceimpl Clone for ShaderStages
impl Clone for ShaderStages
sourcefn clone(&self) -> ShaderStages
fn clone(&self) -> ShaderStages
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 more
sourceimpl Debug for ShaderStages
impl Debug for ShaderStages
sourceimpl Default for ShaderStages
impl Default for ShaderStages
sourcefn default() -> ShaderStages
fn default() -> ShaderStages
Returns the “default value” for a type. Read more
sourceimpl From<ShaderStage> for ShaderStages
impl From<ShaderStage> for ShaderStages
sourcefn from(val: ShaderStage) -> Self
fn from(val: ShaderStage) -> Self
Performs the conversion.
sourceimpl From<ShaderStageFlags> for ShaderStages
impl From<ShaderStageFlags> for ShaderStages
sourcefn from(val: ShaderStageFlags) -> Self
fn from(val: ShaderStageFlags) -> Self
Performs the conversion.
sourceimpl From<ShaderStages> for ShaderStageFlags
impl From<ShaderStages> for ShaderStageFlags
sourcefn from(val: ShaderStages) -> Self
fn from(val: ShaderStages) -> Self
Performs the conversion.
sourceimpl From<ShaderStages> for PipelineStages
impl From<ShaderStages> for PipelineStages
sourcefn from(stages: ShaderStages) -> PipelineStages
fn from(stages: ShaderStages) -> PipelineStages
Performs the conversion.
sourceimpl PartialEq<ShaderStages> for ShaderStages
impl PartialEq<ShaderStages> for ShaderStages
sourcefn eq(&self, other: &ShaderStages) -> bool
fn eq(&self, other: &ShaderStages) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ShaderStages) -> bool
fn ne(&self, other: &ShaderStages) -> bool
This method tests for !=
.
impl Copy for ShaderStages
impl Eq for ShaderStages
impl StructuralEq for ShaderStages
impl StructuralPartialEq for ShaderStages
Auto Trait Implementations
impl RefUnwindSafe for ShaderStages
impl Send for ShaderStages
impl Sync for ShaderStages
impl Unpin for ShaderStages
impl UnwindSafe for ShaderStages
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more