UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RayTracingShaderBindingLayout.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "RHIDefinitions.h"
6
7#if RHI_RAYTRACING
8
9#include "RHICommandList.h"
10#include "RHIResources.h"
11
13class FViewInfo;
14
15namespace RayTracing
16{
17 // Get shader resource table desc used for all raytracing shaders which is shared between all shaders in the RTPSO
18 RENDERER_API const FShaderBindingLayout* GetShaderBindingLayout(EShaderPlatform ShaderPlatform);
19
20 // Setup the runtime static uniform buffer bindings on the command list if enabled
22
23 UE_DEPRECATED(5.6, "Must provide NaniteRayTracingUniformBuffer (accessible using Nanite::GetPublicGlobalRayTracingUniformBuffer()).")
25 {
26 return BindStaticUniformBufferBindings(View, SceneUniformBuffer, nullptr, RHICmdList);
27 }
28}
29
30#endif // RHI_RAYTRACING
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EShaderPlatform
Definition RHIShaderPlatform.h:11
Definition RHICommandList.h:3819
Definition RHIResources.h:1232
Definition ShaderCore.h:466
Definition SceneRendering.h:1132
Definition SceneManagement.h:73
Definition RHICommandList.h:5121
Definition Optional.h:131