skia2/resources/sksl/shared/ResizeMatrix.sksl
John Stiles bfc9be0f77 Migrate SkSL test inputs to the resources/ directory.
This will allow us to load these inputs for unit testing in `dm`.

Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5
Bug: skia:11009
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-01-22 18:57:29 +00:00

14 lines
907 B
Plaintext

void main() {
float2x2 a = float2x2(float3x3(1)); sk_FragColor.r = half(a[0][0]);
float2x2 b = float2x2(float4x4(1)); sk_FragColor.r = half(b[0][0]);
float3x3 c = float3x3(float4x4(1)); sk_FragColor.r = half(c[0][0]);
float3x3 d = float3x3(float2x2(1)); sk_FragColor.r = half(d[0][0]);
float3x3 e = float3x3(float2x3(1)); sk_FragColor.r = half(e[0][0]);
float3x3 f = float3x3(float3x2(1)); sk_FragColor.r = half(f[0][0]);
float4x4 g = float4x4(float3x3(float2x2(1))); sk_FragColor.r = half(g[0][0]);
float4x4 h = float4x4(float4x3(float4x2(1))); sk_FragColor.r = half(h[0][0]);
float4x4 i = float4x4(float3x4(float2x4(1))); sk_FragColor.r = half(i[0][0]);
float2x4 j = float2x4(float4x2(1)); sk_FragColor.r = half(j[0][0]);
float4x2 k = float4x2(float2x4(1)); sk_FragColor.r = half(k[0][0]);
}