ShaderSlotsPerGeometrySegment

This value controls how many elements will be allocated in the shader binding table per geometry segment.

Windows
MacOS
Linux

Syntax

uint32 ShaderSlotsPerGeometrySegment

Remarks

This value controls how many elements will be allocated in the shader binding table per geometry segment. Changing this value allows different hit shaders to be used for different effects. For example, setting this to 2 allows one hit shader for regular material evaluation and a different one for shadows. Desired hit shader can be selected by providing appropriate RayContributionToHitGroupIndex to TraceRay() function. Use ShaderSlot argument in SetRayTracingHitGroup() to assign shaders and resources for specific part of the shder binding table record.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss