Changeset 248754 in webkit
- Timestamp:
- Aug 15, 2019, 6:39:34 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/webgpu/whlsl/matrix-constructors-list-of-scalars-expected.txt (added)
-
LayoutTests/webgpu/whlsl/matrix-constructors-list-of-scalars.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r248753 r248754 1 2019-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 1 11 2019-08-15 Devin Rousso <drousso@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r248751 r248754 1 2019-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 1 14 2019-08-15 Sihui Liu <sihui_liu@apple.com> 2 15 -
trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt
r248730 r248754 13197 13197 return result; 13198 13198 } 13199 13199 operator float2x2(float a, float b, float e, float f) { 13200 return float2x2(float2(a, b), float2(e, f)); 13201 } 13202 operator 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 } 13205 operator 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 } 13208 operator 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 } 13211 operator 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 } 13214 operator 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 } 13217 operator 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 } 13220 operator 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 } 13223 operator 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 } 13200 13226 13201 13227 /* Functions named operator.wyx */
Note:
See TracChangeset
for help on using the changeset viewer.