RayQuery<uint rayFlagsGeneric>.WorldRayDirection

Description

Gets the world-space direction of the ray.

Signature

vector<float, 3> RayQuery<uint rayFlagsGeneric>.WorldRayDirection();

Return value

Normalized direction vector in world space

Availability and Requirements

Defined for the following targets:

hlsl

Available in all stages.

glsl

Available in all stages.

metal

Available in all stages.

spirv

Available in all stages.

Requires capability: spvRayQueryKHR.