• Home
  • Raw
  • Download

Lines Matching refs:program

81 	void LinkProgram(GLuint program)  in LinkProgram()  argument
83 glLinkProgram(program); in LinkProgram()
86 glGetProgramInfoLog(program, sizeof(log), &length, log); in LinkProgram()
155 …virtual inline void VerifyGetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pn… in VerifyGetProgramInterfaceiv() argument
159 glGetProgramInterfaceiv(program, programInterface, pname, &res); in VerifyGetProgramInterfaceiv()
168 …virtual inline void VerifyGetProgramResourceIndex(GLuint program, GLenum programInterface, const s… in VerifyGetProgramResourceIndex() argument
171 GLuint res = glGetProgramResourceIndex(program, programInterface, name.c_str()); in VerifyGetProgramResourceIndex()
180 virtual inline void VerifyGetProgramResourceIndex(GLuint program, GLenum programInterface, in VerifyGetProgramResourceIndex() argument
184 GLuint res = glGetProgramResourceIndex(program, programInterface, name.c_str()); in VerifyGetProgramResourceIndex()
207 …virtual inline void VerifyGetProgramResourceName(GLuint program, GLenum programInterface, GLuint i… in VerifyGetProgramResourceName() argument
212 glGetProgramResourceName(program, programInterface, index, 1024, &len, name); in VerifyGetProgramResourceName()
229 virtual inline void VerifyGetProgramResourceLocation(GLuint program, GLenum programInterface, in VerifyGetProgramResourceLocation() argument
232 GLint res = glGetProgramResourceLocation(program, programInterface, name.c_str()); in VerifyGetProgramResourceLocation()
241 virtual inline void VerifyGetProgramResourceLocation(GLuint program, GLenum programInterface, in VerifyGetProgramResourceLocation() argument
245 GLint res = glGetProgramResourceLocation(program, programInterface, name.c_str()); in VerifyGetProgramResourceLocation()
268 …virtual inline void VerifyGetProgramResourceiv(GLuint program, GLenum programInterface, GLuint ind… in VerifyGetProgramResourceiv() argument
275 …glGetProgramResourceiv(program, programInterface, index, propCount, props, bufSize, &length, param… in VerifyGetProgramResourceiv()
298 virtual inline GLint GetProgramivRetValue(GLuint program, GLenum pname) in GetProgramivRetValue() argument
301 glGetProgramiv(program, pname, &ret); in GetProgramivRetValue()
332 const GLuint program = glCreateProgram(); in Run() local
339 VerifyGetProgramInterfaceiv(program, PIQBase::interfaces[i], GL_ACTIVE_RESOURCES, 0, error); in Run()
342 VerifyGetProgramInterfaceiv(program, PIQBase::interfaces[i], GL_MAX_NAME_LENGTH, 0, error); in Run()
344 …VerifyGetProgramInterfaceiv(program, GL_ATOMIC_COUNTER_BUFFER, GL_MAX_NUM_ACTIVE_VARIABLES, 0, err… in Run()
345 …VerifyGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_MAX_NUM_ACTIVE_VARIABLES, 0, erro… in Run()
346 VerifyGetProgramInterfaceiv(program, GL_UNIFORM_BLOCK, GL_MAX_NUM_ACTIVE_VARIABLES, 0, error); in Run()
352 VerifyGetProgramResourceIndex(program, PIQBase::interfaces[i], "", GL_INVALID_INDEX, error); in Run()
358 glDeleteProgram(program); in Run()
398 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
399 glBindAttribLocation(program, 0, "position"); in Run()
400 glLinkProgram(program); in Run()
404 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_ACTIVE_RESOURCES, 1, error); in Run()
405 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, 9, error); in Run()
406 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_ACTIVE_RESOURCES, 1, error); in Run()
407 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_MAX_NAME_LENGTH, 6, error); in Run()
409 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, "color", 0, error); in Run()
410 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, "position", 0, error); in Run()
412 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, 0, "color", error); in Run()
413 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, 0, "position", error); in Run()
415 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "position", 0, error); in Run()
416 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "color", 0, error); in Run()
426 VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, 0, 7, props, 7, expected, error); in Run()
436 VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, 0, 7, props2, 7, expected2, error); in Run()
438 glDeleteProgram(program); in Run()
488 bool CheckProgram(GLuint program, bool* compile_error = NULL) in CheckProgram() argument
492 glGetProgramiv(program, GL_LINK_STATUS, &status); in CheckProgram()
497 glGetProgramiv(program, GL_ATTACHED_SHADERS, &attached_shaders); in CheckProgram()
502 glGetAttachedShaders(program, attached_shaders, NULL, &shaders[0]); in CheckProgram()
571 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &length); in CheckProgram()
575 glGetProgramInfoLog(program, length, NULL, &log[0]); in CheckProgram()
587 virtual void inline VerifyCompute(GLuint program, long& error) in VerifyCompute() argument
589 VerifyGetProgramInterfaceiv(program, GL_BUFFER_VARIABLE, GL_MAX_NAME_LENGTH, 15, error); in VerifyCompute()
590 VerifyGetProgramInterfaceiv(program, GL_BUFFER_VARIABLE, GL_ACTIVE_RESOURCES, 1, error); in VerifyCompute()
591 VerifyGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_ACTIVE_RESOURCES, 1, error); in VerifyCompute()
592 VerifyGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_MAX_NAME_LENGTH, 7, error); in VerifyCompute()
593 …VerifyGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_MAX_NUM_ACTIVE_VARIABLES, 1, erro… in VerifyCompute()
597 VerifyGetProgramResourceIndex(program, GL_SHADER_STORAGE_BLOCK, indicesSSB, "Output", error); in VerifyCompute()
598 VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "Output.data", error); in VerifyCompute()
600 …VerifyGetProgramResourceName(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["Output"], "Output", err… in VerifyCompute()
601 …VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["Outputa.data"], "Output.data[… in VerifyCompute()
611 …VerifyGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["Output"], 7, props3, 7, e… in VerifyCompute()
624 …VerifyGetProgramResourceiv(program, GL_BUFFER_VARIABLE, indicesBV["Outputa.data"], 9, props4, 9, e… in VerifyCompute()
630 GLuint program = CreateComputeProgram(ComputeShader()); in Run() local
631 glLinkProgram(program); in Run()
632 if (!CheckProgram(program)) in Run()
634 glDeleteProgram(program); in Run()
637 glUseProgram(program); in Run()
641 VerifyCompute(program, error); in Run()
643 glDeleteProgram(program); in Run()
684 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
685 glBindAttribLocation(program, 0, "a"); in Run()
686 glBindAttribLocation(program, 4, "b"); in Run()
687 glBindAttribLocation(program, 5, "c"); in Run()
688 glBindAttribLocation(program, 7, "d"); in Run()
689 glBindAttribLocation(program, 11, "e"); in Run()
690 glBindAttribLocation(program, 12, "f"); in Run()
691 glBindAttribLocation(program, 13, "g"); in Run()
692 glBindAttribLocation(program, 15, "h"); in Run()
693 LinkProgram(program); in Run()
697 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_ACTIVE_RESOURCES, 8, error); in Run()
698 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, 2, error); in Run()
701 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "a", error); in Run()
702 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "b", error); in Run()
703 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "c", error); in Run()
704 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "d", error); in Run()
705 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "e", error); in Run()
706 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "f", error); in Run()
707 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "g", error); in Run()
708 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "h", error); in Run()
710 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["a"], "a", error); in Run()
711 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["b"], "b", error); in Run()
712 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["c"], "c", error); in Run()
713 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["d"], "d", error); in Run()
714 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["e"], "e", error); in Run()
715 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["f"], "f", error); in Run()
716 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["g"], "g", error); in Run()
717 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["h"], "h", error); in Run()
719 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "a", 0, error); in Run()
720 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "b", 4, error); in Run()
721 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "c", 5, error); in Run()
722 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "d", 7, error); in Run()
723 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "e", 11, error); in Run()
724 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "f", 12, error); in Run()
725 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "g", 13, error); in Run()
726 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "h", 15, error); in Run()
738 VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["a"], 7, props, 7, expected, error); in Run()
740 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["b"], 7, props, 7, expected2, error); in Run()
742 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["c"], 7, props, 7, expected3, error); in Run()
744 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["d"], 7, props, 7, expected4, error); in Run()
746 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["e"], 7, props, 7, expected5, error); in Run()
748 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["f"], 7, props, 7, expected6, error); in Run()
750 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["g"], 7, props, 7, expected7, error); in Run()
752 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["h"], 7, props, 7, expected8, error); in Run()
754 glDeleteProgram(program); in Run()
788 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
789 LinkProgram(program); in Run()
793 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_ACTIVE_RESOURCES, 2, error); in Run()
794 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, 14, error); in Run()
797 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "gl_VertexID", error); in Run()
798 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "gl_InstanceID", error); in Run()
800 …VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["gl_VertexID"], "gl_VertexID", err… in Run()
801 …VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["gl_InstanceID"], "gl_InstanceID",… in Run()
803 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "gl_VertexID", -1, error); in Run()
804 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "gl_InstanceID", -1, error); in Run()
814 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["gl_VertexID"], 7, props, 7, expecte… in Run()
816 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["gl_InstanceID"], 7, props, 7, expec… in Run()
818 glDeleteProgram(program); in Run()
860 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
861 LinkProgram(program); in Run()
865 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_ACTIVE_RESOURCES, 8, error); in Run()
866 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, 2, error); in Run()
869 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "a", error); in Run()
870 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "b", error); in Run()
871 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "c", error); in Run()
872 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "d", error); in Run()
873 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "e", error); in Run()
874 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "f", error); in Run()
875 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "g", error); in Run()
876 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "h", error); in Run()
878 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["a"], "a", error); in Run()
879 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["b"], "b", error); in Run()
880 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["c"], "c", error); in Run()
881 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["d"], "d", error); in Run()
882 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["e"], "e", error); in Run()
883 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["f"], "f", error); in Run()
884 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["g"], "g", error); in Run()
885 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indices["h"], "h", error); in Run()
887 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "a", 0, error); in Run()
888 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "b", 4, error); in Run()
889 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "c", 5, error); in Run()
890 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "d", 7, error); in Run()
891 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "e", 11, error); in Run()
892 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "f", 12, error); in Run()
893 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "g", 13, error); in Run()
894 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "h", 15, error); in Run()
904 VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["a"], 7, props, 7, expected, error); in Run()
906 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["b"], 7, props, 7, expected2, error); in Run()
908 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["c"], 7, props, 7, expected3, error); in Run()
910 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["d"], 7, props, 7, expected4, error); in Run()
912 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["e"], 7, props, 7, expected5, error); in Run()
914 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["f"], 7, props, 7, expected6, error); in Run()
916 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["g"], 7, props, 7, expected7, error); in Run()
918 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indices["h"], 7, props, 7, expected8, error); in Run()
920 glDeleteProgram(program); in Run()
954 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
955 glBindAttribLocation(program, 0, "position"); in Run()
956 LinkProgram(program); in Run()
960 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_ACTIVE_RESOURCES, 3, error); in Run()
961 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_MAX_NAME_LENGTH, 5, error); in Run()
964 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, indices, "a", error); in Run()
965 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, indices, "b", error); in Run()
966 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, indices, "e", error); in Run()
968 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, indices["a"], "a[0]", error); in Run()
969 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, indices["b"], "b", error); in Run()
970 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, indices["e"], "e", error); in Run()
972 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "a[0]", 0, error); in Run()
973 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "a", 0, error); in Run()
974 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "a[1]", 1, error); in Run()
975 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "b", 2, error); in Run()
976 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "e", 3, error); in Run()
986 …VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, indices["a"], 7, props, 7, expected_a, erro… in Run()
988 …VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, indices["b"], 7, props, 7, expected_b, erro… in Run()
990 …VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, indices["e"], 7, props, 7, expected_e, erro… in Run()
992 glDeleteProgram(program); in Run()
1037 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
1038 glBindAttribLocation(program, 0, "position"); in Run()
1039 LinkProgram(program); in Run()
1043 VerifyGetProgramInterfaceiv(program, GL_UNIFORM, GL_ACTIVE_RESOURCES, in Run()
1044 GetProgramivRetValue(program, GL_ACTIVE_UNIFORMS), error); in Run()
1045 VerifyGetProgramInterfaceiv(program, GL_UNIFORM, GL_MAX_NAME_LENGTH, 8, error); in Run()
1048 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "repos", error); in Run()
1049 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "recolor", error); in Run()
1051 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["repos"], "repos", error); in Run()
1052 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["recolor"], "recolor", error); in Run()
1054 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "repos", glGetUniformLocation(program, "repo… in Run()
1055 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "recolor", glGetUniformLocation(program, "re… in Run()
1071 …GLint expected[] = { 6, 35666, 1, -1, -1, -1, -1, 0, -1, 0, 0, 1, glGetUniformLocation(program, "r… in Run()
1072 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["repos"], 13, props, 13, expected, error); in Run()
1074 …GLint expected2[] = { 8, 35666, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, "… in Run()
1075 …VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["recolor"], 13, props, 13, expected2, erro… in Run()
1077 glDeleteProgram(program); in Run()
1155 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
1156 glBindAttribLocation(program, 0, "position"); in Run()
1157 LinkProgram(program); in Run()
1162 VerifyGetProgramInterfaceiv(program, GL_UNIFORM, GL_ACTIVE_RESOURCES, in Run()
1163 GetProgramivRetValue(program, GL_ACTIVE_UNIFORMS), error); in Run()
1165 VerifyGetProgramInterfaceiv(program, GL_UNIFORM, GL_MAX_NAME_LENGTH, 15, error); in Run()
1168 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "a", error); in Run()
1169 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "b", error); in Run()
1170 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "c", error); in Run()
1171 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "d", error); in Run()
1172 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "e", error); in Run()
1173 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "f", error); in Run()
1174 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "g", error); in Run()
1175 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "h", error); in Run()
1176 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "i", error); in Run()
1177 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "j.b", error); in Run()
1178 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "k.b[0].c", error); in Run()
1179 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "l[0].c", error); in Run()
1180 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "l[2].b[1].d[0]", error); in Run()
1181 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "l[2].a.c", error); in Run()
1183 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["a"], "a", error); in Run()
1184 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["b"], "b", error); in Run()
1185 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["c"], "c[0]", error); in Run()
1186 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["d"], "d", error); in Run()
1187 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["e"], "e", error); in Run()
1188 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["f"], "f", error); in Run()
1189 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["g"], "g[0]", error); in Run()
1190 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["h"], "h", error); in Run()
1191 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["i"], "i", error); in Run()
1192 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["j.b"], "j.b", error); in Run()
1193 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["k.b[0].c"], "k.b[0].c", error); in Run()
1194 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["l[0].c"], "l[0].c", error); in Run()
1195 …VerifyGetProgramResourceName(program, GL_UNIFORM, indices["l[2].b[1].d[0]"], "l[2].b[1].d[0]", err… in Run()
1196 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["l[2].a.c"], "l[2].a.c", error); in Run()
1198 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a", glGetUniformLocation(program, "a"), err… in Run()
1199 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "b", glGetUniformLocation(program, "b"), err… in Run()
1200 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "c", glGetUniformLocation(program, "c"), err… in Run()
1201 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "d", glGetUniformLocation(program, "d"), err… in Run()
1202 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "e", glGetUniformLocation(program, "e"), err… in Run()
1203 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "f", glGetUniformLocation(program, "f"), err… in Run()
1204 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "g", glGetUniformLocation(program, "g"), err… in Run()
1205 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "h", glGetUniformLocation(program, "h"), err… in Run()
1206 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "i", glGetUniformLocation(program, "i"), err… in Run()
1207 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "j.b", glGetUniformLocation(program, "j.b"),… in Run()
1208 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "k.b[0].c", glGetUniformLocation(program, "k… in Run()
1210 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "l[0].c", glGetUniformLocation(program, "l[0… in Run()
1211 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "l[2].b[1].d[0]", in Run()
1212 glGetUniformLocation(program, "l[2].b[1].d[0]"), error); in Run()
1213 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "l[2].a.c", glGetUniformLocation(program, "l… in Run()
1229 …GLint expected[] = { 2, 35666, 1, -1, -1, -1, -1, 0, -1, 0, 0, 1, glGetUniformLocation(program, "a… in Run()
1230 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["a"], 13, props, 13, expected, error); in Run()
1231 …GLint expected2[] = { 2, 35668, 1, -1, -1, -1, -1, 0, -1, 0, 0, 1, glGetUniformLocation(program, "… in Run()
1232 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["b"], 13, props, 13, expected2, error); in Run()
1233 …GLint expected3[] = { 5, 36294, 3, -1, -1, -1, -1, 0, -1, 0, 0, 1, glGetUniformLocation(program, "… in Run()
1234 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["c"], 13, props, 13, expected3, error); in Run()
1235 …GLint expected4[] = { 2, 35676, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, "… in Run()
1236 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["d"], 13, props, 13, expected4, error); in Run()
1237 …GLint expected5[] = { 2, 35675, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, "… in Run()
1238 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["e"], 13, props, 13, expected5, error); in Run()
1239 …GLint expected6[] = { 2, 5124, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, "f… in Run()
1240 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["f"], 13, props, 13, expected6, error); in Run()
1241 …GLint expected7[] = { 5, 35674, 8, -1, -1, -1, -1, 0, -1, 0, 0, 1, glGetUniformLocation(program, "… in Run()
1242 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["g"], 13, props, 13, expected7, error); in Run()
1243 …GLint expected8[] = { 2, 5126, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, "h… in Run()
1244 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["h"], 13, props, 13, expected8, error); in Run()
1245 …GLint expected9[] = { 2, 35687, 1, -1, -1, -1, -1, 0, -1, 0, 0, 1, glGetUniformLocation(program, "… in Run()
1246 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["i"], 13, props, 13, expected9, error); in Run()
1247 …GLint expected10[] = { 4, 35666, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, … in Run()
1248 VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["j.b"], 13, props, 13, expected10, error); in Run()
1249 …GLint expected11[] = { 9, 35675, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, … in Run()
1250 …VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["k.b[0].c"], 13, props, 13, expected11, er… in Run()
1251 …GLint expected12[] = { 7, 36294, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, … in Run()
1252 …VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["l[0].c"], 13, props, 13, expected12, erro… in Run()
1254 15, 5126, 2, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, "l[2].b[1].d[0]") in Run()
1256 …VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["l[2].b[1].d[0]"], 13, props, 13, expected… in Run()
1257 …GLint expected14[] = { 9, 35675, 1, -1, -1, -1, -1, 0, -1, 0, 1, 0, glGetUniformLocation(program, … in Run()
1258 …VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["l[2].a.c"], 13, props, 13, expected14, er… in Run()
1260 glDeleteProgram(program); in Run()
1339 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
1340 glBindAttribLocation(program, 0, "position"); in Run()
1341 LinkProgram(program); in Run()
1345 VerifyGetProgramInterfaceiv(program, GL_UNIFORM, GL_ACTIVE_RESOURCES, in Run()
1346 GetProgramivRetValue(program, GL_ACTIVE_UNIFORMS), error); in Run()
1347 VerifyGetProgramInterfaceiv(program, GL_UNIFORM_BLOCK, GL_ACTIVE_RESOURCES, 4, error); in Run()
1348 VerifyGetProgramInterfaceiv(program, GL_UNIFORM_BLOCK, GL_MAX_NAME_LENGTH, 18, error); in Run()
1352 VerifyGetProgramResourceIndex(program, GL_UNIFORM_BLOCK, indicesUB, "SimpleBlock", error); in Run()
1353 VerifyGetProgramResourceIndex(program, GL_UNIFORM_BLOCK, indicesUB, "NotSoSimpleBlockk", error); in Run()
1354 VerifyGetProgramResourceIndex(program, GL_UNIFORM_BLOCK, indicesUB, "TrickyBlock", error); in Run()
1355 VerifyGetProgramResourceIndex(program, GL_UNIFORM_BLOCK, indicesUB, "TrickyBlock[1]", error); in Run()
1356 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "a", error); in Run()
1357 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "b", error); in Run()
1358 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "c", error); in Run()
1359 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "NotSoSimpleBlockk.a[0]", error); in Run()
1360 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "NotSoSimpleBlockk.c", error); in Run()
1361 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "NotSoSimpleBlockk.b[0]", error); in Run()
1362 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "TrickyBlock.a[2].b[0].d", error); in Run()
1364 glUniformBlockBinding(program, indicesUB["SimpleBlock"], 0); in Run()
1365 glUniformBlockBinding(program, indicesUB["NotSoSimpleBlockk"], 2); in Run()
1366 glUniformBlockBinding(program, indicesUB["TrickyBlock"], 3); in Run()
1367 glUniformBlockBinding(program, indicesUB["TrickyBlock[1]"], 4); in Run()
1369 …VerifyGetProgramResourceName(program, GL_UNIFORM_BLOCK, indicesUB["SimpleBlock"], "SimpleBlock", e… in Run()
1370 …VerifyGetProgramResourceName(program, GL_UNIFORM_BLOCK, indicesUB["NotSoSimpleBlockk"], "NotSoSimp… in Run()
1372 …VerifyGetProgramResourceName(program, GL_UNIFORM_BLOCK, indicesUB["TrickyBlock"], "TrickyBlock[0]"… in Run()
1373 …VerifyGetProgramResourceName(program, GL_UNIFORM_BLOCK, indicesUB["TrickyBlock[1]"], "TrickyBlock[… in Run()
1374 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["a"], "a", error); in Run()
1375 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["b"], "b", error); in Run()
1376 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["c"], "c", error); in Run()
1377 …VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["NotSoSimpleBlockk.a[0]"], "NotSoSimple… in Run()
1379 …VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["NotSoSimpleBlockk.c"], "NotSoSimpleBlo… in Run()
1381 …VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["NotSoSimpleBlockk.b[0]"], "NotSoSimple… in Run()
1383 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["TrickyBlock.a[2].b[0].d"], in Run()
1386 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a", -1, error); in Run()
1387 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "b", -1, error); in Run()
1388 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "c", -1, error); in Run()
1399 glGetActiveUniformBlockiv(program, indicesUB["SimpleBlock"], GL_UNIFORM_BLOCK_DATA_SIZE, &size); in Run()
1401 …VerifyGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["SimpleBlock"], 6, props, 6, expec… in Run()
1402 …glGetActiveUniformBlockiv(program, indicesUB["NotSoSimpleBlockk"], GL_UNIFORM_BLOCK_DATA_SIZE, &si… in Run()
1404 …VerifyGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["NotSoSimpleBlockk"], 6, props, 6,… in Run()
1406 glGetActiveUniformBlockiv(program, indicesUB["TrickyBlock"], GL_UNIFORM_BLOCK_DATA_SIZE, &size); in Run()
1408 …VerifyGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["TrickyBlock"], 6, props, 6, expec… in Run()
1410 …VerifyGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["TrickyBlock[1]"], 6, props, 6, ex… in Run()
1425 VerifyGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 11, props2, 11, expected5, error); in Run()
1438 …VerifyGetProgramResourceiv(program, GL_UNIFORM, indicesU["TrickyBlock.a[2].b[0].d"], 11, props3, 1… in Run()
1449 …glGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["SimpleBlock"], 1, &prop, bufSize, &le… in Run()
1459 glDeleteProgram(program); in Run()
1468 glDeleteProgram(program); in Run()
1476 …glGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["NotSoSimpleBlockk"], 1, &prop, bufSiz… in Run()
1487 glDeleteProgram(program); in Run()
1496 glDeleteProgram(program); in Run()
1502 glGetProgramInterfaceiv(program, GL_UNIFORM_BLOCK, GL_MAX_NUM_ACTIVE_VARIABLES, &res); in Run()
1508 glDeleteProgram(program); in Run()
1512 glDeleteProgram(program); in Run()
1558 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
1559 LinkProgram(program); in Run()
1564 VerifyGetProgramResourceIndex(program, GL_UNIFORM_BLOCK, indicesUB, "TestBlock", error); in Run()
1567 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "TestBlock.color", error); in Run()
1571 …VerifyGetProgramResourceiv(program, GL_UNIFORM, indicesU["TestBlock.color"], 1, props, 1, expected… in Run()
1573 glDeleteProgram(program); in Run()
1624 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
1625 glBindAttribLocation(program, 0, "position"); in Run()
1627 glTransformFeedbackVaryings(program, 6, varyings, GL_INTERLEAVED_ATTRIBS); in Run()
1628 LinkProgram(program); in Run()
1632 …VerifyGetProgramInterfaceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, GL_ACTIVE_RESOURCES, 6, error); in Run()
1633 VerifyGetProgramInterfaceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, GL_MAX_NAME_LENGTH, 5, error); in Run()
1636 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "a", error); in Run()
1637 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "b[0]", error); in Run()
1638 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "b[1]", error); in Run()
1639 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "c", error); in Run()
1640 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "d", error); in Run()
1641 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "e", error); in Run()
1643 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["a"], "a", error); in Run()
1644 …VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["b[0]"], "b[0]", erro… in Run()
1645 …VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["b[1]"], "b[1]", erro… in Run()
1646 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["c"], "c", error); in Run()
1647 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["d"], "d", error); in Run()
1648 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["e"], "e", error); in Run()
1652 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["a"], 3, props, 3, expe… in Run()
1654 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["b[0]"], 3, props, 3, e… in Run()
1657 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["b[1]"], 3, props, 3, e… in Run()
1660 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["c"], 3, props, 3, expe… in Run()
1662 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["d"], 3, props, 3, expe… in Run()
1664 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["e"], 3, props, 3, expe… in Run()
1666 glDeleteProgram(program); in Run()
1717 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
1718 glBindAttribLocation(program, 0, "position"); in Run()
1720 glTransformFeedbackVaryings(program, 5, varyings, GL_INTERLEAVED_ATTRIBS); in Run()
1721 LinkProgram(program); in Run()
1725 …VerifyGetProgramInterfaceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, GL_ACTIVE_RESOURCES, 5, error); in Run()
1726 VerifyGetProgramInterfaceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, GL_MAX_NAME_LENGTH, 2, error); in Run()
1729 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "a", error); in Run()
1730 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "b", error); in Run()
1731 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "c", error); in Run()
1732 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "d", error); in Run()
1733 VerifyGetProgramResourceIndex(program, GL_TRANSFORM_FEEDBACK_VARYING, indices, "e", error); in Run()
1735 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["a"], "a", error); in Run()
1736 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["b"], "b", error); in Run()
1737 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["c"], "c", error); in Run()
1738 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["d"], "d", error); in Run()
1739 VerifyGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["e"], "e", error); in Run()
1743 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["a"], 3, props, 3, expe… in Run()
1745 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["b"], 3, props, 3, expe… in Run()
1747 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["c"], 3, props, 3, expe… in Run()
1749 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["d"], 3, props, 3, expe… in Run()
1751 …VerifyGetProgramResourceiv(program, GL_TRANSFORM_FEEDBACK_VARYING, indices["e"], 3, props, 3, expe… in Run()
1753 glDeleteProgram(program); in Run()
1806 GLuint program = CreateComputeProgram(glsl_cs); in Run() local
1807 glLinkProgram(program); in Run()
1808 if (!CheckProgram(program)) in Run()
1810 glDeleteProgram(program); in Run()
1813 glUseProgram(program); in Run()
1817 VerifyGetProgramInterfaceiv(program, GL_ATOMIC_COUNTER_BUFFER, GL_ACTIVE_RESOURCES, 3, error); in Run()
1818 …VerifyGetProgramInterfaceiv(program, GL_ATOMIC_COUNTER_BUFFER, GL_MAX_NUM_ACTIVE_VARIABLES, 2, err… in Run()
1821 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "a", error); in Run()
1822 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "b", error); in Run()
1823 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "c", error); in Run()
1824 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "d", error); in Run()
1825 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "e", error); in Run()
1827 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["a"], "a", error); in Run()
1828 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["b"], "b", error); in Run()
1829 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["c"], "c", error); in Run()
1830 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["d"], "d[0]", error); in Run()
1831 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["e"], "e", error); in Run()
1833 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a", -1, error); in Run()
1834 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "b", -1, error); in Run()
1835 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "c", -1, error); in Run()
1836 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "d", -1, error); in Run()
1837 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "e", -1, error); in Run()
1838 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "d[0]", -1, error); in Run()
1839 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "d[1]", -1, error); in Run()
1840 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "d[2]", -1, error); in Run()
1846 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, &res); in Run()
1849 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, &res); in Run()
1851 VerifyGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 4, props, 4, expected, error); in Run()
1854 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, bufSize, &length, &res); in Run()
1856 …VerifyGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 3, props2, 3, expected2, error); in Run()
1857 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["c"], 1, &prop, bufSize, &length, &res); in Run()
1858 …VerifyGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 3, props2, 3, expected2, error); in Run()
1860 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["d"], 1, &prop, bufSize, &length, &res); in Run()
1862 …VerifyGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 3, props2, 3, expected3, error); in Run()
1863 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["e"], 1, &prop, bufSize, &length, &res); in Run()
1864 …VerifyGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 3, props2, 3, expected3, error); in Run()
1871 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, bufSize, &length, &res); in Run()
1872 …glGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 1, &prop2, bufSize, &length, param); in Run()
1881 glDeleteProgram(program); in Run()
1889 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["d"], 1, &prop, bufSize, &length, &res); in Run()
1890 …glGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 1, &prop2, bufSize, &length, param2… in Run()
1899 glDeleteProgram(program); in Run()
1904 glDeleteProgram(program); in Run()
1955 GLuint program = CreateComputeProgram(glsl_cs); in Run() local
1956 glLinkProgram(program); in Run()
1957 if (!CheckProgram(program)) in Run()
1959 glDeleteProgram(program); in Run()
1962 glUseProgram(program); in Run()
1966 VerifyGetProgramInterfaceiv(program, GL_ATOMIC_COUNTER_BUFFER, GL_ACTIVE_RESOURCES, 1, error); in Run()
1967 …VerifyGetProgramInterfaceiv(program, GL_ATOMIC_COUNTER_BUFFER, GL_MAX_NUM_ACTIVE_VARIABLES, 3, err… in Run()
1970 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "a", error); in Run()
1971 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "b", error); in Run()
1972 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "c", error); in Run()
1974 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["a"], "a", error); in Run()
1975 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["b"], "b[0]", error); in Run()
1976 VerifyGetProgramResourceName(program, GL_UNIFORM, indicesU["c"], "c", error); in Run()
1978 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a", -1, error); in Run()
1979 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "b", -1, error); in Run()
1980 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "c", -1, error); in Run()
1981 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "b[0]", -1, error); in Run()
1982 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "b[1]", -1, error); in Run()
1983 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "b[2]", -1, error); in Run()
1990 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, &res); in Run()
1995 glDeleteProgram(program); in Run()
2001 VerifyGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 3, props, 3, expected, error); in Run()
2010 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, bufSize, &length, &res); in Run()
2015 glDeleteProgram(program); in Run()
2019 …glGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 1, &prop2, bufSize, &length, param); in Run()
2028 glDeleteProgram(program); in Run()
2033 glDeleteProgram(program); in Run()
2084 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
2085 glBindAttribLocation(program, 0, "position"); in Run()
2086 LinkProgram(program); in Run()
2093 glGetProgramResourceName(program, GL_PROGRAM_INPUT, 3000, 1024, &len, name); in Run()
2100 glGetProgramResourceiv(program, GL_PROGRAM_INPUT, 0, 0, props, 1024, &len, &res); in Run()
2105 …glGetProgramResourceName(program, GL_PROGRAM_INPUT, 0, -100, NULL, const_cast<char*>(str.c_str())); in Run()
2108 glGetProgramResourceiv(program, GL_PROGRAM_INPUT, 0, 1, &prop, -100, &len, &res); in Run()
2111 glDeleteProgram(program); in Run()
2161 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
2162 glBindAttribLocation(program, 0, "position"); in Run()
2163 LinkProgram(program); in Run()
2176 glGetProgramResourceIndex(program, GL_ATOMIC_COUNTER_BUFFER, name); in Run()
2178 glGetProgramResourceName(program, GL_ATOMIC_COUNTER_BUFFER, 0, 1024, &len, name); in Run()
2186 glGetProgramResourceiv(program, GL_PROGRAM_INPUT, 0, 1, props, 1024, &len, &res); in Run()
2190 glGetProgramResourceLocation(program, GL_ATOMIC_COUNTER_BUFFER, "position"); in Run()
2193 glDeleteProgram(program); in Run()
2224 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
2226 glBindAttribLocation(program, 0, "position"); in Run()
2227 LinkProgram(program); in Run()
2253 glGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_MAX_NUM_ACTIVE_VARIABLES, &res); in Run()
2260 glGetProgramResourceiv(program, GL_PROGRAM_INPUT, 0, 1, props, 1024, &len, &res); in Run()
2271 glDeleteProgram(program); in Run()
2344 GLuint program = CreateComputeProgram(ComputeShader()); in Run() local
2345 glLinkProgram(program); in Run()
2346 if (!CheckProgram(program)) in Run()
2348 glDeleteProgram(program); in Run()
2351 glUseProgram(program); in Run()
2356 VerifyGetProgramInterfaceiv(program, GL_BUFFER_VARIABLE, GL_MAX_NAME_LENGTH, 28, error); in Run()
2357 glGetProgramInterfaceiv(program, GL_BUFFER_VARIABLE, GL_ACTIVE_RESOURCES, &res); in Run()
2364 glDeleteProgram(program); in Run()
2367 VerifyGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_ACTIVE_RESOURCES, 5, error); in Run()
2368 VerifyGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_MAX_NAME_LENGTH, 18, error); in Run()
2372 …VerifyGetProgramResourceIndex(program, GL_SHADER_STORAGE_BLOCK, indicesSSB, "SimpleBuffer", error); in Run()
2373 …VerifyGetProgramResourceIndex(program, GL_SHADER_STORAGE_BLOCK, indicesSSB, "NotSoSimpleBuffer", e… in Run()
2374 …VerifyGetProgramResourceIndex(program, GL_SHADER_STORAGE_BLOCK, indicesSSB, "TrickyBuffer", error); in Run()
2375 …VerifyGetProgramResourceIndex(program, GL_SHADER_STORAGE_BLOCK, indicesSSB, "TrickyBuffer[1]", err… in Run()
2376 VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "a", error); in Run()
2377 VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "b", error); in Run()
2378 VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "c", error); in Run()
2379 …VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "NotSoSimpleBuffer.a[0]", er… in Run()
2380 …VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "NotSoSimpleBuffer.c", error… in Run()
2381 …VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "NotSoSimpleBuffer.b[0]", er… in Run()
2382 …VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "TrickyBuffer.a[0].b[0].d", … in Run()
2383 VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "TrickyBuffer.b", error); in Run()
2384 VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "TrickyBuffer.c", error); in Run()
2386 …VerifyGetProgramResourceName(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["SimpleBuffer"], "Simple… in Run()
2388 VerifyGetProgramResourceName(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["NotSoSimpleBuffer"], in Run()
2390 …VerifyGetProgramResourceName(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["TrickyBuffer"], "Tricky… in Run()
2392 …VerifyGetProgramResourceName(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["TrickyBuffer[1]"], "Tri… in Run()
2394 VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["a"], "a", error); in Run()
2395 VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["b"], "b", error); in Run()
2396 VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["c"], "c", error); in Run()
2397 VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["NotSoSimpleBuffer.a[0]"], in Run()
2399 VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["NotSoSimpleBuffer.c"], in Run()
2401 VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["NotSoSimpleBuffer.b[0]"], in Run()
2403 VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["TrickyBuffer.a[0].b[0].d"], in Run()
2405 …VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["TrickyBuffer.b"], "TrickyBuff… in Run()
2406 …VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["TrickyBuffer.c"], "TrickyBuff… in Run()
2415 …VerifyGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["SimpleBuffer"], 6, props,… in Run()
2420 …VerifyGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["NotSoSimpleBuffer"], 5, p… in Run()
2423 …VerifyGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["TrickyBuffer"], 5, props2… in Run()
2426 …VerifyGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["TrickyBuffer[1]"], 5, pro… in Run()
2441 …VerifyGetProgramResourceiv(program, GL_BUFFER_VARIABLE, indicesBV["a"], 11, props3, 11, expected5,… in Run()
2453 …VerifyGetProgramResourceiv(program, GL_BUFFER_VARIABLE, indicesBV["TrickyBuffer.a[0].b[0].d"], 10,… in Run()
2464 …glGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["SimpleBuffer"], 1, &prop, buf… in Run()
2476 glDeleteProgram(program); in Run()
2485 glDeleteProgram(program); in Run()
2493 …glGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["NotSoSimpleBuffer"], 1, &prop… in Run()
2505 glDeleteProgram(program); in Run()
2514 glDeleteProgram(program); in Run()
2519 glGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_MAX_NUM_ACTIVE_VARIABLES, &res); in Run()
2528 glDeleteProgram(program); in Run()
2568 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
2569 glBindAttribLocation(program, 0, "position"); in Run()
2570 LinkProgram(program); in Run()
2573 GLuint index = glGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, "color"); in Run()
2576 glGetProgramResourceName(program, GL_PROGRAM_OUTPUT, 0, 1024, NULL, name); in Run()
2577 glGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, index, 1, &prop, 1, NULL, &res); in Run()
2584 glDeleteProgram(program); in Run()
2591 glDeleteProgram(program); in Run()
2595 glDeleteProgram(program); in Run()
2640 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
2641 glBindAttribLocation(program, 0, "position"); in Run()
2642 LinkProgram(program); in Run()
2646 VerifyGetProgramInterfaceiv(program, GL_UNIFORM, GL_MAX_NAME_LENGTH, 11, error); in Run()
2649 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indices, "a[2][1]", error); in Run()
2650 VerifyGetProgramResourceIndex(program, GL_UNIFORM, "a[2][1][0]", indices["a[2][1]"], error); in Run()
2652 VerifyGetProgramResourceName(program, GL_UNIFORM, indices["a[2][1]"], "a[2][1][0]", error); in Run()
2667 …GLint expected[] = { 11, 35666, 5, -1, -1, -1, -1, 0, -1, 0, 0, 1, glGetUniformLocation(program, "… in Run()
2668 …VerifyGetProgramResourceiv(program, GL_UNIFORM, indices["a[2][1]"], 13, props, 13, expected, error… in Run()
2670 glDeleteProgram(program); in Run()
2713 GLuint program = CreateComputeProgram(ComputeShader()); in Run() local
2714 glLinkProgram(program); in Run()
2715 if (!CheckProgram(program)) in Run()
2717 glDeleteProgram(program); in Run()
2720 glUseProgram(program); in Run()
2724 VerifyGetProgramInterfaceiv(program, GL_BUFFER_VARIABLE, GL_MAX_NAME_LENGTH, 11, error); in Run()
2725 VerifyGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_MAX_NAME_LENGTH, 6, error); in Run()
2726 VerifyGetProgramInterfaceiv(program, GL_SHADER_STORAGE_BLOCK, GL_ACTIVE_RESOURCES, 2, error); in Run()
2730 VerifyGetProgramResourceIndex(program, GL_BUFFER_VARIABLE, indicesBV, "a[0][0]", error); in Run()
2731 VerifyGetProgramResourceIndex(program, GL_SHADER_STORAGE_BLOCK, indicesSSB, "Block", error); in Run()
2733 …VerifyGetProgramResourceName(program, GL_BUFFER_VARIABLE, indicesBV["a[0][0]"], "a[0][0][0]", erro… in Run()
2734 …VerifyGetProgramResourceName(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["Block"], "Block", error… in Run()
2746 …VerifyGetProgramResourceiv(program, GL_BUFFER_VARIABLE, indicesBV["a[0][0]"], 9, props3, 9, expect… in Run()
2751 …glGetProgramResourceiv(program, GL_BUFFER_VARIABLE, indicesBV["a[0][0]"], 1, &prop, 1024, &len, &r… in Run()
2758 glDeleteProgram(program); in Run()
2762 glDeleteProgram(program); in Run()
2788 GLuint program = glCreateShaderProgramv(type, count, strings); in CreateShaderProgram() local
2790 glGetProgramiv(program, GL_LINK_STATUS, &status); in CreateShaderProgram()
2795 glGetProgramInfoLog(program, sizeof(log), &length, log); in CreateShaderProgram()
2802 return program; in CreateShaderProgram()
3018 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
3019 glBindAttribLocation(program, 0, "position"); in Run()
3020 LinkProgram(program); in Run()
3025 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "a", error); in Run()
3026 VerifyGetProgramResourceIndex(program, GL_UNIFORM, indicesU, "b", error); in Run()
3030 VerifyGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, props, 1, expected, error); in Run()
3035 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, 1024, &len, &res); in Run()
3044 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, 1024, &len, &res); in Run()
3052 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, 1024, &len, &res); in Run()
3061 glDeleteProgram(program); in Run()
3100 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
3101 glBindAttribLocation(program, 0, "position"); in Run()
3102 LinkProgram(program); in Run()
3106 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a", glGetUniformLocation(program, "a"), err… in Run()
3107 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[0]", glGetUniformLocation(program, "a"), … in Run()
3108 …VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[1]", glGetUniformLocation(program, "a[1]"… in Run()
3109 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[2]", -1, error); in Run()
3110 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[0 + 0]", -1, error); in Run()
3111 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[0+0]", -1, error); in Run()
3112 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[ 0]", -1, error); in Run()
3113 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[0 ]", -1, error); in Run()
3114 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[\n0]", -1, error); in Run()
3115 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[\t0]", -1, error); in Run()
3116 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[01]", -1, error); in Run()
3117 VerifyGetProgramResourceLocation(program, GL_UNIFORM, "a[00]", -1, error); in Run()
3119 glDeleteProgram(program); in Run()
3158 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
3159 glBindAttribLocation(program, 0, "position"); in Run()
3160 LinkProgram(program); in Run()
3164 GLuint index = glGetProgramResourceIndex(program, GL_UNIFORM, "someLongName"); in Run()
3167 glGetProgramResourceName(program, GL_UNIFORM, index, 0, NULL, NULL); in Run()
3168 glGetProgramResourceName(program, GL_UNIFORM, index, 0, NULL, buff); in Run()
3175 glGetProgramResourceName(program, GL_UNIFORM, index, 2, &length, buff); in Run()
3203 glGetProgramResourceiv(program, GL_UNIFORM, index, 13, props, 0, NULL, NULL); in Run()
3204 glGetProgramResourceiv(program, GL_UNIFORM, index, 13, props, 0, NULL, params); in Run()
3211 glGetProgramResourceiv(program, GL_UNIFORM, index, 13, props, 2, &length, params); in Run()
3225 glDeleteProgram(program); in Run()
3274 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
3275 glBindAttribLocation(program, 0, "position"); in Run()
3276 glLinkProgram(program); in Run()
3280 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_ACTIVE_RESOURCES, 4, error); in Run()
3281 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, 2, error); in Run()
3282 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_ACTIVE_RESOURCES, 4, error); in Run()
3283 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_MAX_NAME_LENGTH, 5, error); in Run()
3287 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indicesI, "a", error); in Run()
3288 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indicesI, "b", error); in Run()
3289 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indicesI, "c", error); in Run()
3290 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indicesI, "d", error); in Run()
3291 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, indicesO, "a", error); in Run()
3292 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, indicesO, "b", error); in Run()
3293 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, indicesO, "c", error); in Run()
3294 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, indicesO, "d[0]", error); in Run()
3296 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indicesI["a"], "a", error); in Run()
3297 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indicesI["b"], "b", error); in Run()
3298 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indicesI["c"], "c", error); in Run()
3299 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, indicesI["d"], "d", error); in Run()
3300 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, indicesO["a"], "a", error); in Run()
3301 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, indicesO["b"], "b", error); in Run()
3302 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, indicesO["c"], "c", error); in Run()
3303 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, indicesO["d[0]"], "d[0]", error); in Run()
3307 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, locationsI, "a", error); in Run()
3308 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, locationsI, "b", error); in Run()
3309 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, locationsI, "c", error); in Run()
3310 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, locationsI, "d", error); in Run()
3311 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, locationsO, "a", error); in Run()
3312 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, locationsO, "b", error); in Run()
3313 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, locationsO, "c", error); in Run()
3314 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, locationsO, "d[0]", error); in Run()
3323 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indicesI["a"], 6, props, 6, expected, error); in Run()
3324 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indicesI["b"], 6, props, 6, expected, error); in Run()
3325 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indicesI["d"], 6, props, 6, expected, error); in Run()
3326 …VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, indicesI["c"], 6, props, 6, expected, error); in Run()
3328 …VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, indicesO["a"], 6, props, 6, expected3, erro… in Run()
3329 …VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, indicesO["b"], 6, props, 6, expected3, erro… in Run()
3330 …VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, indicesO["c"], 6, props, 6, expected3, erro… in Run()
3332 …VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, indicesO["d[0]"], 6, props, 6, expected4, e… in Run()
3334 glDeleteProgram(program); in Run()
3368 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), true); in Run() local
3372 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_ACTIVE_RESOURCES, 1, error); in Run()
3373 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_MAX_NAME_LENGTH, 13, error); in Run()
3376 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, indices, "gl_FragDepth", error); in Run()
3378 …VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, indices["gl_FragDepth"], "gl_FragDepth", … in Run()
3380 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "gl_FragDepth", -1, error); in Run()
3390 …VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, indices["gl_FragDepth"], DE_LENGTH_OF_ARRAY… in Run()
3393 glDeleteProgram(program); in Run()
3443 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
3444 LinkProgram(program); in Run()
3452 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_ACTIVE_RESOURCES, 1, error); in Run()
3453 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, 9, error); in Run()
3454 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_ACTIVE_RESOURCES, 1, error); in Run()
3455 VerifyGetProgramInterfaceiv(program, GL_PROGRAM_OUTPUT, GL_MAX_NAME_LENGTH, 6, error); in Run()
3457 VerifyGetProgramResourceIndex(program, GL_PROGRAM_OUTPUT, "color", 0, error); in Run()
3458 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, "position", 0, error); in Run()
3460 VerifyGetProgramResourceName(program, GL_PROGRAM_OUTPUT, 0, "color", error); in Run()
3461 VerifyGetProgramResourceName(program, GL_PROGRAM_INPUT, 0, "position", error); in Run()
3463 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "position", 0, error); in Run()
3464 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "color", 0, error); in Run()
3474 VerifyGetProgramResourceiv(program, GL_PROGRAM_INPUT, 0, DE_LENGTH_OF_ARRAY(props), props, in Run()
3485 VerifyGetProgramResourceiv(program, GL_PROGRAM_OUTPUT, 0, 7, props2, 7, expected2, error); in Run()
3487 glDeleteProgram(program); in Run()
3530 GLuint program = CreateProgram(VertexShader().c_str(), FragmentShader().c_str(), false); in Run() local
3531 glBindAttribLocation(program, 0, "position"); in Run()
3532 glBindAttribLocation(program, 1, "pos"); in Run()
3533 LinkProgram(program); in Run()
3537 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "pos", 1, error); in Run()
3538 glUseProgram(program); in Run()
3558 glBindAttribLocation(program, 0, "pos"); in Run()
3559 glBindAttribLocation(program, 0, "position"); in Run()
3561 glTransformFeedbackVaryings(program, 2, varyings, GL_INTERLEAVED_ATTRIBS); in Run()
3562 LinkProgram(program); in Run()
3564 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "position", -1, error); in Run()
3566 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "pos", -1, error); in Run()
3568 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "color", -1, error); in Run()
3571 glDeleteProgram(program); in Run()
3632 const GLuint program = glCreateProgram(); in Run() local
3638 glAttachShader(program, sh1); in Run()
3644 glAttachShader(program, sh2); in Run()
3649 glBindAttribLocation(program, 0, "p"); in Run()
3650 glBindAttribLocation(program, 1, "posit"); in Run()
3651 LinkProgram(program); in Run()
3655 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "posit", 1, error); in Run()
3656 glUseProgram(program); in Run()
3676 glDetachShader(program, sh1); in Run()
3678 glAttachShader(program, vsh); in Run()
3683 glTransformFeedbackVaryings(program, 2, varyings, GL_INTERLEAVED_ATTRIBS); in Run()
3684 LinkProgram(program); in Run()
3687 VerifyGetProgramResourceLocation(program, GL_PROGRAM_INPUT, "position", -1, error); in Run()
3689 glGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_ACTIVE_RESOURCES, &res); in Run()
3697 glGetProgramInterfaceiv(program, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, &res); in Run()
3705 VerifyGetProgramResourceLocation(program, GL_PROGRAM_OUTPUT, "color", -1, error); in Run()
3708 glDeleteProgram(program); in Run()