Moving updateBlas to animationObject
This commit is contained in:
parent
fbbfb0b167
commit
e6976c0e65
1 changed files with 1 additions and 1 deletions
|
|
@ -963,7 +963,6 @@ void HelloVulkan::animationInstances(float time)
|
||||||
m_alloc.destroy(stagingBuffer);
|
m_alloc.destroy(stagingBuffer);
|
||||||
|
|
||||||
m_rtBuilder.updateTlasMatrices(m_tlas);
|
m_rtBuilder.updateTlasMatrices(m_tlas);
|
||||||
m_rtBuilder.updateBlas(2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HelloVulkan::animationObject(float time)
|
void HelloVulkan::animationObject(float time)
|
||||||
|
|
@ -982,6 +981,7 @@ void HelloVulkan::animationObject(float time)
|
||||||
&time);
|
&time);
|
||||||
cmdBuf.dispatch(model.nbVertices, 1, 1);
|
cmdBuf.dispatch(model.nbVertices, 1, 1);
|
||||||
genCmdBuf.submitAndWait(cmdBuf);
|
genCmdBuf.submitAndWait(cmdBuf);
|
||||||
|
m_rtBuilder.updateBlas(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue