Files
video-shader-toys/apps/LoopThroughWithOpenGLCompositing/runtime/RuntimeSnapshotProvider.cpp
Aiden 3629227aa9
All checks were successful
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 2m31s
CI / Windows Release Package (push) Successful in 2m32s
intial phase 1 subsytem split
2026-05-10 23:03:15 +10:00

42 lines
1.4 KiB
C++

#include "RuntimeSnapshotProvider.h"
RuntimeSnapshotProvider::RuntimeSnapshotProvider(RuntimeHost& runtimeHost) :
mRuntimeHost(runtimeHost)
{
}
bool RuntimeSnapshotProvider::BuildLayerPassFragmentShaderSources(const std::string& layerId, std::vector<ShaderPassBuildSource>& passSources, std::string& error) const
{
return mRuntimeHost.BuildLayerPassFragmentShaderSources(layerId, passSources, error);
}
std::vector<RuntimeRenderState> RuntimeSnapshotProvider::GetLayerRenderStates(unsigned outputWidth, unsigned outputHeight) const
{
return mRuntimeHost.GetLayerRenderStates(outputWidth, outputHeight);
}
bool RuntimeSnapshotProvider::TryGetLayerRenderStates(unsigned outputWidth, unsigned outputHeight, std::vector<RuntimeRenderState>& states) const
{
return mRuntimeHost.TryGetLayerRenderStates(outputWidth, outputHeight, states);
}
bool RuntimeSnapshotProvider::TryRefreshCachedLayerStates(std::vector<RuntimeRenderState>& states) const
{
return mRuntimeHost.TryRefreshCachedLayerStates(states);
}
void RuntimeSnapshotProvider::RefreshDynamicRenderStateFields(std::vector<RuntimeRenderState>& states) const
{
mRuntimeHost.RefreshDynamicRenderStateFields(states);
}
uint64_t RuntimeSnapshotProvider::GetRenderStateVersion() const
{
return mRuntimeHost.GetRenderStateVersion();
}
uint64_t RuntimeSnapshotProvider::GetParameterStateVersion() const
{
return mRuntimeHost.GetParameterStateVersion();
}