Lines Matching defs:index

86  * @param index  <index> parameter
90 void Utils::buffer::bindRange(glw::GLuint index, glw::GLintptr offset, glw::GLsizeiptr size)
94 gl.bindBufferRange(m_target, index, m_id, offset, size);
446 /** Get subroutine index
455 GLuint index = -1;
457 index = gl.getSubroutineIndex(m_program_object_id, shader_stage, subroutine_name);
460 if (GL_INVALID_INDEX == index)
468 return index;
998 depthFunc.depthRangeIndexed(0 /* index */, (T)0.0, (T)1.0);
999 checkGLError(GL_NO_ERROR, "depthRangeIndexed, <index> == 0", test_result);
1001 depthFunc.depthRangeIndexed(max_viewports - 1 /* index */, (T)0.0, (T)1.0);
1002 checkGLError(GL_NO_ERROR, "depthRangeIndexed, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1004 depthFunc.depthRangeIndexed(max_viewports /* index */, (T)0.0, (T)1.0);
1005 checkGLError(GL_INVALID_VALUE, "depthRangeIndexed, <index> == GL_MAX_VIEWPORTS", test_result);
1007 depthFunc.depthRangeIndexed(max_viewports + 1 /* index */, (T)0.0, (T)1.0);
1008 checkGLError(GL_INVALID_VALUE, "depthRangeIndexed, <index> > GL_MAX_VIEWPORTS", test_result);
1017 checkGLError(GL_NO_ERROR, "getDouble/Floati_v, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1020 checkGLError(GL_INVALID_VALUE, "getDouble/Floati_v, <index> == GL_MAX_VIEWPORTS", test_result);
1061 * * DepthRangeIndexed generates INVALID_VALUE when <index> is greater than or
1104 * * ViewportIndexedf and ViewportIndexedfv generate INVALID_VALUE when <index>
1115 gl.viewportIndexedf(0 /* index */, 0.0f, 0.0f, 1.0f, 1.0f);
1116 checkGLError(GL_NO_ERROR, "viewportIndexedf, <index> == 0", test_result);
1118 gl.viewportIndexedf(max_viewports - 1 /* index */, 0.0f, 0.0f, 1.0f, 1.0f);
1119 checkGLError(GL_NO_ERROR, "viewportIndexedf, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1121 gl.viewportIndexedf(max_viewports /* index */, 0.0f, 0.0f, 1.0f, 1.0f);
1122 checkGLError(GL_INVALID_VALUE, "viewportIndexedf, <index> == GL_MAX_VIEWPORTS", test_result);
1124 gl.viewportIndexedf(max_viewports + 1 /* index */, 0.0f, 0.0f, 1.0f, 1.0f);
1125 checkGLError(GL_INVALID_VALUE, "viewportIndexedf, <index> > GL_MAX_VIEWPORTS", test_result);
1127 gl.viewportIndexedfv(0 /* index */, data);
1128 checkGLError(GL_NO_ERROR, "viewportIndexedfv, <index> == 0", test_result);
1130 gl.viewportIndexedfv(max_viewports - 1 /* index */, data);
1131 checkGLError(GL_NO_ERROR, "viewportIndexedfv, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1133 gl.viewportIndexedfv(max_viewports /* index */, data);
1134 checkGLError(GL_INVALID_VALUE, "viewportIndexedfv, <index> == GL_MAX_VIEWPORTS", test_result);
1136 gl.viewportIndexedfv(max_viewports + 1 /* index */, data);
1137 checkGLError(GL_INVALID_VALUE, "viewportIndexedfv, <index> > GL_MAX_VIEWPORTS", test_result);
1170 gl.viewportIndexedf(i /* index */, 0.0f, 0.0f, -1.0f, 1.0f);
1173 gl.viewportIndexedfv(i /* index */, &data[i * 4]);
1183 gl.viewportIndexedf(i /* index */, 0.0f, 0.0f, 1.0f, -1.0f);
1186 gl.viewportIndexedfv(i /* index */, &data[i * 4]);
1221 * * ScissorIndexed and ScissorIndexedv generate INVALID_VALUE when <index> is
1232 gl.scissorIndexed(0 /* index */, 0, 0, 1, 1);
1233 checkGLError(GL_NO_ERROR, "scissorIndexed, <index> == 0", test_result);
1235 gl.scissorIndexed(max_viewports - 1 /* index */, 0, 0, 1, 1);
1236 checkGLError(GL_NO_ERROR, "scissorIndexed, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1238 gl.scissorIndexed(max_viewports /* index */, 0, 0, 1, 1);
1239 checkGLError(GL_INVALID_VALUE, "scissorIndexed, <index> == GL_MAX_VIEWPORTS", test_result);
1241 gl.scissorIndexed(max_viewports + 1 /* index */, 0, 0, 1, 1);
1242 checkGLError(GL_INVALID_VALUE, "scissorIndexed, <index> > GL_MAX_VIEWPORTS", test_result);
1244 gl.scissorIndexedv(0 /* index */, data);
1245 checkGLError(GL_NO_ERROR, "scissorIndexedv, <index> == 0", test_result);
1247 gl.scissorIndexedv(max_viewports - 1 /* index */, data);
1248 checkGLError(GL_NO_ERROR, "scissorIndexedv, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1250 gl.scissorIndexedv(max_viewports /* index */, data);
1251 checkGLError(GL_INVALID_VALUE, "scissorIndexedv, <index> == GL_MAX_VIEWPORTS", test_result);
1253 gl.scissorIndexedv(max_viewports + 1 /* index */, data);
1254 checkGLError(GL_INVALID_VALUE, "scissorIndexedv, <index> > GL_MAX_VIEWPORTS", test_result);
1287 gl.scissorIndexed(i /* index */, 0, 0, -1, 1);
1290 gl.scissorIndexedv(i /* index */, &data[i * 4]);
1300 gl.scissorIndexed(i /* index */, 0, 0, 1, -1);
1303 gl.scissorIndexedv(i /* index */, &data[i * 4]);
1310 * SCISSOR_TEST and <index> is greater than or equal to the
1315 checkGLError(GL_NO_ERROR, "disablei, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1318 checkGLError(GL_INVALID_VALUE, "disablei, <index> == GL_MAX_VIEWPORTS", test_result);
1321 checkGLError(GL_NO_ERROR, "enablei, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1324 checkGLError(GL_INVALID_VALUE, "enablei, <index> == GL_MAX_VIEWPORTS", test_result);
1327 checkGLError(GL_NO_ERROR, "isEnabledi, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1330 checkGLError(GL_INVALID_VALUE, "isEnabledi, <index> == GL_MAX_VIEWPORTS", test_result);
1335 * <index> is greater than or equal to the value of MAX_VIEWPORTS;
1341 checkGLError(GL_NO_ERROR, "getIntegeri_v, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1344 checkGLError(GL_INVALID_VALUE, "getIntegeri_v, <index> == GL_MAX_VIEWPORTS", test_result);
1348 * * GetFloati_v generates INVALID_VALUE when <target> is VIEWPORT and <index>
1355 checkGLError(GL_NO_ERROR, "getFloati_v, <index> == GL_MAX_VIEWPORTS - 1", test_result);
1358 checkGLError(GL_INVALID_VALUE, "getFloati_v, <index> == GL_MAX_VIEWPORTS", test_result);
1363 * <index> is greater than or equal to the value of MAX_VIEWPORTS;
1770 * - for each index:
1789 * - for each index:
1808 * - for each index:
1974 * - for each index:
1993 * - for each index:
2012 * - for each index:
2205 * - for each index:
2222 * - for each index:
2347 * - for each index:
2350 * - for each index:
2705 GLint index = 0;
2715 bool result = checkRegionR32I(x, y, index, &texture_data[0]);
2723 index += 1;
3134 GLint index = 0;
3144 data[index * 4 + 0] = x * width;
3145 data[index * 4 + 1] = y * height;
3148 data[index * 4 + 2] = width;
3149 data[index * 4 + 3] = height;
3153 data[index * 4 + 2] = 0;
3154 data[index * 4 + 3] = 0;
3157 index += 1;
3199 GLint index = 0;
3209 data[index * 4 + 0] = (GLfloat)((GLfloat)x * width);
3210 data[index * 4 + 1] = (GLfloat)((GLfloat)y * height);
3211 data[index * 4 + 2] = width;
3212 data[index * 4 + 3] = height;
3214 index += 1;
3257 GLint index = 0;
3267 data[index * 4 + 0] = (GLfloat)((GLfloat)x * width);
3268 data[index * 4 + 1] = (GLfloat)((GLfloat)y * height);
3269 data[index * 4 + 2] = width;
3270 data[index * 4 + 3] = height;
3272 index += 1;
3470 GLuint index = 0;
3481 if (index <= draw_call_index)
3483 expected_value = index;
3494 index += 1;
3576 "void routine(int index)\n"
3578 " gs_fs_color = index;\n"
3579 " gl_ViewportIndex = index;\n"
3582 " gs_fs_color = index;\n"
3583 " gl_ViewportIndex = index;\n"
3586 " gs_fs_color = index;\n"
3587 " gl_ViewportIndex = index;\n"
3590 " gs_fs_color = index;\n"
3591 " gl_ViewportIndex = index;\n"
3789 GLuint index = program.getSubroutineIndex(subroutine_name, GL_GEOMETRY_SHADER);
3796 gl.uniformSubroutinesuiv(GL_GEOMETRY_SHADER, 1, &index);
3959 /* 16 layers, only region corresponding with layer index should be modified */
3962 GLuint index = 0;
3971 if (index == layer)
3973 expected_value = index;
3984 index += 1;