Better follow HLSL offsets rules (#3575)
commit593dbafd0d4391cbc917d4246f94f870860a7cd5
authorPavel Asyutchenko <svenpavel@gmail.com>
Wed, 17 Apr 2024 23:34:28 +0000 (18 01:34 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 23:34:28 +0000 (17 19:34 -0400)
treec1b293fb47ef6925b3ede3463f9aff799e9d6792
parent9001ec9aa56597ba6ddd5104bf53b44d7ae63527
Better follow HLSL offsets rules (#3575)

Matrices consuming one vector are treated like vectors for alignment, and
there is no "trailing padding" for matrices and arrays.
SPIRV/GlslangToSpv.cpp
Test/baseResults/hlsl.cbuffer-offsets.comp.out [new file with mode: 0644]
Test/hlsl.cbuffer-offsets.comp [new file with mode: 0644]
glslang/MachineIndependent/linkValidate.cpp
glslang/MachineIndependent/localintermediate.h
gtests/Hlsl.FromFile.cpp