载入中...
搜索中...
未找到
MeshVfxRenderBatch.cpp
浏览该文件的文档.
62 {item.stableInstanceId, lod.tier, refresh ? MeshVfxMeshUpdate::Refresh : MeshVfxMeshUpdate::Reuse,
67 (item.key.blend == MeshVfxBatchBlend::Additive ? additive : alpha).push_back(std::move(planned));
104MeshVfxLodTier requestedTier(const MeshVfxLodCandidate& candidate, const MeshVfxScalabilityPolicy& policy) {
106 candidate.distance > policy.maximumDistance || !std::isfinite(candidate.projectedRadiusPixels)) {
118MeshVfxLodDecision makeDecision(std::uint64_t id, MeshVfxLodTier tier, const MeshVfxScalabilityPolicy& policy) {
151MeshVfxScalabilityPlanner::MeshVfxScalabilityPlanner(MeshVfxScalabilityPolicy policy) : policy_(policy) {}
153std::vector<MeshVfxLodDecision> MeshVfxScalabilityPlanner::plan(std::span<const MeshVfxLodCandidate> candidates) const {
std::map< std::array< int, 4 >, std::vector< const Subject * > > candidates
Definition Sensing.cpp:32
MeshVfxRenderQueue build(std::span< const MeshVfxRenderItem > items, std::span< const MeshVfxLodDecision > lodDecisions, std::uint64_t frameIndex) const
Builds one frame's render queue.
Definition MeshVfxRenderBatch.cpp:29
MeshVfxScalabilityPlanner(MeshVfxScalabilityPolicy policy={})
Creates a planner with the supplied immutable policy.
Definition MeshVfxRenderBatch.cpp:151
std::vector< MeshVfxLodDecision > plan(std::span< const MeshVfxLodCandidate > candidates) const
Plans one frame while preserving the input order in the result.
Definition MeshVfxRenderBatch.cpp:153
Definition MeshVfxPackage.h:10
MeshVfxLodTier
Runtime quality tier selected for one mesh VFX instance.
Definition MeshVfxScalability.h:13
std::uint32_t dynamicMeshRefreshes
Definition MeshVfxRenderBatch.h:64
std::uint32_t culledDraws
Definition MeshVfxRenderBatch.h:62
std::uint32_t missingDecisions
Definition MeshVfxRenderBatch.h:63
std::uint32_t inputItems
Definition MeshVfxRenderBatch.h:60
Complete deterministic queue consumed by a graphics backend.
Definition MeshVfxRenderBatch.h:68
Global deterministic quality and work budget for mesh VFX.
Definition MeshVfxScalability.h:21