Enum vulkano::shader::spirv::SpecConstantInstruction
source · pub enum SpecConstantInstruction {
Show 39 variants
VectorShuffle {
vector_1: Id,
vector_2: Id,
components: Vec<u32>,
},
CompositeExtract {
composite: Id,
indexes: Vec<u32>,
},
CompositeInsert {
object: Id,
composite: Id,
indexes: Vec<u32>,
},
UConvert {
unsigned_value: Id,
},
SConvert {
signed_value: Id,
},
FConvert {
float_value: Id,
},
QuantizeToF16 {
value: Id,
},
SNegate {
operand: Id,
},
IAdd {
operand1: Id,
operand2: Id,
},
ISub {
operand1: Id,
operand2: Id,
},
IMul {
operand1: Id,
operand2: Id,
},
UDiv {
operand1: Id,
operand2: Id,
},
SDiv {
operand1: Id,
operand2: Id,
},
UMod {
operand1: Id,
operand2: Id,
},
SRem {
operand1: Id,
operand2: Id,
},
SMod {
operand1: Id,
operand2: Id,
},
LogicalEqual {
operand1: Id,
operand2: Id,
},
LogicalNotEqual {
operand1: Id,
operand2: Id,
},
LogicalOr {
operand1: Id,
operand2: Id,
},
LogicalAnd {
operand1: Id,
operand2: Id,
},
LogicalNot {
operand: Id,
},
Select {
condition: Id,
object_1: Id,
object_2: Id,
},
IEqual {
operand1: Id,
operand2: Id,
},
INotEqual {
operand1: Id,
operand2: Id,
},
UGreaterThan {
operand1: Id,
operand2: Id,
},
SGreaterThan {
operand1: Id,
operand2: Id,
},
UGreaterThanEqual {
operand1: Id,
operand2: Id,
},
SGreaterThanEqual {
operand1: Id,
operand2: Id,
},
ULessThan {
operand1: Id,
operand2: Id,
},
SLessThan {
operand1: Id,
operand2: Id,
},
ULessThanEqual {
operand1: Id,
operand2: Id,
},
SLessThanEqual {
operand1: Id,
operand2: Id,
},
ShiftRightLogical {
base: Id,
shift: Id,
},
ShiftRightArithmetic {
base: Id,
shift: Id,
},
ShiftLeftLogical {
base: Id,
shift: Id,
},
BitwiseOr {
operand1: Id,
operand2: Id,
},
BitwiseXor {
operand1: Id,
operand2: Id,
},
BitwiseAnd {
operand1: Id,
operand2: Id,
},
Not {
operand: Id,
},
}
Expand description
An instruction that is used as the operand of the SpecConstantOp
instruction.
Variants§
VectorShuffle
CompositeExtract
CompositeInsert
UConvert
SConvert
FConvert
QuantizeToF16
SNegate
IAdd
ISub
IMul
UDiv
SDiv
UMod
SRem
SMod
LogicalEqual
LogicalNotEqual
LogicalOr
LogicalAnd
LogicalNot
Select
IEqual
INotEqual
UGreaterThan
SGreaterThan
UGreaterThanEqual
SGreaterThanEqual
ULessThan
SLessThan
ULessThanEqual
SLessThanEqual
ShiftRightLogical
ShiftRightArithmetic
ShiftLeftLogical
BitwiseOr
BitwiseXor
BitwiseAnd
Not
Trait Implementations§
source§impl Clone for SpecConstantInstruction
impl Clone for SpecConstantInstruction
source§fn clone(&self) -> SpecConstantInstruction
fn clone(&self) -> SpecConstantInstruction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpecConstantInstruction
impl Debug for SpecConstantInstruction
source§impl PartialEq for SpecConstantInstruction
impl PartialEq for SpecConstantInstruction
source§fn eq(&self, other: &SpecConstantInstruction) -> bool
fn eq(&self, other: &SpecConstantInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SpecConstantInstruction
Auto Trait Implementations§
impl RefUnwindSafe for SpecConstantInstruction
impl Send for SpecConstantInstruction
impl Sync for SpecConstantInstruction
impl Unpin for SpecConstantInstruction
impl UnwindSafe for SpecConstantInstruction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more