| 241 | } |
| 242 | |
| 243 | RenderPass* RenderGraph::getRenderPassAndNamePair( |
| 244 | const bool input, |
| 245 | const std::string& fullname, |
| 246 | std::pair<std::string, std::string>& nameAndField |
| 247 | ) const |
| 248 | { |
| 249 | nameAndField = parseFieldName(fullname); |
| 250 | |
| 251 | RenderPass* pPass = getPass(nameAndField.first).get(); |
| 252 | FALCOR_CHECK(pPass, "Can't find render pass '{}'.", nameAndField.first); |
| 253 | |
| 254 | RenderPass::CompileData compileData; |
| 255 | compileData.defaultTexDims = mCompilerDeps.defaultResourceProps.dims; |
| 256 | compileData.defaultTexFormat = mCompilerDeps.defaultResourceProps.format; |
| 257 | |
| 258 | if (nameAndField.second.size() && checkRenderPassIoExist(pPass, nameAndField.second, input, compileData) == false) |
| 259 | FALCOR_THROW("Can't find field named '{}' in render pass '{}'.", nameAndField.second, nameAndField.first); |
| 260 | |
| 261 | return pPass; |
| 262 | } |
| 263 | |
| 264 | static bool checkMatchingEdgeTypes(const std::string& srcField, const std::string& dstField) |
| 265 | { |
nothing calls this directly
no test coverage detected