[−][src]Enum rspirv::sr::Constant
Represents a SPIR-V constant.
Variants
Bool(bool)
Int(i32)
UInt(u32)
Float(f32)
Fields of Sampler
SpecBool(bool)
SpecInt(i32)
SpecUInt(u32)
SpecFloat(f32)
Methods
impl Constant
[src]
pub fn is_bool_constant(&self) -> bool
[src]
pub fn is_int_constant(&self) -> bool
[src]
pub fn is_uint_constant(&self) -> bool
[src]
pub fn is_float_constant(&self) -> bool
[src]
pub fn is_composite_constant(&self) -> bool
[src]
pub fn is_null_constant(&self) -> bool
[src]
pub fn is_sampler_constant(&self) -> bool
[src]
pub fn is_spec_constant(&self) -> bool
[src]
pub fn is_spec_op_constant(&self) -> bool
[src]
Trait Implementations
impl Clone for Constant
[src]
impl Debug for Constant
[src]
impl PartialEq<Constant> for Constant
[src]
impl StructuralPartialEq for Constant
[src]
Auto Trait Implementations
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,