Global Declarations
Slang’s Standard Library defines the following global declarations:
- AcceptHitAndEndSearch
- AllMemoryBarrier
- AllMemoryBarrierWithGroupSync
- CANDIDATE_NON_OPAQUE_TRIANGLE
- CANDIDATE_PROCEDURAL_PRIMITIVE
- COMMITTED_NOTHING
- COMMITTED_PROCEDURAL_PRIMITIVE_HIT
- COMMITTED_TRIANGLE_HIT
- CallShader
- CheckAccessFullyMapped
- D3DCOLORtoUBYTE4
- DeviceMemoryBarrier
- DeviceMemoryBarrierWithGroupSync
- DispatchMesh
- DispatchRaysDimensions
- DispatchRaysIndex
- EvaluateAttributeAtCentroid
- EvaluateAttributeAtSample
- EvaluateAttributeSnapped
- GeometryIndex
- GetAttributeAtVertex
- GetRenderTargetSampleCount
- GetRenderTargetSamplePosition
- GroupMemoryBarrier
- GroupMemoryBarrierWithGroupSync
- HIT_KIND_TRIANGLE_BACK_FACE
- HIT_KIND_TRIANGLE_FRONT_FACE
- HitKind
- HitTriangleVertexPosition
- IgnoreHit
- InstanceID
- InstanceIndex
- InterlockedAdd
- InterlockedAnd
- InterlockedCompareExchange
- InterlockedCompareExchangeFloatBitwise
- InterlockedCompareStore
- InterlockedCompareStoreFloatBitwise
- InterlockedExchange
- InterlockedMax
- InterlockedMin
- InterlockedOr
- InterlockedXor
- IsHelperLane
- NonUniformResourceIndex
- ObjectRayDirection
- ObjectRayOrigin
- ObjectToWorld
- ObjectToWorld3x4
- ObjectToWorld4x3
- PrimitiveIndex
- Process2DQuadTessFactorsAvg
- Process2DQuadTessFactorsMax
- Process2DQuadTessFactorsMin
- ProcessIsolineTessFactors
- ProcessQuadTessFactorsAvg
- ProcessQuadTessFactorsMax
- ProcessQuadTessFactorsMin
- ProcessTriTessFactorsAvg
- ProcessTriTessFactorsMax
- ProcessTriTessFactorsMin
- QuadReadAcrossDiagonal
- QuadReadAcrossX
- QuadReadAcrossY
- QuadReadLaneAt
- RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH
- RAY_FLAG_CULL_BACK_FACING_TRIANGLES
- RAY_FLAG_CULL_FRONT_FACING_TRIANGLES
- RAY_FLAG_CULL_NON_OPAQUE
- RAY_FLAG_CULL_OPAQUE
- RAY_FLAG_FORCE_NON_OPAQUE
- RAY_FLAG_FORCE_OPAQUE
- RAY_FLAG_NONE
- RAY_FLAG_SKIP_CLOSEST_HIT_SHADER
- RAY_FLAG_SKIP_PROCEDURAL_PRIMITIVES
- RAY_FLAG_SKIP_TRIANGLES
- RayCurrentTime
- RayFlags
- RayTCurrent
- RayTMin
- ReorderThread
- ReportHit
- ReportHitOptix
- SetMeshOutputCounts
- TraceMotionRay
- TraceRay
- WaveActiveAllEqual
- WaveActiveAllTrue
- WaveActiveAnyTrue
- WaveActiveBallot
- WaveActiveBitAnd
- WaveActiveBitOr
- WaveActiveBitXor
- WaveActiveCountBits
- WaveActiveMax
- WaveActiveMin
- WaveActiveProduct
- WaveActiveSum
- WaveBroadcastLaneAt
- WaveGetActiveMulti
- WaveGetConvergedMulti
- WaveGetLaneCount
- WaveGetLaneIndex
- WaveIsFirstLane
- WaveMatch
- WaveMultiPrefixBitAnd
- WaveMultiPrefixBitOr
- WaveMultiPrefixBitXor
- WaveMultiPrefixCountBits
- WaveMultiPrefixProduct
- WaveMultiPrefixSum
- WavePrefixCountBits
- WavePrefixProduct
- WavePrefixSum
- WaveReadLaneAt
- WaveReadLaneFirst
- WaveShuffle
- WorkgroupSize
- WorldRayDirection
- WorldRayOrigin
- WorldToObject
- WorldToObject3x4
- WorldToObject4x3
- _WaveCountBits
- abort
- abs
- acos
- acosh
- all
- any
- asdouble
- asfloat
- asfloat16
- asin
- asinh
- asint
- asint16
- asuint
- asuint16
- atan
- atan2
- atanh
- bit_cast
- ceil
- clamp
- clip
- concat
- copysign
- copysign_double
- copysign_float
- copysign_half
- cos
- cosh
- cospi
- countbits
- createDynamicObject
- cross
- cudaBlockDim
- cudaBlockIdx
- cudaThreadIdx
- ddx
- ddx_coarse
- ddx_fine
- ddy
- ddy_coarse
- ddy_fine
- debugBreak
- degrees
- detach
- determinant
- diffPair
- distance
- divide
- dot
- dot2add
- dot4add_i8packed
- dot4add_u8packed
- dst
- exp
- exp10
- exp2
- f16tof32
- f32tof16
- f32tof16_
- fabs
- faceforward
- fdim
- firstbithigh
- firstbitlow
- floor
- fma
- fmax
- fmax3
- fmedian3
- fmin
- fmin3
- fmod
- frac
- fract
- frexp
- fwidth
- getRealtimeClock
- getRealtimeClockLow
- getStringHash
- isDifferentialNull
- isfinite
- isinf
- isnan
- ldexp
- length
- lerp
- lit
- log
- log10
- log2
- mad
- makeArrayFromElement
- makeTuple
- max
- max3
- median3
- min
- min3
- modf
- msad4
- mul
- nextafter
- noise
- normalize
- pow
- powr
- printf
- radians
- rcp
- reflect
- refract
- reinterpret
- reversebits
- rint
- round
- rsqrt
- saturate
- select
- sign
- sin
- sincos
- sinh
- sinpi
- smoothstep
- sqrt
- static_assert
- step
- syncTorchCudaStream
- tan
- tanh
- tanpi
- transpose
- trunc
- unmodified
- unused
- updateDiff
- updatePair
- updatePrimal
- workgroupUniformLoad