Raytracing HLSL structures (Direct3D 12)

The following HLSL structures support the Direct3D 12 raytracing pipeline.

In this section

Topic Description
Call Parameter Structure
A user-defined structure provided as an inout argument to a CallShader call, and as an inout parameter for the callable shader.
Intersection Attributes Structure
A user-defined structure that is provided as an inout argument in a TraceRay call, and as an inout parameter in the shader types that may access the ray payload.
Ray Payload Structure
A user-defined structure that is provided as an inout argument in a TraceRay call, and as an inout parameter in the shader types that may access the ray payload.
RayDesc Structure
Flags passed to the TraceRay function to override transparency, culling, and early-out behavior.

Core Reference

Direct3D 12 Reference