-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw Exception When Data Layout Will Encounter Alignment Differences With DXC '-fvk-use-dx-layout' This is v1.7.29 This is the exhaustive solution to validate the struct/class/SRG Layout data alignment problem when: 1- There are float or float2 variables preceded by matrices or structs that end in matrices of type: float2x2, float3x2, float4x2 In such case the "float" or "float2" should be prepadded by a float3 variable and the solution is describbed in the error produced by AZSLc. 2- The other cases are when "float" type variables are preceded by matrices or structs that end in matrices of type: float2x3, float3x3, float4x3 In such case the "float" must be prepadded by a float2 variables. This solution is describbed in the error produced by AZSLc. Alternatively the user can skip this aligment error validation with '--no-aligment-validation' command line option. Error message example: ------------------------------------------------------------- tests\Emission\AsError\matRC_padding.azsl(,) : IR error #131: Detected potential alignment issues related with DXC flag '-fvk-use-dx-layout'. Alternatively you can use the option '--no-alignment-validation' to void this error and compile as is.: - A 'float3' variable should be added before the variable 'm_f3' in 'struct /A/SD2/m_f3' at Line number 21 of 'D:\o3de-azslc\tests\Emission\AsError\matRC_padding.azsl' - A 'float3' variable should be added before the variable 'm_f5' in 'struct /A/SD2/m_f5' at Line number 23 of 'D:\o3de-azslc\tests\Emission\AsError\matRC_padding.azsl' ------------------------------------------------------------- Signed-off-by: garrieta <[email protected]>
- Loading branch information
Showing
13 changed files
with
305 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.