mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 01:07:43 +00:00
Buffer pool intrinsic garbage collection
This commit is contained in:
@@ -373,14 +373,18 @@ void View::draw(boo::IGraphicsCommandQueue* gfxQ)
|
||||
}
|
||||
}
|
||||
|
||||
void View::_commitResources(ViewResources& res, const boo::FactoryCommitFunc& commitFunc)
|
||||
{
|
||||
m_gfxData = res.m_factory->commitTransaction(commitFunc);
|
||||
}
|
||||
|
||||
void View::commitResources(ViewResources& res, const boo::FactoryCommitFunc& commitFunc)
|
||||
{
|
||||
if (m_gfxData)
|
||||
Log.report(logvisor::Fatal, "multiple resource commits not allowed");
|
||||
m_gfxData = res.m_factory->commitTransaction(commitFunc);
|
||||
_commitResources(res, commitFunc);
|
||||
}
|
||||
|
||||
|
||||
void View::VertexBufferBindingSolid::init(boo::IGraphicsDataFactory::Context& ctx,
|
||||
ViewResources& res, size_t count,
|
||||
const UniformBufferPool<ViewBlock>::Token& viewBlockBuf)
|
||||
|
||||
Reference in New Issue
Block a user