| 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 | { |
nothing calls this directly
no test coverage detected