FindRayTracingHitGroupIndex

Returns the hit group index within the ray tracing pipeline or INDEX_NONE if given shader does not exist.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/PipelineStateCache.h

Include

#include "PipelineStateCache.h"

Source

/Engine/Source/Runtime/RHI/Private/PipelineStateCache.cpp

Syntax

int32 FindRayTracingHitGroupIndex
(
    FRayTracingPipelineState * Pipeline,
    FRHIRayTracingShader * HitGroupShader,
    bool bRequired
)

Remarks

Returns the hit group index within the ray tracing pipeline or INDEX_NONE if given shader does not exist. Asserts if shader is not found but bRequired is true.

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