mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
parent
fcaab6aa46
commit
a045cac281
@ -619,7 +619,8 @@ namespace dxvk {
|
||||
|
||||
if (prev.binding == attrib.binding) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user