mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
fix: buffer allocator
This commit is contained in:
parent
406a85672d
commit
fe3b84b4a7
4 changed files with 17 additions and 17 deletions
|
@ -41,7 +41,7 @@ public:
|
|||
return m_buffers[bufferIndex];
|
||||
}
|
||||
|
||||
MetalBufferAllocation GetBufferAllocation(size_t size);
|
||||
MetalBufferAllocation GetBufferAllocation(size_t size, size_t alignment);
|
||||
|
||||
private:
|
||||
class MetalRenderer* m_mtlr;
|
||||
|
@ -68,9 +68,9 @@ public:
|
|||
return m_bufferAllocator/*s[bufferAllocatorIndex]*/.GetBuffer(bufferIndex);
|
||||
}
|
||||
|
||||
MetalBufferAllocation GetBufferAllocation(size_t size)
|
||||
MetalBufferAllocation GetBufferAllocation(size_t size, size_t alignment)
|
||||
{
|
||||
auto allocation = m_bufferAllocator/*s[m_bufferAllocatorIndex]*/.GetBufferAllocation(size);
|
||||
auto allocation = m_bufferAllocator/*s[m_bufferAllocatorIndex]*/.GetBufferAllocation(size, alignment);
|
||||
//allocation.bufferIndex |= (m_bufferAllocatorIndex << bufferAllocatorIndexShift);
|
||||
|
||||
return allocation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue