DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

StructuredBuffer<row_major float4x4> still reads data in a col_major format

Open ALEXMORF opened this issue 6 years ago • 2 comments

StructuredBuffer<row_major float4x4> still reads data in a col_major format. It just ignores the row_major directive.

ALEXMORF avatar Sep 30 '19 00:09 ALEXMORF

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;
}

pow2clk avatar Aug 14 '20 22:08 pow2clk

It's been a while since this bug was reported. Any plans to fix it?

kruseborn avatar May 22 '22 06:05 kruseborn

There are related issues with type aliases and templates (#4722). These all come back to how the type attribute is implemented and not preserved.

llvm-beanz avatar Oct 13 '22 17:10 llvm-beanz

Assigning this to @python3kgae who has been working on fixing related issues with matrices.

llvm-beanz avatar Jul 17 '23 16:07 llvm-beanz