FMaterialShader

Base class of all shaders that need material parameters.

Windows
MacOS
Linux

Inheritance Hierarchy

FShader

FMaterialShader

FMeshMaterialShader

References

Module

Renderer

Header

/Engine/Source/Runtime/Renderer/Public/MaterialShader.h

Include

#include "MaterialShader.h"

Syntax

class FMaterialShader : public FShader

Remarks

Base class of all shaders that need material parameters.

Variables

Constructors

Functions

Name Description

Public function Const

FRHIUniformB...

 

GetParameterCollectionBuffer

(
    const FGuid& Id,
    const FSceneInterface* SceneIn...
)

Public function Const

void

 

GetShaderBindings

(
    const FScene* Scene,
    const FStaticFeatureLevel FeatureLe...,
    const FMaterialRenderProxy& Materi...,
    const FMaterial& Material,
    FMeshDrawSingleShaderBindings& Sha...
)

Public function Const

const FTypeL...

 

GetTypeLayout()

Public function

void

 

SetParameters

(
    FRHICommandList& RHICmdList,
    TRHIShader* ShaderRHI,
    const FMaterialRenderProxy* Ma...,
    const FMaterial& Material,
    const FSceneView& View
)

Sets pixel parameters that are material specific but not FMeshBatch specific.

Public function

void

 

SetViewParameters

(
    FRHICommandList& RHICmdList,
    const ShaderRHIParamRef ShaderRHI,
    const FSceneView& View,
    const TUniformBufferRef< FViewUnifo...
)

Public function Static

FTypeLayoutD...

 

StaticGetTypeLayout()

Classes

Name

Description

Public struct

InternalLinkType

Typedefs

Constants

Name

Description

bAllowCachedUniformExpressions

If true, cached uniform expressions are allowed.

CounterBase

CVarAllowCachedUniformExpressions

Console variable ref to toggle cached uniform expressions.

InterfaceType

UniformBufferLayoutName

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss