Implement the ObjectRayOrigin
HLSL Function
#99189
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.
ObjectRayOrigin
clang builtin,ObjectRayOrigin
clang builtin withhlsl_intrinsics.h
ObjectRayOrigin
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
ObjectRayOrigin
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/ObjectRayOrigin.hlsl
clang/test/SemaHLSL/BuiltIns/ObjectRayOrigin-errors.hlsl
int_dx_ObjectRayOrigin
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_ObjectRayOrigin
to149
inDXIL.td
ObjectRayOrigin.ll
andObjectRayOrigin_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_ObjectRayOrigin
intrinsic inIntrinsicsSPIRV.td
ObjectRayOrigin
lowering and map it toint_spv_ObjectRayOrigin
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/ObjectRayOrigin.ll
DirectX
SPIR-V
ObjectRayOriginKHR
Short Description
ObjectRayOriginKHR - Ray origin in object space
Description
ObjectRayOriginKHR
A variable decorated with the
ObjectRayOriginKHR
decoration willspecify the origin of the ray being processed, in object space.
Valid Usage
VUID-ObjectRayOriginKHR-ObjectRayOriginKHR-04302
The
ObjectRayOriginKHR
decoration must be used only within theIntersectionKHR
,AnyHitKHR
, orClosestHitKHR
Execution
Model
VUID-ObjectRayOriginKHR-ObjectRayOriginKHR-04303
The variable decorated with
ObjectRayOriginKHR
must bedeclared using the
Input
Storage
Class
VUID-ObjectRayOriginKHR-ObjectRayOriginKHR-04304
The variable decorated with
ObjectRayOriginKHR
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 object-space origin for the current ray. Object-space refers to the space of the current bottom-level acceleration structure.
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: