Lines Matching refs:unit
729 bool CheckBinding(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access,
735 glGetIntegeri_v(GL_IMAGE_BINDING_NAME, unit, &i);
742 glGetBooleani_v(GL_IMAGE_BINDING_NAME, unit, &b);
751 glGetIntegeri_v(GL_IMAGE_BINDING_LEVEL, unit, &i);
758 glGetBooleani_v(GL_IMAGE_BINDING_LEVEL, unit, &b);
767 glGetIntegeri_v(GL_IMAGE_BINDING_LAYERED, unit, &i);
774 glGetBooleani_v(GL_IMAGE_BINDING_LAYERED, unit, &b);
783 glGetIntegeri_v(GL_IMAGE_BINDING_LAYER, unit, &i);
790 glGetBooleani_v(GL_IMAGE_BINDING_LAYER, unit, &b);
799 glGetIntegeri_v(GL_IMAGE_BINDING_ACCESS, unit, &i);
806 glGetBooleani_v(GL_IMAGE_BINDING_ACCESS, unit, &b);
815 glGetIntegeri_v(GL_IMAGE_BINDING_FORMAT, unit, &i);
822 glGetBooleani_v(GL_IMAGE_BINDING_FORMAT, unit, &b);
1417 for (GLuint unit = 0; unit < 8; ++unit)
1427 glBindImageTexture(unit, texture, 0, GL_FALSE, 0, GL_WRITE_ONLY, internalformat);
1445 << ". Unit is: " << unit << tcu::TestLog::EndMessage;
1450 if (unit < 7)
1452 glUniform1i(glGetUniformLocation(program, "g_image"), static_cast<GLint>(unit + 1));
1606 for (GLuint unit = 0; unit < 8; ++unit)
1617 glBindImageTexture(unit, texture, 0, GL_FALSE, 0, GL_READ_ONLY, internalformat);
1628 << ". Unit is: " << unit << tcu::TestLog::EndMessage;
1632 if (unit < 7)
1634 glUniform1i(glGetUniformLocation(program, "g_image"), static_cast<GLint>(unit + 1));
7001 /** Binds a texture to user-specified image unit and updates relevant sampler uniform
7005 * @param image_unit Index of image unit
7022 /* Bind texture to image unit */
7026 /* Set uniform to image unit */
7500 /** Binds a texture to user-specified image unit and update relevant sampler uniform
7504 * @param image_unit Index of image unit
7505 * @param layer Index of layer bound to unit
7522 /* Bind texture to image unit */
7527 /* Set uniform to image unit */
8163 /** Bind texture to image unit and sets image uniform to that unit
8168 * @param image_unit Index of image unit
8185 /* Bind texture to image unit */
8189 /* Set uniform to image unit */
8525 /** Test "Refer to the same image unit using multiple uniforms", description follows.
8532 * - bind texture to first image unit,
8533 * - set all image uniforms to first image unit,
9613 glBindImageTexture(i /* unit */, texture_id, 0 /* level */, GL_FALSE /* layered */, 0 /* layer */,
10064 /* Bind texture to first image unit */
10065 glBindImageTexture(0 /* first image unit */, m_texture_id, 0 /* level */, GL_FALSE /* layered */, 0 /* layer */,
10379 glUniform1i(m_enabled_early_tests.m_image_uniform_location, 0 /* first unit */);
10447 glUniform1i(m_disabled_early_tests.m_image_uniform_location, 0 /* first unit */);
10503 glUniform1i(m_enabled_early_tests.m_image_uniform_location, 0 /* first unit */);
10532 glUniform1i(m_enabled_early_tests.m_image_uniform_location, 0 /* first unit */);
10564 glUniform1i(m_disabled_early_tests.m_image_uniform_location, 0 /* first unit */);
10767 << tcu::TestLog::Message << "BindImageTexture should generate INVALID_VALUE if <unit> is "