| 194 | } |
| 195 | |
| 196 | void MaterialSystem::replaceBuffer(uint32_t id, const ref<Buffer>& pBuffer) |
| 197 | { |
| 198 | FALCOR_ASSERT(pBuffer); |
| 199 | FALCOR_CHECK(id < mBuffers.size(), "'id' is out of bounds."); |
| 200 | |
| 201 | mBuffers[id] = pBuffer; |
| 202 | mBuffersChanged = true; |
| 203 | } |
| 204 | |
| 205 | uint32_t MaterialSystem::addTexture3D(const ref<Texture>& pTexture) |
| 206 | { |