[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
Mon Jul 1 20:57:24 PDT 2019


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

Myles C. Maxfield <mmaxfield at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmaxfield at apple.com

--- Comment #2 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] in a buffer and tell the shader that the buffer is a matrix, and then ask the matrix for [0][1], the result is 5.

If you call float4x4(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) and then you ask it for [0][1], the result is 2.

If you call float4x4(float4(1, 2, 3, 4), float4(5, 6, 7, 8), float4(9, 10, 11, 12), float4(13, 14, 15, 16)) and then you ask it for [0][1], the result is 2.

-- 
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/20190702/4cc3f9a0/attachment.html>


More information about the webkit-unassigned mailing list