Add manifest support for pass declarations
This commit is contained in:
@@ -120,11 +120,15 @@ PreparedShaderBuild ShaderBuildQueue::Build(uint64_t generation, unsigned output
|
||||
{
|
||||
PreparedLayerShader layer;
|
||||
layer.state = state;
|
||||
if (!mRuntimeHost.BuildLayerFragmentShaderSource(state.layerId, layer.fragmentShaderSource, build.message))
|
||||
std::vector<std::pair<std::string, std::string>> passSources;
|
||||
if (!mRuntimeHost.BuildLayerPassFragmentShaderSources(state.layerId, passSources, build.message))
|
||||
{
|
||||
build.succeeded = false;
|
||||
return build;
|
||||
}
|
||||
layer.passes.reserve(passSources.size());
|
||||
for (auto& passSource : passSources)
|
||||
layer.passes.push_back({ std::move(passSource.first), std::move(passSource.second) });
|
||||
build.layers.push_back(std::move(layer));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user