| 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 | { |
no test coverage detected