Skip to main content

Decoration

Enum Decoration 

Source
pub enum Decoration<'a> {
Show 150 variants RelaxedPrecision, SpecId { specialization_constant_id: LiteralInteger, }, Block, BufferBlock, RowMajor, ColMajor, ArrayStride { array_stride: LiteralInteger, }, MatrixStride { matrix_stride: LiteralInteger, }, GLSLShared, GLSLPacked, CPacked, BuiltIn { built_in: BuiltIn, }, NoPerspective, Flat, Patch, Centroid, Sample, Invariant, Restrict, Aliased, Volatile, Constant, Coherent, NonWritable, NonReadable, Uniform, UniformId { execution: IdScope, }, SaturatedConversion, Stream { stream_number: LiteralInteger, }, Location { location: LiteralInteger, }, Component { component: LiteralInteger, }, Index { index: LiteralInteger, }, Binding { binding_point: LiteralInteger, }, DescriptorSet { descriptor_set: LiteralInteger, }, Offset { byte_offset: LiteralInteger, }, XfbBuffer { xfb_buffer_number: LiteralInteger, }, XfbStride { xfb_stride: LiteralInteger, }, FuncParamAttr { function_parameter_attribute: FunctionParameterAttribute, }, FPRoundingMode { floating_point_rounding_mode: FPRoundingMode, }, FPFastMathMode { fast_math_mode: FPFastMathMode, }, LinkageAttributes { name: LiteralString<'a>, linkage_type: LinkageType, }, NoContraction, InputAttachmentIndex { attachment_index: LiteralInteger, }, Alignment { alignment: LiteralInteger, }, MaxByteOffset { max_byte_offset: LiteralInteger, }, AlignmentId { alignment: IdRef, }, MaxByteOffsetId { max_byte_offset: IdRef, }, SaturatedToLargestFloat8NormalConversionEXT, NoSignedWrap, NoUnsignedWrap, WeightTextureQCOM, BlockMatchTextureQCOM, BlockMatchSamplerQCOM, ExplicitInterpAMD, NodeSharesPayloadLimitsWithAMDX { payload_type: IdRef, }, NodeMaxPayloadsAMDX { max_number_of_payloads: IdRef, }, TrackFinishWritingAMDX, PayloadNodeNameAMDX { node_name: IdRef, }, PayloadNodeBaseIndexAMDX { base_index: IdRef, }, PayloadNodeSparseArrayAMDX, PayloadNodeArraySizeAMDX { array_size: IdRef, }, PayloadDispatchIndirectAMDX, ArrayStrideIdEXT { array_stride: IdRef, }, OffsetIdEXT { byte_offset: IdRef, }, UTFEncodedKHR, OverrideCoverageNV, PassthroughNV, ViewportRelativeNV, SecondaryViewportRelativeNV { offset: LiteralInteger, }, PerPrimitiveEXT, PerViewNV, PerTaskNV, PerVertexKHR, NonUniform, RestrictPointer, AliasedPointer, MemberOffsetNV { member_offset: LiteralInteger, }, HitObjectShaderRecordBufferNV, HitObjectShaderRecordBufferEXT, BankNV { bank: LiteralInteger, }, BindlessSamplerNV, BindlessImageNV, BoundSamplerNV, BoundImageNV, SIMTCallINTEL { n: LiteralInteger, }, ReferencedIndirectlyINTEL, ClobberINTEL { register: LiteralString<'a>, }, SideEffectsINTEL, VectorComputeVariableINTEL, FuncParamIOKindINTEL { kind: LiteralInteger, }, VectorComputeFunctionINTEL, StackCallINTEL, GlobalVariableOffsetINTEL { offset: LiteralInteger, }, CounterBuffer { counter_buffer: IdRef, }, UserSemantic { semantic: LiteralString<'a>, }, UserTypeGOOGLE { user_type: LiteralString<'a>, }, FunctionRoundingModeINTEL { target_width: LiteralInteger, fp_rounding_mode: FPRoundingMode, }, FunctionDenormModeINTEL { target_width: LiteralInteger, fp_denorm_mode: FPDenormMode, }, RegisterALTERA, MemoryALTERA { memory_type: LiteralString<'a>, }, NumbanksALTERA { banks: LiteralInteger, }, BankwidthALTERA { bank_width: LiteralInteger, }, MaxPrivateCopiesALTERA { maximum_copies: LiteralInteger, }, SinglepumpALTERA, DoublepumpALTERA, MaxReplicatesALTERA { maximum_replicates: LiteralInteger, }, SimpleDualPortALTERA, MergeALTERA { merge_key: LiteralString<'a>, merge_type: LiteralString<'a>, }, BankBitsALTERA { bank_bits: LiteralInteger, }, ForcePow2DepthALTERA { force_key: LiteralInteger, }, StridesizeALTERA { stride_size: LiteralInteger, }, WordsizeALTERA { word_size: LiteralInteger, }, TrueDualPortALTERA, BurstCoalesceALTERA, CacheSizeALTERA { cache_size_in_bytes: LiteralInteger, }, DontStaticallyCoalesceALTERA, PrefetchALTERA { prefetcher_size_in_bytes: LiteralInteger, }, StallEnableALTERA, FuseLoopsInFunctionALTERA, MathOpDSPModeALTERA { mode: LiteralInteger, propagate: LiteralInteger, }, AliasScopeINTEL { aliasing_scopes_list: IdRef, }, NoAliasINTEL { aliasing_scopes_list: IdRef, }, InitiationIntervalALTERA { cycles: LiteralInteger, }, MaxConcurrencyALTERA { invocations: LiteralInteger, }, PipelineEnableALTERA { enable: LiteralInteger, }, BufferLocationALTERA { buffer_location_id: LiteralInteger, }, IOPipeStorageALTERA { io_pipe_id: LiteralInteger, }, FunctionFloatingPointModeINTEL { target_width: LiteralInteger, fp_operation_mode: FPOperationMode, }, SingleElementVectorINTEL, VectorComputeCallableFunctionINTEL, MediaBlockIOINTEL, StallFreeALTERA, FPMaxErrorDecorationINTEL { max_error: LiteralFloat, }, LatencyControlLabelALTERA { latency_label: LiteralInteger, }, LatencyControlConstraintALTERA { relative_to: LiteralInteger, control_type: LiteralInteger, relative_cycle: LiteralInteger, }, ConduitKernelArgumentALTERA, RegisterMapKernelArgumentALTERA, MMHostInterfaceAddressWidthALTERA { address_width: LiteralInteger, }, MMHostInterfaceDataWidthALTERA { data_width: LiteralInteger, }, MMHostInterfaceLatencyALTERA { latency: LiteralInteger, }, MMHostInterfaceReadWriteModeALTERA { read_write_mode: AccessQualifier, }, MMHostInterfaceMaxBurstALTERA { max_burst_count: LiteralInteger, }, MMHostInterfaceWaitRequestALTERA { waitrequest: LiteralInteger, }, StableKernelArgumentALTERA, HostAccessINTEL { access: HostAccessQualifier, name: LiteralString<'a>, }, InitModeALTERA { trigger: InitializationModeQualifier, }, ImplementInRegisterMapALTERA { value: LiteralInteger, }, ConditionalINTEL { condition: IdRef, }, CacheControlLoadINTEL { cache_level: LiteralInteger, cache_control: LoadCacheControl, }, CacheControlStoreINTEL { cache_level: LiteralInteger, cache_control: StoreCacheControl, },
}

