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

Method writeMaterials

Source/Falcor/Scene/SceneCache.cpp:685–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683 // Materials
684
685 void SceneCache::writeMaterials(OutputStream& stream, const MaterialSystem& materialSystem)
686 {
687 uint32_t materialCount = materialSystem.getMaterialCount();
688 stream.write(materialCount);
689
690 for (MaterialID materialID{ 0 }; materialID.get() < materialCount; ++materialID)
691 {
692 auto pMaterial = materialSystem.getMaterial(materialID);
693 writeMaterial(stream, pMaterial);
694 }
695 }
696
697 void SceneCache::writeMaterial(OutputStream& stream, const ref<Material>& pMaterial)
698 {

Callers

nothing calls this directly

Calls 3

getMaterialMethod · 0.80
writeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected