Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterial
Description
Gathers a list of shader types sorted by vertex factory types that should be cached for this material. Avoids doing expensive material and shader compilation to acquire this information.
Virtual Inheritance
- UMaterialInterface::GetShaderTypes → UMaterial::GetShaderTypes
| Name | GetShaderTypes |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/Material.h |
| Include Path | #include "Materials/Material.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/Material.cpp |
virtual void GetShaderTypes
(
EShaderPlatform Platform,
const ITargetPlatform * TargetPlatform,
TArray < FDebugShaderTypeInfo > & OutShaderInfo
)
Parameters
| Name | Remarks |
|---|---|
| Platform | The shader platform to get info for. |
| TargetPlatform | The target platform to get info for (e.g. WindowsClient). Various target platforms can share the same ShaderPlatform. |
| OutShaderInfo | Array of results sorted by vertex factory type, and shader type. |