Variants§

§

RelaxedPrecision

§

SpecId

Fields

§specialization_constant_id: LiteralInteger
§

Block

§

BufferBlock

§

RowMajor

§

ColMajor

§

ArrayStride

Fields

§array_stride: LiteralInteger
§

MatrixStride

Fields

§matrix_stride: LiteralInteger
§

GLSLShared

§

GLSLPacked

§

CPacked

§

BuiltIn

Fields

§built_in: BuiltIn
§

NoPerspective

§

Flat

§

Patch

§

Centroid

§

Sample

§

Invariant

§

Restrict

§

Aliased

§

Volatile

§

Constant

§

Coherent

§

NonWritable

§

NonReadable

§

Uniform

§

UniformId

Fields

§execution: IdScope
§

SaturatedConversion

§

Stream

Fields

§stream_number: LiteralInteger
§

Location

Fields

§

Component

Fields

§component: LiteralInteger
§

Index

Fields

§

Binding

Fields

§binding_point: LiteralInteger
§

DescriptorSet

Fields

§descriptor_set: LiteralInteger
§

Offset

Fields

§byte_offset: LiteralInteger
§

XfbBuffer

Fields

§xfb_buffer_number: LiteralInteger
§

XfbStride

Fields

§xfb_stride: LiteralInteger
§

