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

Method writeBasicMaterial

Source/Falcor/Scene/SceneCache.cpp:727–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725 }
726
727 void SceneCache::writeBasicMaterial(OutputStream& stream, const ref<BasicMaterial>& pMaterial)
728 {
729 stream.write(pMaterial->mData);
730 stream.write(pMaterial->mAlphaRange);
731 stream.write(pMaterial->mIsTexturedBaseColorConstant);
732 stream.write(pMaterial->mIsTexturedAlphaConstant);
733 stream.write(pMaterial->mDisplacementMapChanged);
734
735 writeSampler(stream, pMaterial->mpDefaultSampler);
736 writeSampler(stream, pMaterial->mpDisplacementMinSampler);
737 writeSampler(stream, pMaterial->mpDisplacementMaxSampler);
738 }
739
740 void SceneCache::readMaterials(InputStream& stream, MaterialSystem& materialSystem, MaterialTextureLoader& materialTextureLoader, ref<Device> pDevice)
741 {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected