25 lines
867 B
C++
25 lines
867 B
C++
#pragma once
|
|
|
|
#include "RuntimeHost.h"
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class RuntimeSnapshotProvider
|
|
{
|
|
public:
|
|
explicit RuntimeSnapshotProvider(RuntimeHost& runtimeHost);
|
|
|
|
bool BuildLayerPassFragmentShaderSources(const std::string& layerId, std::vector<ShaderPassBuildSource>& passSources, std::string& error) const;
|
|
std::vector<RuntimeRenderState> GetLayerRenderStates(unsigned outputWidth, unsigned outputHeight) const;
|
|
bool TryGetLayerRenderStates(unsigned outputWidth, unsigned outputHeight, std::vector<RuntimeRenderState>& states) const;
|
|
bool TryRefreshCachedLayerStates(std::vector<RuntimeRenderState>& states) const;
|
|
void RefreshDynamicRenderStateFields(std::vector<RuntimeRenderState>& states) const;
|
|
uint64_t GetRenderStateVersion() const;
|
|
uint64_t GetParameterStateVersion() const;
|
|
|
|
private:
|
|
RuntimeHost& mRuntimeHost;
|
|
};
|