Bug 1857841 - pt 3. Add a new page kind named "fresh" r=glandium
[gecko.git] / gfx / wr / webrender / res / gpu_cache_update.glsl
blobfcabfacb4fd8d97fb125339405cf018187af69ae
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include base
7 varying highp vec4 vData;
9 #ifdef WR_VERTEX_SHADER
10 in vec4 aValue;
11 in vec2 aPosition;
13 void main() {
14     vData = aValue;
15     gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
16     gl_PointSize = 1.0;
19 #endif //WR_VERTEX_SHADER
21 #ifdef WR_FRAGMENT_SHADER
22 out vec4 oValue;
24 void main() {
25     oValue = vData;
27 #endif //WR_FRAGMENT_SHADER