fork download
  1. //TriangleShaderVS
  2. attribute vec3 a_posL;
  3. attribute vec2 a_uv;
  4. varying vec2 v_uv;
  5. uniform sampler2D u_s_texture;
  6.  
  7. void main()
  8. {
  9. v_uv = a_uv;
  10. vec4 posL = vec4(a_posL, 1.0);
  11. gl_Position = posL;
  12.  
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:1: error: ‘attribute’ does not name a type
 attribute vec3 a_posL;
 ^
prog.cpp:3:1: error: ‘attribute’ does not name a type
 attribute vec2 a_uv; 
 ^
prog.cpp:4:1: error: ‘varying’ does not name a type
 varying vec2 v_uv;
 ^
prog.cpp:5:1: error: ‘uniform’ does not name a type
 uniform sampler2D u_s_texture;
 ^
prog.cpp:7:11: error: ‘::main’ must return ‘int’
 void main()
           ^
prog.cpp: In function ‘int main()’:
prog.cpp:9:1: error: ‘v_uv’ was not declared in this scope
 v_uv = a_uv;
 ^
prog.cpp:9:8: error: ‘a_uv’ was not declared in this scope
 v_uv = a_uv;
        ^
prog.cpp:10:1: error: ‘vec4’ was not declared in this scope
 vec4 posL = vec4(a_posL, 1.0);
 ^
prog.cpp:10:6: error: expected ‘;’ before ‘posL’
 vec4 posL = vec4(a_posL, 1.0);
      ^
prog.cpp:11:1: error: ‘gl_Position’ was not declared in this scope
 gl_Position = posL;
 ^
prog.cpp:11:15: error: ‘posL’ was not declared in this scope
 gl_Position = posL;
               ^
stdout
Standard output is empty