mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
parent
fcaab6aa46
commit
a045cac281
@ -619,7 +619,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
if (prev.binding == attrib.binding) {
|
if (prev.binding == attrib.binding) {
|
||||||
const DxvkFormatInfo* formatInfo = imageFormatInfo(prev.format);
|
const DxvkFormatInfo* formatInfo = imageFormatInfo(prev.format);
|
||||||
attrib.offset = align(prev.offset + formatInfo->elementSize, 4);
|
VkDeviceSize alignment = std::min<VkDeviceSize>(formatInfo->elementSize, 4);
|
||||||
|
attrib.offset = align(prev.offset + formatInfo->elementSize, alignment);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user