o3de / o3de-azslc

Amazon Shader Language (AZSL) Compiler
Other
23 stars 14 forks source link

[ATOM-14595] ConstantsData::SetConstant<Matrix3x3> Stomps Data #3

Closed galibzon closed 3 years ago

galibzon commented 3 years ago

This is version 1.7.26.

The new default behavior of AZSLc is: For all structs/classes/SRGs: All word sized primitive variables will be pre-padded by a "float2" variable if the preceding variable is a float3x3 or is a struct that ends in float3x3.

To skip the default behavior the command line argumment "--skip-mat33-padding" is now available.

Added test suites to validate all cases and the produced offsets have been validated with Tim Jones shader playground.

Signed-off-by: garrieta garrieta@amazon.com