mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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