Struct vulkano::shader::ShaderStages
source · [−]pub struct ShaderStages {Show 13 fields
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,
pub _ne: NonExhaustive,
}
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
_ne: NonExhaustive
Implementations
sourceimpl ShaderStages
impl ShaderStages
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
Use empty
instead.
Returns a ShaderStages
with none of the flags set.
sourcepub const fn intersects(&self, other: &Self) -> bool
pub const fn intersects(&self, other: &Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(&self, other: &Self) -> bool
pub const fn contains(&self, other: &Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(&self, other: &Self) -> Self
pub const fn intersection(&self, other: &Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(&self, other: &Self) -> Self
pub const fn difference(&self, other: &Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(&self, other: &Self) -> Self
pub const fn symmetric_difference(&self, other: &Self) -> Self
Returns the flags set in self
or other
, but not both.
sourceimpl ShaderStages
impl ShaderStages
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
.
Trait Implementations
sourceimpl BitAnd<ShaderStages> for ShaderStages
impl BitAnd<ShaderStages> for ShaderStages
type Output = ShaderStages
type Output = ShaderStages
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<ShaderStages> for ShaderStages
impl BitAndAssign<ShaderStages> for ShaderStages
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<ShaderStages> for ShaderStages
impl BitOr<ShaderStages> for ShaderStages
type Output = ShaderStages
type Output = ShaderStages
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<ShaderStages> for ShaderStages
impl BitOrAssign<ShaderStages> for ShaderStages
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<ShaderStages> for ShaderStages
impl BitXor<ShaderStages> for ShaderStages
type Output = ShaderStages
type Output = ShaderStages
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<ShaderStages> for ShaderStages
impl BitXorAssign<ShaderStages> for ShaderStages
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl 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 moresourceimpl Debug for ShaderStages
impl Debug for ShaderStages
sourceimpl Default for ShaderStages
impl Default for ShaderStages
sourceimpl From<ShaderStage> for ShaderStages
impl From<ShaderStage> for ShaderStages
sourcefn from(val: ShaderStage) -> Self
fn from(val: ShaderStage) -> Self
Converts to this type from the input type.
sourceimpl From<ShaderStageFlags> for ShaderStages
impl From<ShaderStageFlags> for ShaderStages
sourcefn from(val: ShaderStageFlags) -> Self
fn from(val: ShaderStageFlags) -> Self
Converts to this type from the input type.
sourceimpl From<ShaderStages> for PipelineStages
impl From<ShaderStages> for PipelineStages
sourcefn from(stages: ShaderStages) -> PipelineStages
fn from(stages: ShaderStages) -> PipelineStages
Converts to this type from the input type.
sourceimpl From<ShaderStages> for ShaderStageFlags
impl From<ShaderStages> for ShaderStageFlags
sourcefn from(val: ShaderStages) -> Self
fn from(val: ShaderStages) -> Self
Converts to this type from the input type.
sourceimpl Hash for ShaderStages
impl Hash for ShaderStages
sourceimpl PartialEq<ShaderStages> for ShaderStages
impl PartialEq<ShaderStages> for ShaderStages
sourcefn eq(&self, other: &ShaderStages) -> bool
fn eq(&self, other: &ShaderStages) -> bool
sourceimpl Sub<ShaderStages> for ShaderStages
impl Sub<ShaderStages> for ShaderStages
type Output = ShaderStages
type Output = ShaderStages
The resulting type after applying the
-
operator.sourceimpl SubAssign<ShaderStages> for ShaderStages
impl SubAssign<ShaderStages> for ShaderStages
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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