MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / checkRenderPassIoExist

Function checkRenderPassIoExist

Source/Falcor/RenderGraph/RenderGraph.cpp:209–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207using str_pair = std::pair<std::string, std::string>;
208
209static 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
226static str_pair parseFieldName(const std::string& fullname)
227{

Callers 1

Calls 4

getVisibilityMethod · 0.80
reflectMethod · 0.45
getFieldMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected