mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 06:51:18 +12:00
move buffer allocators to separate file & fix: high memory usage
This commit is contained in:
parent
265785772a
commit
269e072139
4 changed files with 215 additions and 213 deletions
|
@ -1492,8 +1492,9 @@ void MetalRenderer::BindStageResources(MTL::RenderCommandEncoder* renderCommandE
|
|||
*/
|
||||
|
||||
auto& bufferAllocator = m_memoryManager->GetTemporaryBufferAllocator();
|
||||
auto supportBuffer = bufferAllocator.GetBufferAllocation(sizeof(supportBufferData));
|
||||
memcpy(supportBuffer.data, supportBufferData, sizeof(supportBufferData));
|
||||
size_t size = shader->uniform.uniformRangeSize;
|
||||
auto supportBuffer = bufferAllocator.GetBufferAllocation(size);
|
||||
memcpy(supportBuffer.data, supportBufferData, size);
|
||||
|
||||
switch (shader->shaderType)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue