A shader meta type for the simplest shaders; shaders which are not material or vertex factory linked.
更多...
|
| void | SetupCompileEnvironment (EShaderPlatform Platform, int32 PermutationId, FShaderCompilerEnvironment &Environment) |
| | Sets up the environment used to compile an instance of this shader type. 更多...
|
| |
| bool | ShouldCompilePermutation (EShaderPlatform Platform, int32 PermutationId) const |
| | Checks if the shader type should be cached for a particular platform. 更多...
|
| |
|
void | AddReferencedUniformBufferIncludes (FShaderCompilerEnvironment &OutEnvironment, FString &OutSourceFilePrefix, EShaderPlatform Platform) |
| | Adds include statements for uniform buffers that this shader type references, and builds a prefix for the shader file with the include statements.
|
| |
|
FShader * | ConstructForDeserialization () const |
| | Constructs a new instance of the shader type for deserialization.
|
| |
|
| FShaderType (EShaderTypeForDynamicCast InShaderTypeForDynamicCast, FTypeLayoutDesc &InTypeLayout, const TCHAR *InName, const TCHAR *InSourceFilename, const TCHAR *InFunctionName, uint32 InFrequency, int32 TotalPermutationCount, ConstructSerializedType InConstructSerializedRef, ConstructCompiledType InConstructCompiledRef, ModifyCompilationEnvironmentType InModifyCompilationEnvironmentRef, ShouldCompilePermutationType InShouldCompilePermutationRef, ValidateCompiledResultType InValidateCompiledResultRef, uint32 InTypeSize, const FShaderParametersMetadata *InRootParametersMetadata) |
| | Minimal initialization constructor.
|
| |
|
const FShaderParametersMetadata * | GetRootParametersMetadata () const |
| | Returns the meta data for the root shader parameter struct.
|
| |
|
const FSHAHash & | GetSourceHash (EShaderPlatform ShaderPlatform) const |
| | Calculates a Hash based on this shader type's source code and includes
|
| |
| bool | ValidateCompiledResult (EShaderPlatform Platform, const FShaderParameterMap &ParameterMap, TArray< FString > &OutError) const |
| | Checks if the shader type should pass compilation for a particular set of parameters. 更多...
|
| |
A shader meta type for the simplest shaders; shaders which are not material or vertex factory linked.
There should only a single instance of each simple shader type.