engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FMeshDrawCommand类 参考

FMeshDrawCommand fully describes a mesh pass draw call, captured just above the RHI. 更多...

#include <MeshPassProcessor.h>

Public 成员函数

RENDERER_API void SetDrawParametersAndFinalize (const FMeshBatch &MeshBatch, int32 BatchElementIndex, FGraphicsMinimalPipelineStateId PipelineId, const FMeshProcessorShaders *ShadersForDebugging)
 Called when the mesh draw command is complete.
 
RENDERER_API void SetShaders (FRHIVertexDeclaration *VertexDeclaration, const FMeshProcessorShaders &Shaders, FGraphicsMinimalPipelineStateInitializer &PipelineState)
 Sets shaders on the mesh draw command and allocates room for the shader bindings.
 

静态 Public 成员函数

static void SubmitDraw (const FMeshDrawCommand &RESTRICT MeshDrawCommand, const FGraphicsMinimalPipelineStateSet &GraphicsMinimalPipelineStateSet, FRHIVertexBuffer *ScenePrimitiveIdsBuffer, int32 PrimitiveIdOffset, uint32 InstanceFactor, FRHICommandList &CommandList, class FMeshDrawCommandStateCache &RESTRICT StateCache)
 Submits commands to the RHI Commandlist to draw the MeshDrawCommand.
 

Public 属性

FGraphicsMinimalPipelineStateId CachedPipelineId
 PSO
 
uint32 FirstIndex
 Draw command parameters
 
FMeshDrawShaderBindings ShaderBindings
 Resource bindings
 
uint8 StencilRef
 Non-pipeline state
 

详细描述

FMeshDrawCommand fully describes a mesh pass draw call, captured just above the RHI.


FMeshDrawCommand should contain only data needed to draw. For InitViews payloads, use FVisibleMeshDrawCommand. FMeshDrawCommands are cached at Primitive AddToScene time for vertex factories that support it (no per-frame or per-view shader binding changes). Dynamic Instancing operates at the FMeshDrawCommand level for robustness.
Adding per-command shader bindings will reduce the efficiency of Dynamic Instancing, but rendering will always be correct. Any resources referenced by a command must be kept alive for the lifetime of the command. FMeshDrawCommand is not responsible for lifetime management of resources. For uniform buffers referenced by cached FMeshDrawCommand's, RHIUpdateUniformBuffer makes it possible to access per-frame data in the shader without changing bindings.


该类的文档由以下文件生成: