pub enum OperandClass {
Float,
Double,
Integer,
Resource,
Varies,
}Expand description
What an operand of an instruction carries.
Variants§
Float
32-bit float data. A float operand may carry the negate and absolute-value modifiers.
Double
64-bit float data, two lanes of the register pair per value.
Integer
32-bit integer data. Whether it is signed is the instruction’s (iadd, uadd…); the token stream does not say.
Resource
A register with no data of its own: a resource, sampler, unordered-access view, thread-group shared memory or output stream the instruction reads from, writes to or asks about.
Varies
Data whose type the sources disagree on, or that the instruction takes from elsewhere: a sampled or loaded
value has the type its resource declares, resinfo, sampleinfo and bufinfo return the type their control
bits choose.
Trait Implementations§
Source§impl Clone for OperandClass
impl Clone for OperandClass
impl Copy for OperandClass
Source§impl Debug for OperandClass
impl Debug for OperandClass
impl Eq for OperandClass
Source§impl PartialEq for OperandClass
impl PartialEq for OperandClass
impl StructuralPartialEq for OperandClass
Auto Trait Implementations§
impl Forget for OperandClass
impl Freeze for OperandClass
impl RefUnwindSafe for OperandClass
impl Send for OperandClass
impl Sync for OperandClass
impl Unpin for OperandClass
impl UnsafeUnpin for OperandClass
impl UnwindSafe for OperandClass
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