On Fri, 4 Jun 2021 at 16:30, Conor McCarthy cmccarthy@codeweavers.com wrote:
Some apps, e.g. WoW, ignore a non-standard alignment and use the expected one.
This seems like something that would benefit from a test.
/* Pad by the maximum heap offset increase which may be needed to align an offset
* supplied by the calling application to a higher Vulkan requirement. This allows
* us to return the standard D3D12 alignment and adjust resource placement later. */
if(info->Alignment > requested_alignment)
{
info->SizeInBytes += info->Alignment - requested_alignment;
info->Alignment = requested_alignment;
}
Space between "if" and "(". By convention, "d3d12".