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

Method getTexture

Source/Falcor/Scene/Material/Material.cpp:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 ref<Texture> Material::getTexture(const TextureSlot slot) const
195 {
196 if (!hasTextureSlot(slot)) return nullptr;
197
198 FALCOR_ASSERT((size_t)slot < mTextureSlotInfo.size());
199 return mTextureSlotData[(size_t)slot].pTexture;
200 }
201
202 bool Material::loadTexture(TextureSlot slot, const std::filesystem::path& path, bool useSrgb)
203 {

Callers 4

writeMaterialMethod · 0.45
optimizeMaterialsMethod · 0.45
assignTexturesMethod · 0.45

Calls 2

hasTextureSlotFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected