[Webkit-unassigned] [Bug 199215] [WHLSL] Matrix indexing should match HLSL [row][column], but MSL uses [column][row]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 3 19:18:27 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199215

--- Comment #7 from Justin Fan <justin_fan at apple.com> ---
To make things even more fun, currently in WHLSL, if you put [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32] in a buffer, and tell the shader that it's two float4x4s next to each other, the results of mul(buffer1[0], buffer1[1]) are:

250
260
270
280
618
644
670
696
986
1028
1070
1112
1354
1412
1470
1528

Implying that the matrices are:
[1   2  3  4]   [17 18 19 20]
[5   6  7  8] * [21 22 23 24]
[9  10 11 12]   [25 26 27 28]
[13 14 15 16]   [29 30 31 32]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190704/de7d792e/attachment.html>


More information about the webkit-unassigned mailing list