UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StaticBoundShaderState.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 StaticBoundShaderState.h: Static bound shader state definitions.
5=============================================================================*/
6
7#pragma once
8
9#include "Containers/List.h"
10#include "CoreMinimal.h"
11#include "Misc/Build.h"
12#include "RHI.h"
13#include "RHIDefinitions.h"
14#include "RenderResource.h"
15
16class FShader;
17
54
56
57
65
67{
69 FGlobalBoundShaderState_Internal* BSS; //ideally this would be part of this memory block and not a separate allocation...that is doable, if a little tedious. The point is we need to delay the construction until we get back to the render thread.
70
72 : BSS(nullptr)
73 {
74 }
75};
76
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
TGlobalResource< FGlobalBoundShaderStateResource > FGlobalBoundShaderState_Internal
Definition StaticBoundShaderState.h:55
Definition StaticBoundShaderState.h:24
virtual RENDERCORE_API ~FGlobalBoundShaderStateResource()
Definition StaticBoundShaderState.cpp:43
static RENDERCORE_API TLinkedList< FGlobalBoundShaderStateResource * > *& GetGlobalBoundShaderStateList()
Definition StaticBoundShaderState.cpp:12
RENDERCORE_API FGlobalBoundShaderStateResource()
Definition StaticBoundShaderState.cpp:18
Definition RHIResources.h:978
Definition RHIResources.h:972
Definition RHIResources.h:725
Definition RHIResources.h:954
Definition RenderResource.h:37
Definition Shader.h:829
Definition RenderResource.h:543
Definition List.h:285
Type
Definition RHIFeatureLevel.h:20
@ Num
Definition RHIFeatureLevel.h:54
Definition StaticBoundShaderState.h:59
FRHIVertexDeclaration * VertexDeclarationRHI
Definition StaticBoundShaderState.h:60
FShader * GeometryShader
Definition StaticBoundShaderState.h:63
FShader * PixelShader
Definition StaticBoundShaderState.h:62
FShader * VertexShader
Definition StaticBoundShaderState.h:61
Definition StaticBoundShaderState.h:67
FGlobalBoundShaderStateArgs Args
Definition StaticBoundShaderState.h:68
FGlobalBoundShaderStateWorkArea()
Definition StaticBoundShaderState.h:71
FGlobalBoundShaderState_Internal * BSS
Definition StaticBoundShaderState.h:69
Definition StaticBoundShaderState.h:78
FGlobalBoundShaderStateWorkArea * Get(ERHIFeatureLevel::Type InFeatureLevel)
Definition StaticBoundShaderState.h:81
FGlobalBoundShaderStateWorkArea ** GetPtr(ERHIFeatureLevel::Type InFeatureLevel)
Definition StaticBoundShaderState.h:82