mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-11 12:19:06 +01:00
Fixup index buffer view caching
We forgot to set the view size, which would end up forcing a view to be recreated with every call
This commit is contained in:
parent
c966cd3b26
commit
540437b547
@ -2668,6 +2668,7 @@ namespace skyline::gpu::interconnect {
|
|||||||
indexBuffer.view = executor.AcquireBufferManager().FindOrCreate(span<u8>(mapping.data(), size), executor.tag, [this](std::shared_ptr<Buffer> buffer, ContextLock<Buffer> &&lock) {
|
indexBuffer.view = executor.AcquireBufferManager().FindOrCreate(span<u8>(mapping.data(), size), executor.tag, [this](std::shared_ptr<Buffer> buffer, ContextLock<Buffer> &&lock) {
|
||||||
executor.AttachLockedBuffer(buffer, std::move(lock));
|
executor.AttachLockedBuffer(buffer, std::move(lock));
|
||||||
});
|
});
|
||||||
|
indexBuffer.viewSize = size;
|
||||||
return indexBuffer.view;
|
return indexBuffer.view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user