Changeset 248754 in webkit


Ignore:
Timestamp:
Aug 15, 2019 6:39:34 PM (5 years ago)
Author:
mmaxfield@apple.com
Message:

[WHLSL] Matrices should have constructors that take a flattened list of scalars
https://bugs.webkit.org/show_bug.cgi?id=200804

Reviewed by Saam Barati.

Source/WebCore:

HLSL has them, so we should too.

Test: webgpu/whlsl/matrix-constructors-list-of-scalars.html

  • Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt:

LayoutTests:

  • webgpu/whlsl/matrix-constructors-list-of-scalars-expected.txt: Added.
  • webgpu/whlsl/matrix-constructors-list-of-scalars.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r248753 r248754  
     12019-08-15  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [WHLSL] Matrices should have constructors that take a flattened list of scalars
     4        https://bugs.webkit.org/show_bug.cgi?id=200804
     5
     6        Reviewed by Saam Barati.
     7
     8        * webgpu/whlsl/matrix-constructors-list-of-scalars-expected.txt: Added.
     9        * webgpu/whlsl/matrix-constructors-list-of-scalars.html: Added.
     10
    1112019-08-15  Devin Rousso  <drousso@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r248751 r248754  
     12019-08-15  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [WHLSL] Matrices should have constructors that take a flattened list of scalars
     4        https://bugs.webkit.org/show_bug.cgi?id=200804
     5
     6        Reviewed by Saam Barati.
     7
     8        HLSL has them, so we should too.
     9
     10        Test: webgpu/whlsl/matrix-constructors-list-of-scalars.html
     11
     12        * Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt:
     13
    1142019-08-15  Sihui Liu  <sihui_liu@apple.com>
    215
  • trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt

    r248730 r248754  
    1319713197    return result;
    1319813198}
    13199 
     13199operator float2x2(float a, float b, float e, float f) {
     13200    return float2x2(float2(a, b), float2(e, f));
     13201}
     13202operator float2x3(float a, float b, float c, float e, float f, float g) {
     13203    return float2x3(float3(a, b, c), float3(e, f, g));
     13204}
     13205operator float2x4(float a, float b, float c, float d, float e, float f, float g, float h) {
     13206    return float2x4(float4(a, b, c, d), float4(e, f, g, h));
     13207}
     13208operator float3x2(float a, float b, float e, float f, float i, float j) {
     13209    return float3x2(float2(a, b), float2(e, f), float2(i, j));
     13210}
     13211operator float3x3(float a, float b, float c, float e, float f, float g, float i, float j, float k) {
     13212    return float3x3(float3(a, b, c), float3(e, f, g), float3(i, j, k));
     13213}
     13214operator float3x4(float a, float b, float c, float d, float e, float f, float g, float h, float i, float j, float k, float l) {
     13215    return float3x4(float4(a, b, c, d), float4(e, f, g, h), float4(i, j, k, l));
     13216}
     13217operator float4x2(float a, float b, float e, float f, float i, float j, float m, float n) {
     13218    return float4x2(float2(a, b), float2(e, f), float2(i, j), float2(m, n));
     13219}
     13220operator float4x3(float a, float b, float c, float e, float f, float g, float i, float j, float k, float m, float n, float o) {
     13221    return float4x3(float3(a, b, c), float3(e, f, g), float3(i, j, k), float3(m, n, o));
     13222}
     13223operator float4x4(float a, float b, float c, float d, float e, float f, float g, float h, float i, float j, float k, float l, float m, float n, float o, float p) {
     13224    return float4x4(float4(a, b, c, d), float4(e, f, g, h), float4(i, j, k, l), float4(m, n, o, p));
     13225}
    1320013226
    1320113227/* Functions named operator.wyx */
Note: See TracChangeset for help on using the changeset viewer.