FuncParamAttr

Fields

§function_parameter_attribute: FunctionParameterAttribute
§

FPRoundingMode

Fields

§floating_point_rounding_mode: FPRoundingMode
§

FPFastMathMode

Fields

§fast_math_mode: FPFastMathMode
§

LinkageAttributes

Fields

§name: LiteralString<'a>
§linkage_type: LinkageType
§

NoContraction

§

InputAttachmentIndex

Fields

§attachment_index: LiteralInteger
§

Alignment

Fields

§alignment: LiteralInteger
§

MaxByteOffset

Fields

§max_byte_offset: LiteralInteger
§

AlignmentId

Fields

§alignment: IdRef
§

MaxByteOffsetId

Fields

§max_byte_offset: IdRef
§

SaturatedToLargestFloat8NormalConversionEXT

§

NoSignedWrap

§

NoUnsignedWrap

§

WeightTextureQCOM

§

BlockMatchTextureQCOM

§

BlockMatchSamplerQCOM

§

ExplicitInterpAMD

§

NodeSharesPayloadLimitsWithAMDX

Fields

§payload_type: IdRef
§

NodeMaxPayloadsAMDX

Fields

§max_number_of_payloads: IdRef
§

TrackFinishWritingAMDX

§

PayloadNodeNameAMDX

Fields

§node_name: IdRef
§

PayloadNodeBaseIndexAMDX

Fields

§base_index: IdRef
§

PayloadNodeSparseArrayAMDX

§

PayloadNodeArraySizeAMDX

Fields

§array_size: IdRef
§

PayloadDispatchIndirectAMDX

§

ArrayStrideIdEXT

Fields

§array_stride: IdRef
§

OffsetIdEXT

Fields

§byte_offset: IdRef
§

UTFEncodedKHR

§

OverrideCoverageNV

§

PassthroughNV

§

ViewportRelativeNV

§

SecondaryViewportRelativeNV

Fields

§

PerPrimitiveEXT

§

PerViewNV

§

PerTaskNV

§

PerVertexKHR

§

NonUniform

§

RestrictPointer

§

AliasedPointer

§

MemberOffsetNV

Fields

§member_offset: LiteralInteger
§

HitObjectShaderRecordBufferNV

§

HitObjectShaderRecordBufferEXT

§

BankNV

Fields

§

BindlessSamplerNV

§

BindlessImageNV

§

BoundSamplerNV

§

BoundImageNV

§

SIMTCallINTEL

§

ReferencedIndirectlyINTEL

§

ClobberINTEL

Fields

§register: LiteralString<'a>
§

SideEffectsINTEL

§

VectorComputeVariableINTEL

§

FuncParamIOKindINTEL

Fields

§

VectorComputeFunctionINTEL

§

StackCallINTEL

§

GlobalVariableOffsetINTEL

Fields

§

CounterBuffer

Fields

§counter_buffer: IdRef
§

UserSemantic

Fields

§semantic: LiteralString<'a>
§

UserTypeGOOGLE

Fields

§user_type: LiteralString<'a>
§

FunctionRoundingModeINTEL

Fields

§target_width: LiteralInteger
§fp_rounding_mode: FPRoundingMode
§

FunctionDenormModeINTEL

Fields

§target_width: LiteralInteger
§fp_denorm_mode: FPDenormMode
§

RegisterALTERA

§

MemoryALTERA

Fields

§memory_type: LiteralString<'a>
§

NumbanksALTERA

Fields

§

BankwidthALTERA

Fields

§bank_width: LiteralInteger
§

MaxPrivateCopiesALTERA

Fields

§maximum_copies: LiteralInteger
§

SinglepumpALTERA

§

DoublepumpALTERA

§

MaxReplicatesALTERA

Fields

§maximum_replicates: LiteralInteger
§

SimpleDualPortALTERA

§

MergeALTERA

Fields

§merge_key: LiteralString<'a>
§merge_type: LiteralString<'a>
§

BankBitsALTERA

Fields

§bank_bits: LiteralInteger
§

ForcePow2DepthALTERA

Fields

§force_key: LiteralInteger
§

StridesizeALTERA

Fields

§stride_size: LiteralInteger
§

WordsizeALTERA

Fields

§word_size: LiteralInteger
§

TrueDualPortALTERA

§

BurstCoalesceALTERA

§

CacheSizeALTERA

Fields

§cache_size_in_bytes: LiteralInteger
§

DontStaticallyCoalesceALTERA

§

PrefetchALTERA

Fields

§prefetcher_size_in_bytes: LiteralInteger
§

StallEnableALTERA

§

FuseLoopsInFunctionALTERA

§

MathOpDSPModeALTERA

Fields

§propagate: LiteralInteger
§

AliasScopeINTEL

Fields

§aliasing_scopes_list: IdRef
§

NoAliasINTEL

Fields

§aliasing_scopes_list: IdRef
§

InitiationIntervalALTERA

Fields

§

MaxConcurrencyALTERA

Fields

§invocations: LiteralInteger
§

PipelineEnableALTERA

Fields

§

BufferLocationALTERA

Fields

§buffer_location_id: LiteralInteger
§

IOPipeStorageALTERA

Fields

§io_pipe_id: LiteralInteger
§

FunctionFloatingPointModeINTEL

Fields

§target_width: LiteralInteger
§fp_operation_mode: FPOperationMode
§

SingleElementVectorINTEL

§

VectorComputeCallableFunctionINTEL

§

MediaBlockIOINTEL

§

StallFreeALTERA

§

FPMaxErrorDecorationINTEL

Fields

§max_error: LiteralFloat
§

LatencyControlLabelALTERA

Fields

§latency_label: LiteralInteger
§

LatencyControlConstraintALTERA

Fields

§relative_to: LiteralInteger
§control_type: LiteralInteger
§relative_cycle: LiteralInteger
§

ConduitKernelArgumentALTERA

§

RegisterMapKernelArgumentALTERA

§

MMHostInterfaceAddressWidthALTERA

Fields

§address_width: LiteralInteger
§

MMHostInterfaceDataWidthALTERA

Fields

§data_width: LiteralInteger
§

MMHostInterfaceLatencyALTERA

Fields

§

MMHostInterfaceReadWriteModeALTERA

Fields

§read_write_mode: AccessQualifier
§

MMHostInterfaceMaxBurstALTERA

Fields

§max_burst_count: LiteralInteger
§

MMHostInterfaceWaitRequestALTERA

Fields

§waitrequest: LiteralInteger
§

StableKernelArgumentALTERA

§

HostAccessINTEL

Fields

§name: LiteralString<'a>
§

InitModeALTERA

§

ImplementInRegisterMapALTERA

Fields

§

ConditionalINTEL

Fields

§condition: IdRef
§

CacheControlLoadINTEL

Fields

§cache_level: LiteralInteger
§cache_control: LoadCacheControl
§

CacheControlStoreINTEL

Fields

§cache_level: LiteralInteger
§cache_control: StoreCacheControl

Implementations§

Source§

impl<'a> Decoration<'a>

Source

pub fn parse_one(stream: &mut InstructionStream<'a>) -> ParseResult<Self>

Trait Implementations§

Source§

impl<'a> Clone for Decoration<'a>

Source§

fn clone(&self) -> Decoration<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Decoration<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Display for Decoration<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Copy for Decoration<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Decoration<'a>

§

impl<'a> RefUnwindSafe for Decoration<'a>

§

impl<'a> Send for Decoration<'a>

§

impl<'a> Sync for Decoration<'a>

§

impl<'a> Unpin for Decoration<'a>

§

impl<'a> UnsafeUnpin for Decoration<'a>

§

impl<'a> UnwindSafe for Decoration<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.