GpuRayFlags¶
Import: import system.gpu;
This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation. Shader-only declarations can be used only inside @compute, @vertex, @fragment, inferred helpers and ray tracing shader functions; using them elsewhere is a compile error.
GpuRayFlags¶
Options for trace_ray and GpuRayQuery. Combine several with |.
None¶
No options.
ForceOpaque¶
Treats all geometry as opaque, so any-hit shaders do not run.
ForceNonOpaque¶
Treats all geometry as non-opaque, so any-hit shaders run for every candidate.
AcceptFirstHitAndEndSearch¶
Stops at the first hit found instead of searching for the closest one, for shadow rays.
SkipClosestHitShader¶
Skips the closest-hit shader.
CullBackFacingTriangles¶
Ignores triangles facing away from the ray.
CullFrontFacingTriangles¶
Ignores triangles facing the ray.
CullOpaque¶
Ignores opaque geometry.
CullNonOpaque¶
Ignores non-opaque geometry.
SkipTriangles¶
Ignores triangle geometry.
SkipProceduralPrimitives¶
Ignores custom geometry tested by intersection shaders.