Pass base array layer to texture views

This commit is contained in:
Billy Laws 2022-10-21 22:07:00 +01:00
parent ff57d2fbbf
commit 7491178a9e

View File

@ -57,6 +57,7 @@ namespace skyline::gpu {
.aspectMask = guestTexture.aspect,
.baseMipLevel = guestTexture.viewMipBase,
.levelCount = guestTexture.viewMipCount,
.baseArrayLayer = guestTexture.baseArrayLayer,
.layerCount = guestTexture.GetViewLayerCount(),
}, guestTexture.format, guestTexture.swizzle);
} else {
@ -96,6 +97,7 @@ namespace skyline::gpu {
.aspectMask = guestTexture.aspect,
.baseMipLevel = guestTexture.viewMipBase,
.levelCount = guestTexture.viewMipCount,
.baseArrayLayer = guestTexture.baseArrayLayer,
.layerCount = guestTexture.GetViewLayerCount(),
}, guestTexture.format, guestTexture.swizzle);
}