fixes #181901 This change detects when a HLSL Cbuffer matrix’s layout differs from its in-memory type and materializes a temporary with the non-padded matrix type. Matrix elements are copied explicitly from the padded buffer layout into the temporary, ensuring correct addressing and avoiding overlapping GEPs or incorrect vector flattening.
5.9 KiB
5.9 KiB