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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 25 18:25:21 PDT 2019


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

            Bug ID: 199215
           Summary: [WHLSL] Matrix indexing should match HLSL
                    [row][column], but MSL uses [column][row]
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: justin_fan at apple.com

>From MSL docs: 

>// This sets the 4th element of the 3rd column to 3.0. 
>m[2][3] = 3.0f;

This is opposite of HLSL, which is what WHLSL should be compatible with. I don't think we are taking this into account when compiling WHLSL.

>From Microsoft docs:

>A 4x4 matrix is accessed with the following indices:

>[0][0], [0][1], [0][2], [0][3]
>[1][0], [1][1], [1][2], [1][3]
>[2][0], [2][1], [2][2], [2][3]
>[3][0], [3][1], [3][2], [3][3]

-- 
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/20190626/6e08e617/attachment.html>


More information about the webkit-unassigned mailing list