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 | |
|---|---|---|---|
| uint8: 1 | bHasRuntimeVirtualTextureOutputNode | True if the material writes to a runtime virtual texture custom output node. | |
| uint8: 1 | bModifiesMeshPosition | True if the material modifies the the mesh position. | |
| uint8: 1 | bNeedsSceneTextures | True if the material needs the scene texture lookups. | |
| uint8: 1 | bUsesAnisotropy | True if the material uses non 0 anisotropy value | |
| uint8: 1 | bUsesDBufferTextureLookup | True if the material uses DBuffer texture lookups. | |
| uint8: 1 | bUsesDisplacement | Whether the material uses scalar displacement. | |
| uint8: 1 | bUsesDistanceCullFade | True if the material uses distance cull fade | |
| uint8: 1 | bUsesEyeAdaptation | True if the material uses the EyeAdaptationLookup | |
| uint8: 1 | bUsesGlobalDistanceField | True if material uses the global distance field | |
| uint8: 1 | bUsesPerInstanceCustomData | True if the material uses per-instance custom data | |
| uint8: 1 | bUsesPerInstanceRandom | True if the material uses per-instance random | |
| uint8: 1 | bUsesPixelDepthOffset | True if the material writes a pixel depth offset | |
| uint8: 1 | bUsesVertexInterpolator | True if the material uses vertex interpolator | |
| uint8: 1 | bUsesWorldPositionOffset | Whether the material uses world position offset. | |
| uint16[(int) ELWCFunctionKind::Max] | EstimatedLWCFuncUsages | Estimate of the number of times each LWC operator occurs in the material shader code | |
| uint16 | EstimatedNumTextureSamplesPS | ||
| uint16 | EstimatedNumTextureSamplesVS | Number of times SampleTexture is called, excludes custom nodes. | |
| uint16 | EstimatedNumVirtualTextureLookups | Number of virtual texture lookups performed, excludes direct invocation in shaders (for example VT lightmaps) | |
| uint8 | NumUsedCustomInterpolatorScalars | Number of used custom vertex interpolation scalars. | |
| uint8 | NumUsedUVScalars | Number of used custom UV scalars. | |
| uint8 | RuntimeVirtualTextureOutputAttributeMask | Bitfield of runtime virtual texture output attributes. | |
| FStrataMaterialCompilationOutput | StrataMaterialCompilationOutput | The Strata material layout | |
| FUniformExpressionSet | UniformExpressionSet | ||
| uint8 | UsedDBufferTextures | Bitfield of used DBuffer textures . | |
| uint8 | UsedPathTracingBufferTextures | Bitfield of the EPathTracingBufferTextureId used | |
| uint32 | UsedSceneTextures | Bitfield of the ESceneTextures used |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FTypeLayoutDesc & | |||
| bool | IsSceneTextureUsed
(
ESceneTextureId TexId |
||
| 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 |
||
| FTypeLayoutDesc & | |||
| bool | True if the material uses the SceneDepth lookup | ||
| bool | True if the material uses the Velocity SceneTexture lookup |
Classes
| Type | Name | Description | |
|---|---|---|---|
| InternalLinkType | |||
| InternalLinkType< COUNTER-CounterBase > |
Typedefs
| Name | Description |
|---|---|
| DerivedType | |
| InternalBaseType |
Constants
| Name | Description |
|---|---|
| CounterBase | |
| InterfaceType |