phase 1 runtime complete
All checks were successful
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 2m46s
CI / Windows Release Package (push) Successful in 2m59s

This commit is contained in:
Aiden
2026-05-11 02:23:01 +10:00
parent cbf1b541dc
commit 9cbb5d8004
20 changed files with 265 additions and 1288 deletions

View File

@@ -564,15 +564,60 @@ bool RuntimeStore::CopyShaderPackageForStoredLayer(const std::string& layerId, S
return true;
}
void RuntimeStore::GetShaderCompilerInputs(std::filesystem::path& repoRoot, std::filesystem::path& wrapperPath,
std::filesystem::path& generatedGlslPath, std::filesystem::path& patchedGlslPath, unsigned& maxTemporalHistoryFrames) const
ShaderCompilerInputs RuntimeStore::GetShaderCompilerInputs() const
{
std::lock_guard<std::mutex> lock(mMutex);
repoRoot = mConfigStore.GetRepoRoot();
wrapperPath = mConfigStore.GetWrapperPath();
generatedGlslPath = mConfigStore.GetGeneratedGlslPath();
patchedGlslPath = mConfigStore.GetPatchedGlslPath();
maxTemporalHistoryFrames = mConfigStore.GetConfig().maxTemporalHistoryFrames;
ShaderCompilerInputs inputs;
inputs.repoRoot = mConfigStore.GetRepoRoot();
inputs.wrapperPath = mConfigStore.GetWrapperPath();
inputs.generatedGlslPath = mConfigStore.GetGeneratedGlslPath();
inputs.patchedGlslPath = mConfigStore.GetPatchedGlslPath();
inputs.maxTemporalHistoryFrames = mConfigStore.GetConfig().maxTemporalHistoryFrames;
return inputs;
}
RenderSnapshotReadModel RuntimeStore::BuildRenderSnapshotReadModel() const
{
RenderSnapshotReadModel model;
model.signalStatus = mHealthTelemetry.GetSignalStatusSnapshot();
std::lock_guard<std::mutex> lock(mMutex);
model.layers = mLayerStack.Layers();
model.packagesById = mShaderCatalog.CaptureSnapshot().packagesById;
model.timing.startTime = mStartTime;
model.timing.startupRandom = mStartupRandom;
return model;
}
std::vector<RuntimeStore::LayerPersistentState> RuntimeStore::CopyLayerStates() const
{
std::lock_guard<std::mutex> lock(mMutex);
return mLayerStack.Layers();
}
RenderTimingSnapshot RuntimeStore::GetRenderTimingSnapshot() const
{
std::lock_guard<std::mutex> lock(mMutex);
RenderTimingSnapshot snapshot;
snapshot.startTime = mStartTime;
snapshot.startupRandom = mStartupRandom;
return snapshot;
}
RuntimeStatePresentationReadModel RuntimeStore::BuildRuntimeStatePresentationReadModel() const
{
RuntimeStatePresentationReadModel model;
model.telemetry = mHealthTelemetry.GetSnapshot();
std::lock_guard<std::mutex> lock(mMutex);
model.config = mConfigStore.GetConfig();
model.layerStack = mLayerStack;
model.shaderCatalog = mShaderCatalog.CaptureSnapshot();
model.packageStatuses = mShaderCatalog.PackageStatuses();
model.stackPresetNames = GetStackPresetNamesLocked();
model.serverPort = mServerPort;
model.autoReloadEnabled = mAutoReloadEnabled;
model.compileSucceeded = mCompileSucceeded;
model.compileMessage = mCompileMessage;
return model;
}
void RuntimeStore::MarkRenderStateDirtyLocked()