Implement the WorldRayOrigin
HLSL Function
#99187
Labels
backend:DirectX
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
WorldRayOrigin
clang builtin,WorldRayOrigin
clang builtin withhlsl_intrinsics.h
WorldRayOrigin
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
WorldRayOrigin
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/WorldRayOrigin.hlsl
clang/test/SemaHLSL/BuiltIns/WorldRayOrigin-errors.hlsl
int_dx_WorldRayOrigin
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_WorldRayOrigin
to147
inDXIL.td
WorldRayOrigin.ll
andWorldRayOrigin_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_WorldRayOrigin
intrinsic inIntrinsicsSPIRV.td
WorldRayOrigin
lowering and map it toint_spv_WorldRayOrigin
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WorldRayOrigin.ll
DirectX
SPIR-V
WorldRayOriginKHR
Short Description
WorldRayOriginKHR - Ray origin in world space
Description
WorldRayOriginKHR
A variable decorated with the
WorldRayOriginKHR
decoration willspecify the origin of the ray being processed, in world space. The value
is the parameter passed into the pipeline trace ray instruction.
Valid Usage
VUID-WorldRayOriginKHR-WorldRayOriginKHR-04431
The
WorldRayOriginKHR
decoration must be used only within theIntersectionKHR
,AnyHitKHR
,ClosestHitKHR
, orMissKHR
Execution
Model
VUID-WorldRayOriginKHR-WorldRayOriginKHR-04432
The variable decorated with
WorldRayOriginKHR
must be declaredusing the
Input
Storage
Class
VUID-WorldRayOriginKHR-WorldRayOriginKHR-04433
The variable decorated with
WorldRayOriginKHR
must be declaredas a three-component vector of 32-bit floating-point values
Test Case(s)
Example 1
SPIRV Example(s):
Example 2
HLSL:
The world-space origin of the current ray.
Syntax
Remarks
This function can be called from the following raytracing shader types:
See also
Direct3D 12 Raytracing HLSL Reference
The text was updated successfully, but these errors were encountered: