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

Method hasMaterial

Source/Falcor/Scene/Material/MaterialSystem.cpp:327–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 bool MaterialSystem::hasMaterial(const MaterialID materialID) const
328 {
329 // The materials are sequentially indexed without gaps for now. Check if the ID is within range.
330 return materialID.isValid() ? materialID.get() < mMaterials.size() : false;
331 }
332
333 const ref<Material>& MaterialSystem::getMaterial(const MaterialID materialID) const
334 {

Callers

nothing calls this directly

Calls 3

isValidMethod · 0.45
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected