Sign in
skia
/
skia
/
84895364183b2c633bea69c72ae5ece1065d3ed3
/
.
/
tests
/
sksl
/
intrinsics
/
TextureSizeSampler.glsl
blob: 12cd664c24d98ab1e93b815de4af9eee32f15588 [
file
]
out
vec4 sk_FragColor
;
layout
(
binding
=
0
)
uniform sampler2D t
;
void
main
()
{
uvec2 dims
=
textureSize
(
t
);
sk_FragColor
=
texture
(
t
,
vec2
(
dims
));
}