1group varyings "Varying Tests" 2 3 case core_varyings 4 version 450 5 expect compile_fail 6 vertex "" 7 #version 450 8 ${VERTEX_DECLARATIONS} 9 in vec4 in_v; 10 varying vec4 out_v; 11 void main() 12 { 13 ${VERTEX_OUTPUT} 14 out_v = in_v; 15 } 16 "" 17 fragment "" 18 #version 450 19 varying vec4 out_v; 20 out vec4 color; 21 void main() 22 { 23 color = out_v; 24 } 25 "" 26 end 27 28 case core_attributes 29 version 420 30 expect compile_fail 31 vertex "" 32 #version 420 33 ${VERTEX_DECLARATIONS} 34 attribute vec4 in_v; 35 out vec4 out_v; 36 void main() 37 { 38 ${VERTEX_OUTPUT} 39 out_v = in_v; 40 } 41 "" 42 fragment "" 43 #version 420 44 in vec4 out_v; 45 out vec4 color; 46 void main() 47 { 48 color = out_v; 49 } 50 "" 51 end 52 53 case compatibility_varyings 54 version 420 55 vertex "" 56 #version 420 compatibility 57 ${VERTEX_DECLARATIONS} 58 in vec4 in_v; 59 varying vec4 out_v; 60 void main() 61 { 62 ${VERTEX_OUTPUT} 63 out_v = in_v; 64 } 65 "" 66 fragment "" 67 #version 420 compatibility 68 varying vec4 out_v; 69 out vec4 color; 70 void main() 71 { 72 color = out_v; 73 } 74 "" 75 end 76 77 case compatibility_attributes 78 version 420 79 vertex "" 80 #version 420 compatibility 81 ${VERTEX_DECLARATIONS} 82 attribute vec4 in_v; 83 out vec4 out_v; 84 void main() 85 { 86 ${VERTEX_OUTPUT} 87 out_v = in_v; 88 } 89 "" 90 fragment "" 91 #version 420 compatibility 92 in vec4 out_v; 93 out vec4 color; 94 void main() 95 { 96 color = out_v; 97 } 98 "" 99 end 100 101end 102