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

Method loadMaterialTexture

Source/Falcor/Scene/SceneBuilder.cpp:940–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

loadTexturesFunction · 0.80

Calls 3

resetMethod · 0.45
resolvePathMethod · 0.45
loadTextureMethod · 0.45

Tested by

no test coverage detected