Implement the RayFlags
HLSL Function
#99196
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.
RayFlags
clang builtin,RayFlags
clang builtin withhlsl_intrinsics.h
RayFlags
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
RayFlags
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/RayFlags.hlsl
clang/test/SemaHLSL/BuiltIns/RayFlags-errors.hlsl
int_dx_RayFlags
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_RayFlags
to144
inDXIL.td
RayFlags.ll
andRayFlags_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_RayFlags
intrinsic inIntrinsicsSPIRV.td
RayFlags
lowering and map it toint_spv_RayFlags
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/RayFlags.ll
DirectX
SPIR-V
IncomingRayFlagsKHR
Short Description
IncomingRayFlagsKHR - Flags used to trace a ray
Description
IncomingRayFlagsKHR
A variable with the
IncomingRayFlagsKHR
decoration will contain theray flags passed in to the trace call that invoked this particular
shader. Setting pipeline flags on the ray tracing pipeline must not
cause any corresponding flags to be set in variables with this
decoration.
Valid Usage
VUID-IncomingRayFlagsKHR-IncomingRayFlagsKHR-04248
The
IncomingRayFlagsKHR
decoration must be used only withinthe
IntersectionKHR
,AnyHitKHR
,ClosestHitKHR
, orMissKHR
Execution
Model
VUID-IncomingRayFlagsKHR-IncomingRayFlagsKHR-04249
The variable decorated with
IncomingRayFlagsKHR
must bedeclared using the
Input
Storage
Class
VUID-IncomingRayFlagsKHR-IncomingRayFlagsKHR-04250
The variable decorated with
IncomingRayFlagsKHR
must bedeclared as a scalar 32-bit integer value
Test Case(s)
Example 1
SPIRV Example(s):
Example 2
HLSL:
An unsigned integer containing the current ray_flag flags.
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: