public enum IrIntrinsicA built-in operation, resolved from an overload of the intrinsic library to a single opcode. Backends map these to their own spelling (mix/lerp, fract/frac) rather than matching on names.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (56)
AbsSignFloorCeilRoundTruncateFractSaturateSqrtInverseSqrtExpExp2LogLog2SinCosTanAsinAcosAtanAtan2RadiansDegreesDdXDdYMinMaxPowModStepClampLerpSmoothStepLengthDistanceDotCrossNormalizeReflectRefractTransposeAllAnySampleTextureSample a texture through a sampler, at the level of detail the derivatives imply.
SampleTextureLevelSample a texture through a sampler at a stated level of detail. Separate from SampleTexture rather than an optional operand, because the two are different instructions in both targets and only this one is legal outside a fragment stage.
SampleTextureGradSample a texture through a sampler at a level of detail the caller's own gradients imply.
LoadTextureFetch a texel by integer coordinate.
TextureSizeThe size of one mip level of a texture, in texels.
LoadImageRead one texel of a storage image. No sampler and no filtering.
StoreImageWrite one texel of a storage image. The only intrinsic that returns nothing.
ImageSizeThe size of a storage image, which has exactly one level.
BitCastThe same bits read as another type of the same width — asfloat and friends. One opcode rather than one per pair: the instruction carries both types already.
ArrayLengthNumber of elements in an array.
ControlBarrierWaits until every invocation of the workgroup has reached this point, and until every write to workgroup storage made before it is visible to all of them.
MemoryBarrierSharedOrders this invocation's writes to workgroup storage against its later reads, without waiting for anybody.
TraceRayQueryRuns one whole ray query against an acceleration structure: scene.Trace(origin, tmin, direction, tmax). Arguments are [structure, origin, tmin, direction, tmax] — the receiver first, like every member intrinsic.
Used by (10)
- BitCastTestsVixen.Raven.Tests
- CompiledLibraryTestsVixen.Raven.Tests
- GlslEmitterVixen.Raven
- GlslIntrinsicsVixen.Raven
- IrCapabilitiesVixen.Raven
- IrIntrinsicInstructionVixen.Raven
- LibraryIrIntrinsicVixen.Raven
- LowererVixen.Raven
- SpirvEmitterVixen.Raven
- SpirvIntrinsicsVixen.Raven