Navigation
API > API/Runtime > API/Runtime/RenderCore
Inheritance Hierarchy
- FShaderMapContent
- FGlobalShaderMapContent
- FMaterialShaderMapContent
- FMeshMaterialShaderMap
- FNiagaraShaderMapContent
- FOpenColorIOShaderMapContent
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| FMemoryImageHashTable | ShaderHash | ||
| TMemoryImageArray< int32 > | ShaderPermutations | ||
| TMemoryImageArray< TMemoryImagePtr< FShaderPipeline > > | ShaderPipelines | ||
| FMemoryImageName | ShaderPlatformName | The ShaderPlatform Name this shader map was compiled with | |
| TMemoryImageArray< TMemoryImagePtr< FShader > > | Shaders | ||
| TMemoryImageArray< FHashedName > | ShaderTypes |
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 * | GetShader
(
const typename ShaderType::FPermutationDomain& PermutationVector |
Finds the shader with the given type. Asserts on failure. | |
| ShaderType * | GetShader
(
int32 PermutationId |
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 () |
||
| RENDERCORE_API const FTypeLayoutDesc & | |||
| bool | HasShader
(
const FShaderType* Type, |
||
| bool | HasShader
(
const FHashedName& TypeName, |
Finds the shader with the given type. | |
| bool | HasShaderPipeline
(
const FShaderPipelineType* PipelineType |
||
| bool | HasShaderPipeline
(
const FHashedName& PipelineTypeName |
||
| bool | IsEmpty () |
||
| void | RemoveShaderPipelineType
(
const FShaderPipelineType* ShaderPipelineType |
||
| void | RemoveShaderTypePermutaion
(
const FHashedName& TypeName, |
Removes the shader of the given type from the shader map | |
| void | RemoveShaderTypePermutaion
(
const FShaderType* Type, |
||
| void | SaveShaderStableKeys
(
const FShaderMapBase& InShaderMap, |
||
| RENDERCORE_API FTypeLayoutDesc & | |||
| void | UpdateHash
(
FSHA1& Hasher |
||
| void | Validate
(
const FShaderMapBase& InShaderMap |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FProjectShaderPipelineToKey | |||
| InternalLinkType | |||
| InternalLinkType< COUNTER-CounterBase > |
Typedefs
| Name | Description |
|---|---|
| DerivedType | |
| FMemoryImageHashTable | |
| InternalBaseType |
Constants
| Name | Description |
|---|---|
| CounterBase | |
| InterfaceType |