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

Method replaceBuffer

Source/Falcor/Scene/Material/MaterialSystem.cpp:196–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

updateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected