xref: /aosp_15_r20/cts/tests/openglperf2/assets/vertex/basic (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1*b7c941bbSAndroid Build Coastguard Worker/*
2*b7c941bbSAndroid Build Coastguard Worker * Copyright (C) 2013 The Android Open Source Project
3*b7c941bbSAndroid Build Coastguard Worker *
4*b7c941bbSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5*b7c941bbSAndroid Build Coastguard Worker * in compliance with the License. You may obtain a copy of the License at
6*b7c941bbSAndroid Build Coastguard Worker *
7*b7c941bbSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0
8*b7c941bbSAndroid Build Coastguard Worker *
9*b7c941bbSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software distributed under the License
10*b7c941bbSAndroid Build Coastguard Worker * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11*b7c941bbSAndroid Build Coastguard Worker * or implied. See the License for the specific language governing permissions and limitations under
12*b7c941bbSAndroid Build Coastguard Worker * the License.
13*b7c941bbSAndroid Build Coastguard Worker */
14*b7c941bbSAndroid Build Coastguard Workerprecision mediump float;
15*b7c941bbSAndroid Build Coastguard Workerattribute vec4 a_Position;
16*b7c941bbSAndroid Build Coastguard Workerattribute vec2 a_TexCoordinate;
17*b7c941bbSAndroid Build Coastguard Workervarying vec2 v_TexCoordinate;
18*b7c941bbSAndroid Build Coastguard Workervoid main() {
19*b7c941bbSAndroid Build Coastguard Worker  // Pass through the texture coordinate.
20*b7c941bbSAndroid Build Coastguard Worker  v_TexCoordinate = a_TexCoordinate;
21*b7c941bbSAndroid Build Coastguard Worker  // Set the position on screen.
22*b7c941bbSAndroid Build Coastguard Worker  gl_Position = a_Position;
23*b7c941bbSAndroid Build Coastguard Worker}