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