Implement the WorldRayDirection
HLSL Function
#99188
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.
WorldRayDirection
clang builtin,WorldRayDirection
clang builtin withhlsl_intrinsics.h
WorldRayDirection
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
WorldRayDirection
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/WorldRayDirection.hlsl
clang/test/SemaHLSL/BuiltIns/WorldRayDirection-errors.hlsl
int_dx_WorldRayDirection
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_WorldRayDirection
to148
inDXIL.td
WorldRayDirection.ll
andWorldRayDirection_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_WorldRayDirection
intrinsic inIntrinsicsSPIRV.td
WorldRayDirection
lowering and map it toint_spv_WorldRayDirection
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WorldRayDirection.ll
DirectX
SPIR-V
WorldRayDirectionKHR
Short Description
WorldRayDirectionKHR - Ray direction in world space
Description
WorldRayDirectionKHR
A variable decorated with the
WorldRayDirectionKHR
decoration willspecify the direction of the ray being processed, in world space. The
value is the parameter passed into the pipeline trace ray instruction.
Valid Usage
VUID-WorldRayDirectionKHR-WorldRayDirectionKHR-04428
The
WorldRayDirectionKHR
decoration must be used only withinthe
IntersectionKHR
,AnyHitKHR
,ClosestHitKHR
, orMissKHR
Execution
Model
VUID-WorldRayDirectionKHR-WorldRayDirectionKHR-04429
The variable decorated with
WorldRayDirectionKHR
must bedeclared using the
Input
Storage
Class
VUID-WorldRayDirectionKHR-WorldRayDirectionKHR-04430
The variable decorated with
WorldRayDirectionKHR
must bedeclared as a three-component vector of 32-bit floating-point values
Test Case(s)
Example 1
SPIRV Example(s):
Example 2
HLSL:
The world-space direction for 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: