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

Method readSampler

Source/Falcor/Scene/SceneCache.cpp:827–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825 }
826
827 ref<Sampler> SceneCache::readSampler(InputStream& stream, ref<Device> pDevice)
828 {
829 bool valid = stream.read<bool>();
830 if (valid)
831 {
832 auto desc = stream.read<Sampler::Desc>();
833 return pDevice->createSampler(desc);
834 }
835 return nullptr;
836 }
837
838 // GridVolume
839

Callers

nothing calls this directly

Calls 1

createSamplerMethod · 0.80

Tested by

no test coverage detected