Implement the DispatchRaysDimensions
HLSL Function
#99186
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.
DispatchRaysDimensions
clang builtin,DispatchRaysDimensions
clang builtin withhlsl_intrinsics.h
DispatchRaysDimensions
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
DispatchRaysDimensions
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/DispatchRaysDimensions.hlsl
clang/test/SemaHLSL/BuiltIns/DispatchRaysDimensions-errors.hlsl
int_dx_DispatchRaysDimensions
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_DispatchRaysDimensions
to146
inDXIL.td
DispatchRaysDimensions.ll
andDispatchRaysDimensions_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_DispatchRaysDimensions
intrinsic inIntrinsicsSPIRV.td
DispatchRaysDimensions
lowering and map it toint_spv_DispatchRaysDimensions
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/DispatchRaysDimensions.ll
DirectX
SPIR-V
LaunchSizeKHR
Short Description
LaunchSizeKHR - Launch dimensions for ray shaders
Description
LaunchSizeKHR
A variable decorated with the
LaunchSizeKHR
decoration will containthe
width
,height
, anddepth
dimensions passed to thevkCmdTraceRaysKHR command that initiated this
shader execution. The
width
is in the first component, theheight
is in the second component, and thedepth
is in the thirdcomponent.
Valid Usage
VUID-LaunchSizeKHR-LaunchSizeKHR-04269
The
LaunchSizeKHR
decoration must be used only within theRayGenerationKHR
,IntersectionKHR
,AnyHitKHR
,ClosestHitKHR
,MissKHR
, orCallableKHR
Execution
Model
VUID-LaunchSizeKHR-LaunchSizeKHR-04270
The variable decorated with
LaunchSizeKHR
must be declaredusing the
Input
Storage
Class
VUID-LaunchSizeKHR-LaunchSizeKHR-04271
The variable decorated with
LaunchSizeKHR
must be declared asa three-component vector of 32-bit integer values
Test Case(s)
Example 1
SPIRV Example(s):
Example 2
HLSL:
The width, height and depth values from the D3D12_DISPATCH_RAYS_DESC structure specified in the originating DispatchRays call.
Syntax
Remarks
This function can be called from the following raytracing shader types:
See also
The text was updated successfully, but these errors were encountered: