42 lines
1.4 KiB
C++
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();
|
|
}
|