Lines Matching refs:program
117 GLuint program = ctx.glCreateProgram(); in shader_source() local
118 ctx.glShaderSource(program, 0, 0, 0); in shader_source()
122 ctx.glDeleteProgram(program); in shader_source()
137 GLuint program = ctx.glCreateProgram(); in compile_shader() local
138 ctx.glCompileShader(program); in compile_shader()
142 ctx.glDeleteProgram(program); in compile_shader()
236 GLuint program = ctx.glCreateProgram(); in attach_shader() local
250 ctx.glAttachShader(program, program); in attach_shader()
252 ctx.glAttachShader(shader1, program); in attach_shader()
257 ctx.glAttachShader(program, notAShader); in attach_shader()
266 ctx.glAttachShader(program, shader1); in attach_shader()
268 ctx.glAttachShader(program, shader1); in attach_shader()
273 ctx.glAttachShader(program, shader2); in attach_shader()
277 ctx.glDeleteProgram(program); in attach_shader()
285 GLuint program = ctx.glCreateProgram(); in detach_shader() local
296 ctx.glDetachShader(program, notAShader); in detach_shader()
308 ctx.glDetachShader(program, program); in detach_shader()
310 ctx.glDetachShader(shader, program); in detach_shader()
315 ctx.glDetachShader(program, shader); in detach_shader()
319 ctx.glDeleteProgram(program); in detach_shader()
343 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, f… in link_program() local
351 ctx.glUseProgram (program.getProgram()); in link_program()
352 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in link_program()
353 ctx.glLinkProgram (program.getProgram()); in link_program()
361 ctx.glLinkProgram (program.getProgram()); in link_program()
467 …glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSourc… in get_program_binary() local
476 ctx.glGetProgramiv (program.getProgram(), GL_PROGRAM_BINARY_LENGTH, &bufSize); in get_program_binary()
478 ctx.glGetProgramiv (program.getProgram(), GL_LINK_STATUS, &linkStatus); in get_program_binary()
483 ctx.glGetProgramBinary (program.getProgram(), 0, &binaryLength, &binaryFormat, &binaryPtr); in get_program_binary()
487 …ctx.glGetProgramBinary (program.getProgram(), bufSize-1, &binaryLength, &binaryFormat, &binaryPtr); in get_program_binary()
545 GLuint program = ctx.glCreateProgram(); in program_parameteri() local
562 ctx.glProgramParameteri(program, -1, GL_TRUE); in program_parameteri()
567 ctx.glProgramParameteri(program, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, 2); in program_parameteri()
571 ctx.glDeleteProgram(program); in program_parameteri()
845 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fra… in get_attrib_location() local
857 ctx.glUseProgram (program.getProgram()); in get_attrib_location()
858 ctx.glBindAttribLocation (program.getProgram(), 0, "test"); in get_attrib_location()
860 ctx.glGetAttribLocation (program.getProgram(), "test"); in get_attrib_location()
881 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fra… in get_uniform_location() local
892 ctx.glUseProgram(program.getProgram()); in get_uniform_location()
909 GLuint program = ctx.glCreateProgram(); in bind_attrib_location() local
914 ctx.glBindAttribLocation(program, maxIndex, "test"); in bind_attrib_location()
919 ctx.glBindAttribLocation(program, maxIndex-1, "gl_test"); in bind_attrib_location()
933 ctx.glDeleteProgram(program); in bind_attrib_location()
943 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformBlockVertSource,… in uniform_block_binding() local
946 ctx.glUseProgram(program.getProgram()); in uniform_block_binding()
949 ctx.glGetProgramiv(program.getProgram(), GL_ACTIVE_UNIFORMS, &numActiveUniforms); in uniform_block_binding()
950 ctx.glGetProgramiv(program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks); in uniform_block_binding()
957 ctx.glUniformBlockBinding(program.getProgram(), -1, 0); in uniform_block_binding()
959 ctx.glUniformBlockBinding(program.getProgram(), 5, 0); in uniform_block_binding()
964 ctx.glUniformBlockBinding(program.getProgram(), maxUniformBufferBindings, 0); in uniform_block_binding()
1000 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformf_incompatible_type() local
1002 ctx.glUseProgram(program.getProgram()); in uniformf_incompatible_type()
1003 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4 in uniformf_incompatible_type()
1004 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4 in uniformf_incompatible_type()
1005 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4 in uniformf_incompatible_type()
1006 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D in uniformf_incompatible_type()
1016 ctx.glUseProgram(program.getProgram()); in uniformf_incompatible_type()
1028 ctx.glUseProgram(program.getProgram()); in uniformf_incompatible_type()
1036 ctx.glUseProgram(program.getProgram()); in uniformf_incompatible_type()
1046 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformf_invalid_location() local
1048 ctx.glUseProgram(program.getProgram()); in uniformf_invalid_location()
1052 ctx.glUseProgram(program.getProgram()); in uniformf_invalid_location()
1062 ctx.glUseProgram(program.getProgram()); in uniformf_invalid_location()
1097 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformfv_incompatible_type() local
1099 ctx.glUseProgram(program.getProgram()); in uniformfv_incompatible_type()
1100 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4 in uniformfv_incompatible_type()
1101 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4 in uniformfv_incompatible_type()
1102 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4 in uniformfv_incompatible_type()
1103 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D in uniformfv_incompatible_type()
1115 ctx.glUseProgram(program.getProgram()); in uniformfv_incompatible_type()
1127 ctx.glUseProgram(program.getProgram()); in uniformfv_incompatible_type()
1135 ctx.glUseProgram(program.getProgram()); in uniformfv_incompatible_type()
1145 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformfv_invalid_location() local
1147 ctx.glUseProgram(program.getProgram()); in uniformfv_invalid_location()
1153 ctx.glUseProgram(program.getProgram()); in uniformfv_invalid_location()
1163 ctx.glUseProgram(program.getProgram()); in uniformfv_invalid_location()
1179 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformfv_invalid_count() local
1181 ctx.glUseProgram (program.getProgram()); in uniformfv_invalid_count()
1182 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4 in uniformfv_invalid_count()
1194 ctx.glUseProgram(program.getProgram()); in uniformfv_invalid_count()
1227 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformi_incompatible_type() local
1229 ctx.glUseProgram(program.getProgram()); in uniformi_incompatible_type()
1230 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4 in uniformi_incompatible_type()
1231 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4 in uniformi_incompatible_type()
1232 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4 in uniformi_incompatible_type()
1233 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D in uniformi_incompatible_type()
1243 ctx.glUseProgram(program.getProgram()); in uniformi_incompatible_type()
1255 ctx.glUseProgram(program.getProgram()); in uniformi_incompatible_type()
1267 ctx.glUseProgram(program.getProgram()); in uniformi_incompatible_type()
1283 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformi_invalid_location() local
1285 ctx.glUseProgram(program.getProgram()); in uniformi_invalid_location()
1289 ctx.glUseProgram(program.getProgram()); in uniformi_invalid_location()
1299 ctx.glUseProgram(program.getProgram()); in uniformi_invalid_location()
1334 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformiv_incompatible_type() local
1336 ctx.glUseProgram(program.getProgram()); in uniformiv_incompatible_type()
1337 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4 in uniformiv_incompatible_type()
1338 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4 in uniformiv_incompatible_type()
1339 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4 in uniformiv_incompatible_type()
1340 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D in uniformiv_incompatible_type()
1352 ctx.glUseProgram(program.getProgram()); in uniformiv_incompatible_type()
1364 ctx.glUseProgram(program.getProgram()); in uniformiv_incompatible_type()
1376 ctx.glUseProgram(program.getProgram()); in uniformiv_incompatible_type()
1392 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformiv_invalid_location() local
1394 ctx.glUseProgram(program.getProgram()); in uniformiv_invalid_location()
1400 ctx.glUseProgram(program.getProgram()); in uniformiv_invalid_location()
1410 ctx.glUseProgram(program.getProgram()); in uniformiv_invalid_location()
1426 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformiv_invalid_count() local
1428 ctx.glUseProgram (program.getProgram()); in uniformiv_invalid_count()
1429 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4 in uniformiv_invalid_count()
1441 ctx.glUseProgram(program.getProgram()); in uniformiv_invalid_count()
1474 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformui_incompatible_type() local
1476 ctx.glUseProgram(program.getProgram()); in uniformui_incompatible_type()
1477 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4 in uniformui_incompatible_type()
1478 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4 in uniformui_incompatible_type()
1479 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4 in uniformui_incompatible_type()
1480 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D in uniformui_incompatible_type()
1490 ctx.glUseProgram(program.getProgram()); in uniformui_incompatible_type()
1502 ctx.glUseProgram(program.getProgram()); in uniformui_incompatible_type()
1514 ctx.glUseProgram(program.getProgram()); in uniformui_incompatible_type()
1526 ctx.glUseProgram(program.getProgram()); in uniformui_incompatible_type()
1536 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformui_invalid_location() local
1538 ctx.glUseProgram(program.getProgram()); in uniformui_invalid_location()
1542 ctx.glUseProgram(program.getProgram()); in uniformui_invalid_location()
1552 ctx.glUseProgram(program.getProgram()); in uniformui_invalid_location()
1587 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformuiv_incompatible_type() local
1589 ctx.glUseProgram(program.getProgram()); in uniformuiv_incompatible_type()
1590 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4 in uniformuiv_incompatible_type()
1591 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4 in uniformuiv_incompatible_type()
1592 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4 in uniformuiv_incompatible_type()
1593 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D in uniformuiv_incompatible_type()
1605 ctx.glUseProgram(program.getProgram()); in uniformuiv_incompatible_type()
1617 ctx.glUseProgram(program.getProgram()); in uniformuiv_incompatible_type()
1629 ctx.glUseProgram(program.getProgram()); in uniformuiv_incompatible_type()
1641 ctx.glUseProgram(program.getProgram()); in uniformuiv_incompatible_type()
1651 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformuiv_invalid_location() local
1653 ctx.glUseProgram(program.getProgram()); in uniformuiv_invalid_location()
1659 ctx.glUseProgram(program.getProgram()); in uniformuiv_invalid_location()
1669 ctx.glUseProgram(program.getProgram()); in uniformuiv_invalid_location()
1685 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniformuiv_invalid_count() local
1687 ctx.glUseProgram (program.getProgram()); in uniformuiv_invalid_count()
1688 int uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4 in uniformuiv_invalid_count()
1700 ctx.glUseProgram(program.getProgram()); in uniformuiv_invalid_count()
1747 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniform_matrixfv_incompatible_type() local
1749 ctx.glUseProgram (program.getProgram()); in uniform_matrixfv_incompatible_type()
1750 GLint mat4_v = ctx.glGetUniformLocation(program.getProgram(), "mat4_v"); // mat4 in uniform_matrixfv_incompatible_type()
1751 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D in uniform_matrixfv_incompatible_type()
1763 ctx.glUseProgram(program.getProgram()); in uniform_matrixfv_incompatible_type()
1786 ctx.glUseProgram(program.getProgram()); in uniform_matrixfv_incompatible_type()
1813 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniform_matrixfv_invalid_location() local
1815 ctx.glUseProgram(program.getProgram()); in uniform_matrixfv_invalid_location()
1821 ctx.glUseProgram(program.getProgram()); in uniform_matrixfv_invalid_location()
1842 ctx.glUseProgram(program.getProgram()); in uniform_matrixfv_invalid_location()
1869 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, … in uniform_matrixfv_invalid_count() local
1871 ctx.glUseProgram (program.getProgram()); in uniform_matrixfv_invalid_count()
1872 GLint mat4_v = ctx.glGetUniformLocation(program.getProgram(), "mat4_v"); // mat4 in uniform_matrixfv_invalid_count()
1884 ctx.glUseProgram(program.getProgram()); in uniform_matrixfv_invalid_count()
1922 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, f… in bind_transform_feedback() local
1935 ctx.glUseProgram (program.getProgram()); in bind_transform_feedback()
1936 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in bind_transform_feedback()
1937 ctx.glLinkProgram (program.getProgram()); in bind_transform_feedback()
1974 …glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, f… in delete_transform_feedbacks() local
1986 ctx.glUseProgram(program.getProgram()); in delete_transform_feedbacks()
1987 ctx.glTransformFeedbackVaryings(program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in delete_transform_feedbacks()
1988 ctx.glLinkProgram(program.getProgram()); in delete_transform_feedbacks()
2016 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, f… in begin_transform_feedback() local
2023 ctx.glUseProgram (program.getProgram()); in begin_transform_feedback()
2024 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in begin_transform_feedback()
2025 ctx.glLinkProgram (program.getProgram()); in begin_transform_feedback()
2055 ctx.glUseProgram (program.getProgram()); in begin_transform_feedback()
2059 ctx.glTransformFeedbackVaryings (program.getProgram(), 0, 0, GL_INTERLEAVED_ATTRIBS); in begin_transform_feedback()
2073 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, f… in pause_transform_feedback() local
2080 ctx.glUseProgram (program.getProgram()); in pause_transform_feedback()
2081 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in pause_transform_feedback()
2082 ctx.glLinkProgram (program.getProgram()); in pause_transform_feedback()
2108 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, f… in resume_transform_feedback() local
2115 ctx.glUseProgram (program.getProgram()); in resume_transform_feedback()
2116 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in resume_transform_feedback()
2117 ctx.glLinkProgram (program.getProgram()); in resume_transform_feedback()
2144 …glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, f… in end_transform_feedback() local
2151 ctx.glUseProgram (program.getProgram()); in end_transform_feedback()
2152 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in end_transform_feedback()
2153 ctx.glLinkProgram (program.getProgram()); in end_transform_feedback()
2176 …glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource,… in get_transform_feedback_varying() local
2191 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in get_transform_feedback_varying()
2193 ctx.glLinkProgram (program.getProgram()); in get_transform_feedback_varying()
2205 …ctx.glGetProgramiv (program.getProgram(), GL_TRANSFORM_FEEDBACK_VARYINGS, &maxTransformFeedba… in get_transform_feedback_varying()
2206 …ctx.glGetTransformFeedbackVarying (program.getProgram(), maxTransformFeedbackVaryings, 32, &lengt… in get_transform_feedback_varying()
2223 …glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource… in transform_feedback_varyings() local
2245 ctx.glTransformFeedbackVaryings(program.getProgram(), -1, &tfVarying, GL_INTERLEAVED_ATTRIBS); in transform_feedback_varyings()
2250 ctx.glTransformFeedbackVaryings(program.getProgram(), 1, &tfVarying, 0); in transform_feedback_varyings()
2256 …ctx.glTransformFeedbackVaryings (program.getProgram(), maxTransformFeedbackSeparateAttribs+1, &t… in transform_feedback_varyings()
2284 GLuint program = ctx.glCreateProgram(); in link_compute_shader() local
2297 ctx.glAttachShader(program, computeShader); in link_compute_shader()
2298 ctx.glAttachShader(program, otherShader); in link_compute_shader()
2299 ctx.glLinkProgram(program); in link_compute_shader()
2300 ctx.glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in link_compute_shader()
2303 ctx.glDeleteProgram(program); in link_compute_shader()
2315 GLuint program = ctx.glCreateProgram(); in link_compute_shader() local
2324 ctx.glAttachShader(program, computeShader); in link_compute_shader()
2325 ctx.glAttachShader(program, computeShader310); in link_compute_shader()
2326 ctx.glLinkProgram(program); in link_compute_shader()
2327 ctx.glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in link_compute_shader()
2330 ctx.glDeleteProgram(program); in link_compute_shader()