Sign in
skia
/
skia
/
2795a353adbd17260ef4a0549f0f353853e509ac
/
.
/
resources
/
sksl
/
shared
/
UniformMatrixResize.sksl
blob: 5ec099b882e48d27485d9748a5b6ad67c794fb40 [
file
] [
log
] [
blame
]
uniform float3x3 testMatrix3x3
;
uniform half4 colorGreen
,
colorRed
;
noinline float2x2 resizeMatrix
()
{
return
float2x2
(
testMatrix3x3
);
}
half4 main
(
float2 coords
)
{
return
resizeMatrix
()
==
float2x2
(
1
,
2
,
4
,
5
)
?
colorGreen
:
colorRed
;
}