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

Name Description

Public function

FMaterialShader()

Public function

FMaterialShader

(
    const FMaterialShaderType::Compiled ...
)

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,
    const TUniformBufferRef < FViewUnifo ...,
    ESceneTextureSetupMode SceneTexture...
)

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

Public function

void

 

SetParameters

(
    FRHICommandList & RHICmdList,
    TRHIShader* ShaderRHI,
    const FMaterialRenderProxy * Ma...,
    const FMaterial & Material,
    const FViewInfo& View,
    const TUniformBufferRef < FViewUnifo ...,
    ESceneTextureSetupMode SceneTexture...
)

Like SetParameters above, but takes a FViewInfo rather than FSceneView , which allows additional per-view parameters to be set

Public function

void

 

SetParametersInner

(
    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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback