| 938 | } |
| 939 | |
| 940 | void SceneBuilder::loadMaterialTexture(const ref<Material>& pMaterial, Material::TextureSlot slot, const std::filesystem::path& path) |
| 941 | { |
| 942 | FALCOR_CHECK(pMaterial != nullptr, "'pMaterial' is missing"); |
| 943 | if (!mpMaterialTextureLoader) |
| 944 | { |
| 945 | mpMaterialTextureLoader.reset(new MaterialTextureLoader(mSceneData.pMaterials->getTextureManager(), !is_set(mFlags, Flags::AssumeLinearSpaceTextures))); |
| 946 | } |
| 947 | std::filesystem::path resolvedPath = mAssetResolver.resolvePath(path); |
| 948 | mpMaterialTextureLoader->loadTexture(pMaterial, slot, resolvedPath); |
| 949 | } |
| 950 | |
| 951 | void SceneBuilder::waitForMaterialTextureLoading() |
| 952 | { |
no test coverage detected