mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 01:25:25 +00:00
Fix mip offset/size for full 3D texture upload on Vulkan (#6294)
This commit is contained in:
parent
8dd1eb333c
commit
6a8ac389e5
|
@ -839,7 +839,9 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
for (int level = 0; level < levels; level++)
|
for (int level = 0; level < levels; level++)
|
||||||
{
|
{
|
||||||
int mipSize = GetBufferDataLength(Info.GetMipSize2D(dstLevel + level) * dstLayers);
|
int mipSize = GetBufferDataLength(is3D && !singleSlice
|
||||||
|
? Info.GetMipSize(dstLevel + level)
|
||||||
|
: Info.GetMipSize2D(dstLevel + level) * dstLayers);
|
||||||
|
|
||||||
int endOffset = offset + mipSize;
|
int endOffset = offset + mipSize;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue