[−][src]Struct vulkano::descriptor::descriptor::ShaderStages
Describes which shader stages have access to a descriptor.
Fields
vertex: bool
True
means that the descriptor will be used by the vertex shader.
tessellation_control: bool
True
means that the descriptor will be used by the tessellation control shader.
tessellation_evaluation: bool
True
means that the descriptor will be used by the tessellation evaluation shader.
geometry: bool
True
means that the descriptor will be used by the geometry shader.
fragment: bool
True
means that the descriptor will be used by the fragment shader.
compute: bool
True
means that the descriptor will be used by the compute shader.
Methods
impl ShaderStages
[src]
pub fn all() -> ShaderStages
[src]
Creates a ShaderStages
struct will all stages set to true
.
pub fn none() -> ShaderStages
[src]
Creates a ShaderStages
struct will all stages set to false
.
pub fn all_graphics() -> ShaderStages
[src]
Creates a ShaderStages
struct with all graphics stages set to true
.
pub fn compute() -> ShaderStages
[src]
Creates a ShaderStages
struct with the compute stage set to true
.
pub fn is_superset_of(
&self,
other: &ShaderStages
) -> Result<(), ShaderStagesSupersetError>
[src]
&self,
other: &ShaderStages
) -> Result<(), ShaderStagesSupersetError>
Checks whether we have more stages enabled than other
.
pub fn intersects(&self, other: &ShaderStages) -> bool
[src]
Checks whether any of the stages in self
are also present in other
.
Trait Implementations
impl From<ShaderStages> for PipelineStages
[src]
fn from(stages: ShaderStages) -> PipelineStages
[src]
impl Clone for ShaderStages
[src]
fn clone(&self) -> ShaderStages
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ShaderStages
[src]
impl Eq for ShaderStages
[src]
impl PartialEq<ShaderStages> for ShaderStages
[src]
fn eq(&self, other: &ShaderStages) -> bool
[src]
fn ne(&self, other: &ShaderStages) -> bool
[src]
impl Debug for ShaderStages
[src]
impl BitOr<ShaderStages> for ShaderStages
[src]
type Output = ShaderStages
The resulting type after applying the |
operator.
fn bitor(self, other: ShaderStages) -> ShaderStages
[src]
impl StructuralPartialEq for ShaderStages
[src]
impl StructuralEq for ShaderStages
[src]
Auto Trait Implementations
impl Send for ShaderStages
impl Sync for ShaderStages
impl Unpin for ShaderStages
impl UnwindSafe for ShaderStages
impl RefUnwindSafe for ShaderStages
Blanket Implementations
impl<T> Content for T
[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,