FMeshDrawShaderBindings

Encapsulates shader bindings for a single [FMeshDrawCommand](API\Runtime\Renderer\FMeshDrawCommand).

Windows
MacOS
Linux

References

Module

Renderer

Header

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

Include

#include "MeshPassProcessor.h"

Syntax

class FMeshDrawShaderBindings

Remarks

Encapsulates shader bindings for a single FMeshDrawCommand.

Constructors

Destructors

Name Description

Public function

~FMeshDrawShaderBindings()

Functions

Name Description

Public function

void

 

Finalize

(
    const FMeshProcessorShaders* S...
)

Called once binding setup is complete.

Public function Const

SIZE_T

 

GetAllocatedSize()

Public function Const

int32

 

GetDataSize()

Public function Const

uint32

 

GetDynamicInstancingHash()

Public function Const

void

 

GetShaderFrequencies

Public function

FMeshDrawSin...

 

GetSingleShaderBindings

(
    EShaderFrequency Frequency,
    int32& DataOffset
)

Public function

void

 

Initialize

(
    FMeshProcessorShaders Shaders
)

Allocates space for the bindings of all shaders.

Public function Const

bool

 

MatchesForDynamicInstancing

(
    const FMeshDrawShaderBindings& Rhs
)

Returns whether this set of shader bindings can be merged into an instanced draw call with another.

Public function Const

void

 

SetOnCommandList

(
    FRHIComputeCommandList& RHICmdList,
    FRHIComputeShader* Shader
)

Set shader bindings on the commandlist, filtered by state cache.

Public function Const

void

 

SetOnCommandList

(
    FRHICommandList& RHICmdList,
    FBoundShaderStateInput Shaders,
    FShaderBindingState* StateCach...
)

Set shader bindings on the commandlist, filtered by state cache.

Public function

void

 

SetShaderBindings

(
    RHICmdListType& RHICmdList,
    RHIShaderType Shader,
    const FReadOnlyMeshDrawSingleShader...
)

Public function

void

 

SetShaderBindings

(
    RHICmdListType& RHICmdList,
    RHIShaderType Shader,
    const FReadOnlyMeshDrawSingleShader...,
    FShaderBindingState&__restrict Sha...
)

Operators

Name Description

Public function

FMeshDrawSha...

 

operator=

(
    const FMeshDrawShaderBindings& Oth...
)

Public function

FMeshDrawSha...

 

operator=

(
    FMeshDrawShaderBindings&& Other
)

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