Vulkan: Fix buffer texture storage not being updated on buffer handle reuse (#3731)
This commit is contained in:
parent
7539e26144
commit
5437d6cb13
2 changed files with 9 additions and 1 deletions
|
@ -38,6 +38,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
private readonly IdList<BufferHolder> _buffers;
|
||||
|
||||
public int BufferCount { get; private set; }
|
||||
|
||||
public StagingBuffer StagingBuffer { get; }
|
||||
|
||||
public BufferManager(VulkanRenderer gd, PhysicalDevice physicalDevice, Device device)
|
||||
|
@ -56,6 +58,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
return BufferHandle.Null;
|
||||
}
|
||||
|
||||
BufferCount++;
|
||||
|
||||
ulong handle64 = (uint)_buffers.Add(holder);
|
||||
|
||||
return Unsafe.As<ulong, BufferHandle>(ref handle64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue