mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[dxvk] Fix broken layer handling in packImageData
This commit is contained in:
parent
d42df37257
commit
957d99ed8d
@ -66,10 +66,10 @@ namespace dxvk::util {
|
|||||||
uint32_t imageLayers,
|
uint32_t imageLayers,
|
||||||
const DxvkFormatInfo* formatInfo,
|
const DxvkFormatInfo* formatInfo,
|
||||||
VkImageAspectFlags aspectMask) {
|
VkImageAspectFlags aspectMask) {
|
||||||
for (uint32_t i = 0; i < imageLayers; i++) {
|
auto dstData = reinterpret_cast< char*>(dstBytes);
|
||||||
auto dstData = reinterpret_cast< char*>(dstBytes);
|
auto srcData = reinterpret_cast<const char*>(srcBytes);
|
||||||
auto srcData = reinterpret_cast<const char*>(srcBytes);
|
|
||||||
|
|
||||||
|
for (uint32_t k = 0; k < imageLayers; k++) {
|
||||||
for (auto aspects = aspectMask; aspects; ) {
|
for (auto aspects = aspectMask; aspects; ) {
|
||||||
auto aspect = vk::getNextAspect(aspects);
|
auto aspect = vk::getNextAspect(aspects);
|
||||||
auto extent = imageExtent;
|
auto extent = imageExtent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user