Navigation
API > API/Runtime > API/Runtime/RenderCore
Inheritance Hierarchy
- FShaderMapContent
- FGlobalShaderMapContent
- FMaterialShaderMapContent
- FMeshMaterialShaderMap
- FNiagaraShaderMapContent
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/Shader.h |
| Include | #include "Shader.h" |
Syntax
class FShaderMapContent
Remarks
A collection of shaders of different types
Constructors
| Type | Name | Description | |
|---|---|---|---|
FShaderMapContent
(
EShaderPlatform InPlatform |
Default constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor ensures pipelines cleared up. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddShader
(
const FHashedName& TypeName, |
||
| void | AddShaderPipeline
(
FShaderPipeline* Pipeline |
||
| void | Empty () |
Clears out all shaders and deletes shader pipelines held in the map | |
| void | |||
| void | Finalize
(
const FShaderMapResourceCode* Code |
||
| FShader * | FindOrAddShader
(
const FHashedName& TypeName, |
||
| FShaderPipeline * | FindOrAddShaderPipeline
(
FShaderPipeline* Pipeline |
||
| uint32 | GetMaxNumInstructionsForShader
(
const FShaderMapBase& InShaderMap, |
||
| uint32 | GetMaxTextureSamplersShaderMap
(
const FShaderMapBase& InShaderMap |
||
| uint32 | |||
| uint32 | |||
| void | GetOutdatedTypes
(
const FShaderMapBase& InShaderMap, |
||
| FShader * | GetShader
(
const FHashedName& TypeName, |
Finds the shader with the given type name. May return NULL. | |
| FShader * | GetShader
(
const FShaderType* ShaderType, |
Finds the shader with the given type. May return NULL. | |
| ShaderType * | Finds the shader with the given type. Asserts on failure. | ||
| ShaderType * | GetShader
(
const typename ShaderType::FPermutationDomain& PermutationVector |
Finds the shader with the given type. Asserts on failure. | |
| void | GetShaderList
(
const FShaderMapBase& InShaderMap, |
Builds a list of the shaders in a shader map. | |
| void | GetShaderList
(
const FShaderMapBase& InShaderMap, |
Builds a list of the shaders in a shader map. Key is FShaderType::TypeName | |
| FShaderPipeline * | GetShaderPipeline
(
const FShaderPipelineType* PipelineType |
||
| FShaderPipeline * | GetShaderPipeline
(
const FHashedName& PipelineTypeName |
||
| void | GetShaderPipelineList
(
const FShaderMapBase& InShaderMap, |
Builds a list of the shader pipelines in a shader map. | |
| TArrayView< const TMemoryImagePtr< FShaderPipeline > > | |||
| EShaderPlatform | |||
| TArrayView< const TMemoryImagePtr< FShader > > | GetShaders () |
||
| TArray< FGenericShaderStat > | GetShaderStatistics
(
const FShaderMapBase& InShaderMap, |
||
| const FShader::FShaderStatisticMap | GetShaderStatisticsMapForShader
(
const FShaderMapBase& InShaderMap, |
||
| bool | HasShader
(
const FHashedName& TypeName, |
Finds the shader with the given type. | |
| bool | HasShader
(
const FShaderType* Type, |
||
| bool | HasShaderPipeline
(
const FHashedName& PipelineTypeName |
||
| bool | HasShaderPipeline
(
const FShaderPipelineType* PipelineType |
||
| bool | IsEmpty () |
||
LAYOUT_FIELD
(
TMemoryImageArray< TMemoryImagePtr< FShaderPipeline > >, |
|||
LAYOUT_FIELD
(
FMemoryImageName, |
The ShaderPlatform Name this shader map was compiled with | ||
LAYOUT_FIELD
(
TMemoryImageArray< FHashedName >, |
|||
LAYOUT_FIELD
(
FMemoryImageHashTable, |
|||
LAYOUT_FIELD
(
TMemoryImageArray< TMemoryImagePtr< FShader > >, |
|||
LAYOUT_FIELD
(
TMemoryImageArray< int32 >, |
|||
| void | RemoveShaderPipelineType
(
const FShaderPipelineType* ShaderPipelineType |
||
| void | RemoveShaderTypePermutaion
(
const FShaderType* Type, |
||
| void | RemoveShaderTypePermutaion
(
const FHashedName& TypeName, |
Removes the shader of the given type from the shader map | |
| void | SaveShaderStableKeys
(
const FShaderMapBase& InShaderMap, |
||
| void | UpdateHash
(
FSHA1& Hasher |
||
| void | Validate
(
const FShaderMapBase& InShaderMap |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FProjectShaderPipelineToKey |
Typedefs
| Name | Description |
|---|---|
| FMemoryImageHashTable |