Files
video-shader-toys/apps/LoopThroughWithOpenGLCompositing/runtime/live/RenderStateComposer.cpp
Aiden 06f3dd4942
Some checks failed
CI / React UI Build (push) Successful in 10s
CI / Native Windows Build And Tests (push) Successful in 2m33s
CI / Windows Release Package (push) Has been cancelled
Phase 3 refactor in progress
2026-05-11 16:48:52 +10:00

25 lines
732 B
C++

#include "RenderStateComposer.h"
RenderStateCompositionResult RenderStateComposer::BuildFrameState(const RenderStateCompositionInput& input) const
{
RenderStateCompositionResult result;
if (!input.baseLayerStates)
return result;
result.layerStates = *input.baseLayerStates;
result.hasLayerStates = !result.layerStates.empty();
if (input.liveState)
{
RuntimeLiveStateApplyOptions options;
options.allowCommit = input.allowLiveCommits;
options.smoothing = input.liveSmoothing;
options.commitDelay = input.liveCommitDelay;
options.now = input.now;
input.liveState->ApplyToLayerStates(
result.layerStates,
options,
input.collectLiveCommitRequests ? &result.commitRequests : nullptr);
}
return result;
}