| 207 | using str_pair = std::pair<std::string, std::string>; |
| 208 | |
| 209 | static bool checkRenderPassIoExist(RenderPass* pPass, const std::string& name, const bool input, const RenderPass::CompileData& compileData) |
| 210 | { |
| 211 | FALCOR_ASSERT(pPass); |
| 212 | RenderPassReflection reflect = pPass->reflect(compileData); |
| 213 | for (size_t i = 0; i < reflect.getFieldCount(); i++) |
| 214 | { |
| 215 | const auto& f = *reflect.getField(i); |
| 216 | if (f.getName() == name) |
| 217 | { |
| 218 | return input ? is_set(f.getVisibility(), RenderPassReflection::Field::Visibility::Input) |
| 219 | : is_set(f.getVisibility(), RenderPassReflection::Field::Visibility::Output); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | return false; |
| 224 | } |
| 225 | |
| 226 | static str_pair parseFieldName(const std::string& fullname) |
| 227 | { |
no test coverage detected