[][src]Enum rspirv::dr::Operand

pub enum Operand {
    ImageOperands(ImageOperands),
    FPFastMathMode(FPFastMathMode),
    SelectionControl(SelectionControl),
    LoopControl(LoopControl),
    FunctionControl(FunctionControl),
    MemorySemantics(MemorySemantics),
    MemoryAccess(MemoryAccess),
    KernelProfilingInfo(KernelProfilingInfo),
    SourceLanguage(SourceLanguage),
    ExecutionModel(ExecutionModel),
    AddressingModel(AddressingModel),
    MemoryModel(MemoryModel),
    ExecutionMode(ExecutionMode),
    StorageClass(StorageClass),
    Dim(Dim),
    SamplerAddressingMode(SamplerAddressingMode),
    SamplerFilterMode(SamplerFilterMode),
    ImageFormat(ImageFormat),
    ImageChannelOrder(ImageChannelOrder),
    ImageChannelDataType(ImageChannelDataType),
    FPRoundingMode(FPRoundingMode),
    LinkageType(LinkageType),
    AccessQualifier(AccessQualifier),
    FunctionParameterAttribute(FunctionParameterAttribute),
    Decoration(Decoration),
    BuiltIn(BuiltIn),
    Scope(Scope),
    GroupOperation(GroupOperation),
    KernelEnqueueFlags(KernelEnqueueFlags),
    Capability(Capability),
    IdMemorySemantics(Word),
    IdScope(Word),
    IdRef(Word),
    LiteralInt32(u32),
    LiteralInt64(u64),
    LiteralFloat32(f32),
    LiteralFloat64(f64),
    LiteralExtInstInteger(u32),
    LiteralSpecConstantOpInteger(Op),
    LiteralString(String),
}

Data representation of a SPIR-V operand.

Variants

ImageOperands(ImageOperands)
FPFastMathMode(FPFastMathMode)
SelectionControl(SelectionControl)
LoopControl(LoopControl)
FunctionControl(FunctionControl)
MemorySemantics(MemorySemantics)
MemoryAccess(MemoryAccess)
KernelProfilingInfo(KernelProfilingInfo)
SourceLanguage(SourceLanguage)
ExecutionModel(ExecutionModel)
AddressingModel(AddressingModel)
MemoryModel(MemoryModel)
ExecutionMode(ExecutionMode)
StorageClass(StorageClass)
Dim(Dim)
SamplerAddressingMode(SamplerAddressingMode)
SamplerFilterMode(SamplerFilterMode)
ImageFormat(ImageFormat)
ImageChannelOrder(ImageChannelOrder)
ImageChannelDataType(ImageChannelDataType)
FPRoundingMode(FPRoundingMode)
LinkageType(LinkageType)
AccessQualifier(AccessQualifier)
FunctionParameterAttribute(FunctionParameterAttribute)
Decoration(Decoration)
BuiltIn(BuiltIn)
Scope(Scope)
GroupOperation(GroupOperation)
KernelEnqueueFlags(KernelEnqueueFlags)
Capability(Capability)
IdMemorySemantics(Word)
IdScope(Word)
IdRef(Word)
LiteralInt32(u32)
LiteralInt64(u64)
LiteralFloat32(f32)
LiteralFloat64(f64)
LiteralExtInstInteger(u32)
LiteralSpecConstantOpInteger(Op)
LiteralString(String)

Trait Implementations

impl Assemble for Operand[src]

impl Clone for Operand[src]

impl Debug for Operand[src]

impl Disassemble for Operand[src]

impl Display for Operand[src]

impl<'a> From<&'a str> for Operand[src]

impl From<AccessQualifier> for Operand[src]

impl From<AddressingModel> for Operand[src]

impl From<BuiltIn> for Operand[src]

impl From<Capability> for Operand[src]

impl From<Decoration> for Operand[src]

impl From<Dim> for Operand[src]

impl From<ExecutionMode> for Operand[src]

impl From<ExecutionModel> for Operand[src]

impl From<FPFastMathMode> for Operand[src]

impl From<FPRoundingMode> for Operand[src]

impl From<FunctionControl> for Operand[src]

impl From<FunctionParameterAttribute> for Operand[src]

impl From<GroupOperation> for Operand[src]

impl From<ImageChannelDataType> for Operand[src]

impl From<ImageChannelOrder> for Operand[src]

impl From<ImageFormat> for Operand[src]

impl From<ImageOperands> for Operand[src]

impl From<KernelEnqueueFlags> for Operand[src]

impl From<KernelProfilingInfo> for Operand[src]

impl From<LinkageType> for Operand[src]

impl From<LoopControl> for Operand[src]

impl From<MemoryAccess> for Operand[src]

impl From<MemoryModel> for Operand[src]

impl From<MemorySemantics> for Operand[src]

impl From<Op> for Operand[src]

impl From<SamplerAddressingMode> for Operand[src]

impl From<SamplerFilterMode> for Operand[src]

impl From<Scope> for Operand[src]

impl From<SelectionControl> for Operand[src]

impl From<SourceLanguage> for Operand[src]

impl From<StorageClass> for Operand[src]

impl From<String> for Operand[src]

impl From<f32> for Operand[src]

impl From<f64> for Operand[src]

impl From<u32> for Operand[src]

fn from(val: u32) -> Self[src]

Converts the given u32 val into an Operand::LiteralInt32.

impl From<u64> for Operand[src]

impl PartialEq<Operand> for Operand[src]

impl StructuralPartialEq for Operand[src]

Auto Trait Implementations

impl RefUnwindSafe for Operand

impl Send for Operand

impl Sync for Operand

impl Unpin for Operand

impl UnwindSafe for Operand

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.