Navigation
API > API/Plugins > API/Plugins/NiagaraShader
A shader meta type for niagara-linked shaders.
| Name | FNiagaraShaderType |
| Type | class |
| Header File | /Engine/Plugins/FX/Niagara/Source/NiagaraShader/Public/NiagaraShaderType.h |
| Include Path | #include "NiagaraShaderType.h" |
Syntax
class FNiagaraShaderType : public FShaderType
Inheritance Hierarchy
- FShaderType → FNiagaraShaderType
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNiagaraShaderType
(
FTypeLayoutDesc& InTypeLayout, |
NiagaraShaderType.h |
Structs
| Name | Remarks |
|---|---|
| CompiledShaderInitializerType | |
| FParameters |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddUniformBufferIncludesToEnvironment
(
FShaderCompilerEnvironment& OutEnvironment, |
Adds include statements for uniform buffers that this shader type references, and builds a prefix for the shader file with the include statements. | NiagaraShaderType.h | |
void BeginCompileShader
(
uint32 ShaderMapId, |
Enqueues a compilation for a new shader of this type. | NiagaraShaderType.h | |
void BeginCompileShaderFromSource
(
FStringView FriendlyName, |
Enqueues a compilation for a new shader of this type. | NiagaraShaderType.h | |
FShader * FinishCompileShader
(
const FSHAHash& NiagaraShaderMapHash, |
Either creates a new instance of this type or returns an equivalent existing shader. | NiagaraShaderType.h | |
bool ShouldCache
(
EShaderPlatform Platform, |
Checks if the shader type should be cached for a particular platform and script. | NiagaraShaderType.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetupCompileEnvironment
(
EShaderPlatform Platform, |
Sets up the environment used to compile an instance of this shader type. | NiagaraShaderType.h |