RayDesc structure

Passed to the TraceRay function to define the origin, direction, and extents of the ray.

Syntax

struct RayDesc
{
    float3 Origin;
    float  TMin;
    float3 Direction;
    float  TMax;
};

Fields

Origin

The origin of the ray.

TMin

The minimum extent of the ray.

Direction

The direction of the ray.

TMax

The maximum extent of the ray.

Requirements

See also

Direct3D 12 Raytracing HLSL Reference