Navigation
API > API/Runtime > API/Runtime/RenderCore
A collection of shaders of different types
| Name | FShaderMapContent |
| Type | class |
| Header File | /Engine/Source/Runtime/RenderCore/Public/Shader.h |
| Include Path | #include "Shader.h" |
Syntax
class FShaderMapContent
Derived Classes
FShaderMapContent derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FShaderMapContent
(
EShaderPlatform InPlatform |
Default constructor. | Shader.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FShaderMapContent() |
Destructor ensures pipelines cleared up. | Shader.h |
Structs
| Name | Remarks |
|---|---|
| FProjectShaderPipelineToKey | |
| InternalLinkType |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DerivedType | FShaderMapContent | Shader.h | |
| FMemoryImageHashTable | THashTable< FMemoryImageAllocator > | Shader.h | |
| InternalBaseType | typename TGetBaseTypeHelper< FShaderMapContent >::Type | Shader.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CounterBase | int | Shader.h | |
| InterfaceType | ETypeLayoutInterface::Type | Shader.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddShader
(
const FHashedName& TypeName, |
Shader.h | ||
void AddShaderPipeline
(
FShaderPipeline* Pipeline |
Shader.h | ||
void DumpShaderList
(
const FShaderMapBase& InShaderMap, |
Shader.h | ||
void Empty() |
Clears out all shaders and deletes shader pipelines held in the map | Shader.h | |
void Finalize
(
const FShaderMapResourceCode* Code |
Shader.h | ||
FShader * FindOrAddShader
(
const FHashedName& TypeName, |
Shader.h | ||
FShaderPipeline * FindOrAddShaderPipeline
(
FShaderPipeline* Pipeline |
Shader.h | ||
uint32 GetMaxNumInstructionsForShader
(
const FShaderMapBase& InShaderMap, |
Shader.h | ||
uint32 GetMaxTextureSamplersShaderMap
(
const FShaderMapBase& InShaderMap |
Shader.h | ||
uint32 GetNumShaderPipelines() |
Shader.h | ||
uint32 GetNumShaders() |
Shader.h | ||
void GetOutdatedTypes
(
const FShaderMapBase& InShaderMap, |
Shader.h | ||
ShaderType * GetShader
(
const typename ShaderType::FPermutationDomain& PermutationVector |
Finds the shader with the given type. Asserts on failure. | Shader.h | |
ShaderType * GetShader
(
int32 PermutationId |
Finds the shader with the given type. Asserts on failure. | Shader.h | |
FShader * GetShader
(
const FHashedName& TypeName, |
Finds the shader with the given type name. May return NULL. | Shader.h | |
FShader * GetShader
(
const FShaderType* ShaderType, |
Finds the shader with the given type. May return NULL. | Shader.h | |
void GetShaderList
(
const FShaderMapBase& InShaderMap, |
Builds a list of the shaders in a shader map. | Shader.h | |
void GetShaderList
(
const FShaderMapBase& InShaderMap, |
Builds a list of the shaders in a shader map. Key is FShaderType::TypeName | Shader.h | |
FShaderPipeline * GetShaderPipeline
(
const FShaderPipelineType* PipelineType |
Shader.h | ||
FShaderPipeline * GetShaderPipeline
(
const FHashedName& PipelineTypeName |
Shader.h | ||
void GetShaderPipelineList
(
const FShaderMapBase& InShaderMap, |
Builds a list of the shader pipelines in a shader map. | Shader.h | |
TArrayView< const TMemoryImagePtr< FShaderPipeline > > GetShaderPipelines() |
Shader.h | ||
EShaderPlatform GetShaderPlatform() |
Shader.h | ||
TArrayView< const TMemoryImagePtr< FShader > > GetShaders() |
Shader.h | ||
TArray< FGenericShaderStat > GetShaderStatistics
(
const FShaderMapBase& InShaderMap, |
Shader.h | ||
const FTypeLayoutDesc & GetTypeLayout() |
Shader.h | ||
bool HasShader
(
const FShaderType* Type, |
Shader.h | ||
bool HasShader
(
const FHashedName& TypeName, |
Finds the shader with the given type. | Shader.h | |
bool HasShaderPipeline
(
const FShaderPipelineType* PipelineType |
Shader.h | ||
bool HasShaderPipeline
(
const FHashedName& PipelineTypeName |
Shader.h | ||
bool IsEmpty() |
Shader.h | ||
void RemoveShaderPipelineType
(
const FShaderPipelineType* ShaderPipelineType |
Shader.h | ||
void RemoveShaderTypePermutaion
(
const FHashedName& TypeName, |
Removes the shader of the given type from the shader map | Shader.h | |
void RemoveShaderTypePermutaion
(
const FShaderType* Type, |
Shader.h | ||
void SaveShaderStableKeys
(
const FShaderMapBase& InShaderMap, |
Shader.h | ||
void UpdateHash
(
FSHA1& Hasher |
Shader.h | ||
void Validate
(
const FShaderMapBase& InShaderMap |
Shader.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EmptyShaderPipelines() |
Shader.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void InternalDestroy
(
void* Object, |
Shader.h | ||
static void InternalInitializeBases
(
FTypeLayoutDesc& TypeDesc |
Shader.h | ||
static FTypeLayoutDesc & StaticGetTypeLayout() |
Shader.h |