Enum rspirv::sr::Constant [−][src]
pub enum Constant {
Show 13 variants
Bool(bool),
Int(i32),
UInt(u32),
Float(f32),
Composite(Vec<Token<Constant>>),
Null,
Sampler {
addressing_mode: SamplerAddressingMode,
normalized: bool,
filter_mode: SamplerFilterMode,
},
SpecBool(bool),
SpecInt(i32),
SpecUInt(u32),
SpecFloat(f32),
SpecComposite(Vec<Token<Constant>>),
SpecOp(Op, Vec<Token<Constant>>),
}
Expand description
Represents a SPIR-V constant.
Variants
Bool(bool)
Tuple Fields of Bool
0: bool
Int(i32)
Tuple Fields of Int
0: i32
UInt(u32)
Tuple Fields of UInt
0: u32
Float(f32)
Tuple Fields of Float
0: f32
Fields of Sampler
SpecBool(bool)
Tuple Fields of SpecBool
0: bool
SpecInt(i32)
Tuple Fields of SpecInt
0: i32
SpecUInt(u32)
Tuple Fields of SpecUInt
0: u32
SpecFloat(f32)
Tuple Fields of SpecFloat
0: f32
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Constant
impl UnwindSafe for Constant
Blanket Implementations
Mutably borrows from an owned value. Read more