align uniform buffer to 16 bytes

this is needed on armv7 because we use alignas to get strcture-alignment,
but that also implies (to the compiler) that the structure itself
is aligned properly.
This commit is contained in:
Mathias Agopian
2023-06-12 19:33:18 -07:00
committed by Benjamin Doherty
parent 9aa52b79d4
commit f0943cfca2

View File

@@ -107,7 +107,7 @@ void PerShadowMapUniforms::prepareShadowMapping(Transaction const& transaction,
PerShadowMapUniforms::Transaction PerShadowMapUniforms::open(backend::DriverApi& driver) noexcept {
Transaction transaction;
// TODO: use out-of-line buffer if too large
transaction.uniforms = (PerViewUib *)driver.allocate(sizeof(PerViewUib));
transaction.uniforms = (PerViewUib *)driver.allocate(sizeof(PerViewUib), 16);
assert_invariant(transaction.uniforms);
return transaction;
}