skia2/resources/sksl/shared/RectangleTexture.sksl

9 lines
261 B
Plaintext
Raw Normal View History

layout(binding=0) uniform sampler2D test2D;
layout(binding=1) uniform sampler2D test2DRect;
void main() {
sk_FragColor = sample(test2D, float2(0.5));
sk_FragColor = sample(test2DRect, float2(0.5));
sk_FragColor = sample(test2DRect, float3(0.5));
}