Navigation
API > API/Runtime > API/Runtime/Engine
A shader meta type for material-linked shaders.
| Name | FMaterialShaderType |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShaderType.h |
| Include Path | #include "MaterialShaderType.h" |
Syntax
class FMaterialShaderType : public FShaderType
Inheritance Hierarchy
- FShaderType → FMaterialShaderType
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMaterialShaderType
(
FTypeLayoutDesc& InTypeLayout, |
MaterialShaderType.h |
Structs
| Name | Remarks |
|---|---|
| CompiledShaderInitializerType |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BeginCompileShader
(
EShaderCompileJobPriority Priority, |
Enqueues a compilation for a new shader of this type. | MaterialShaderType.h | |
FShader * FinishCompileShader
(
const FUniformExpressionSet& UniformExpressionSet, |
Either creates a new instance of this type or returns an equivalent existing shader. | MaterialShaderType.h | |
void SetupCompileEnvironment
(
EShaderPlatform Platform, |
Sets up the environment used to compile an instance of this shader type. | MaterialShaderType.h | |
bool ShouldCompilePermutation
(
EShaderPlatform Platform, |
Checks if the shader type should be cached for a particular platform and material. | MaterialShaderType.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void BeginCompileShaderPipeline
(
EShaderCompileJobPriority Priority, |
MaterialShaderType.h | ||
static bool ShouldCompilePipeline
(
const FShaderPipelineType* ShaderPipelineType, |
MaterialShaderType.h |