Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include | #include "MaterialShared.h" |
Syntax
class FMaterialCompilationOutput
Remarks
Stores outputs from the material compile that need to be saved.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EstimatedLWCFuncUsagesPS | |||
| int ELWCFunctionKind::Max | EstimatedNumVirtualTextureLookups |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | FindOrAddUserSceneTexture
(
FName UserSceneTexture |
Returns Id for a user scene texture input, or INDEX_NONE if allocation fails. | |
| int32 | Returns number of post process inputs used, between PostProcessInput SceneTexture nodes and UserSceneTexture nodes. | ||
| bool | IsSceneTextureUsed
(
ESceneTextureId TexId |
||
| int ELWCFunctionKind::Max | LAYOUT_ARRAY_EDITORONLY
(
uint16, |
Number of virtual texture lookups performed, excludes direct invocation in shaders (for example VT lightmaps) | |
LAYOUT_ARRAY_EDITORONLY
(
uint16, |
Estimate of the number of times each LWC operator occurs in the material shader code | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material uses distance cull fade | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material uses per-instance custom data | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material uses vertex interpolator | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material uses non 0 anisotropy value | ||
LAYOUT_BITFIELD
(
uint8, |
True if material uses the global distance field | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material is compatible with the light function atlas | ||
LAYOUT_BITFIELD
(
uint8, |
Whether the material uses scalar displacement. | ||
LAYOUT_BITFIELD
(
uint8, |
Whether the material uses NNE. | ||
LAYOUT_BITFIELD
(
uint8, |
Whether the material uses customized UVs. | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material writes to a runtime virtual texture custom output node. | ||
LAYOUT_BITFIELD
(
uint8, |
Whether the material uses world position offset. | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material writes a pixel depth offset | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material uses the EyeAdaptationLookup | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material uses DBuffer texture lookups. | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material needs the scene texture lookups. | ||
LAYOUT_BITFIELD
(
uint8, |
True if the material modifies the the mesh position. | ||
LAYOUT_FIELD
(
uint8, |
Bitfield of runtime virtual texture output attributes. | ||
LAYOUT_FIELD
(
uint8, |
Bitfield of used DBuffer textures . | ||
LAYOUT_FIELD
(
FSubstrateMaterialCompilationOutput, |
The Substrate material layout | ||
LAYOUT_FIELD
(
uint8, |
Bitfield of the EPathTracingBufferTextureId used | ||
LAYOUT_FIELD
(
uint32, |
Bitfield of the ESceneTextures used | ||
LAYOUT_FIELD
(
TMemoryImageArray< FScriptName >, |
User scene texture inputs to this material, these will use slots not taken up by the UsedSceneTextures bitfield below | ||
LAYOUT_FIELD
(
FUniformExpressionSet, |
|||
LAYOUT_FIELD_EDITORONLY
(
uint16, |
|||
LAYOUT_FIELD_EDITORONLY
(
uint16, |
Number of times SampleTexture is called, excludes custom nodes. | ||
LAYOUT_FIELD_EDITORONLY
(
uint8, |
Number of used custom vertex interpolation scalars. | ||
LAYOUT_FIELD_EDITORONLY
(
uint8, |
Number of used custom UV scalars. | ||
| bool | NeedsGBuffer () |
True if the material uses any GBuffer textures | |
| bool | Indicates whether the material uses scene color. | ||
| void | SetIsDBufferTextureLookupUsed
(
bool bValue |
||
| void | SetIsDBufferTextureUsed
(
int32 TextureIndex |
||
| void | SetIsPathTracingBufferTextureUsed
(
int32 TexId |
||
| void | SetIsSceneTextureUsed
(
ESceneTextureId TexId |
||
| bool | True if the material uses the SceneDepth lookup | ||
| bool | True if the material uses the Velocity SceneTexture lookup |