[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 14:09:00 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=199215
--- Comment #3 from Myles C. Maxfield <mmaxfield at apple.com> ---
In Direct3D, 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, then you mul(buffer1[0], buffer1[1]) and put the result in another buffer and then read the buffer on the CPU side, the results are:
538
612
686
760
650
740
830
920
762
868
974
1080
874
996
1118
1240
Thus, the two matrices are
[1 5 9 13] [17 21 25 29]
[2 6 10 14] * [18 22 26 30]
[3 7 11 15] [19 23 27 31]
[4 8 12 16] [20 24 28 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/20190703/b3e1e1b3/attachment.html>
More information about the webkit-unassigned
mailing list