DirectXShaderCompiler
DirectXShaderCompiler copied to clipboard
StructuredBuffer<row_major float4x4> still reads data in a col_major format
StructuredBuffer<row_major float4x4> still reads data in a col_major format. It just ignores the row_major directive.
Minimal repro:
// RUN: %dxc -E main -T vs_6_0 %s
StructuredBuffer<row_major float2x2> mats;
float4 main( uint i : I) : SV_Position
{
return mats.Load(i)[0].xxyy;
}
It's been a while since this bug was reported. Any plans to fix it?
There are related issues with type aliases and templates (#4722). These all come back to how the type attribute is implemented and not preserved.
Assigning this to @python3kgae who has been working on fixing related issues with matrices.