blob: 3e5740c10312c75c9463a7819a85b781bfca131a [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef RUNTIME_EFFECT_GLSL_
#define RUNTIME_EFFECT_GLSL_
#if defined(IMPELLER_GRAPHICS_BACKEND)
in vec2 _fragCoord;
vec2 FlutterFragCoord() {
return _fragCoord;
}
#elif defined(SKIA_GRAPHICS_BACKEND)
vec2 FlutterFragCoord() {
return gl_FragCoord.xy;
}
#else
#error "Runtime effect builtins are not supported for this graphics backend."
#endif
#endif