| 388 | } |
| 389 | |
| 390 | std::vector<std::string> RenderGraph::getAvailableOutputs() const |
| 391 | { |
| 392 | std::vector<std::string> outputs; |
| 393 | |
| 394 | RenderPass::CompileData compileData; |
| 395 | compileData.defaultTexDims = mCompilerDeps.defaultResourceProps.dims; |
| 396 | compileData.defaultTexFormat = mCompilerDeps.defaultResourceProps.format; |
| 397 | |
| 398 | for (const auto& node : mNodeData) |
| 399 | { |
| 400 | RenderPassReflection reflection = node.second.pPass->reflect(compileData); |
| 401 | for (size_t i = 0; i < reflection.getFieldCount(); i++) |
| 402 | { |
| 403 | const auto& f = *reflection.getField(i); |
| 404 | if (is_set(f.getVisibility(), RenderPassReflection::Field::Visibility::Output)) |
| 405 | outputs.push_back(node.second.name + "." + f.getName()); |
| 406 | } |
| 407 | } |
| 408 | return outputs; |
| 409 | } |
| 410 | |
| 411 | std::vector<std::string> RenderGraph::getUnmarkedOutputs() const |
| 412 | { |
no test coverage detected