Diligent Engine
Loading...
Searching...
No Matches
Diligent::MaterialStorage::ReadAccess Class Referencefinal

#include <RadientMaterialStorage.hpp>

Detailed Description

Holds read access to material values and their versions until destruction. The storage must outlive the access object. References obtained from it are protected only while the object owns access; moved-from objects may only be destroyed. Surface properties read by shader packing are protected by the same scope because writers and animation update them under the same lock.