Lines Matching defs:target
1161 /* Texture target descriptor */
1827 /** Gets index of target in texture_targets
1829 * @param target target to be found
1833 size_t get_index_of_target(glw::GLenum target)
1835 if (GL_ZERO == target)
1842 if (texture_targets[i].m_target == target)
1848 TCU_FAIL("Unknown texture target");
2320 const glw::GLenum target = texture_targets[tex_tgt_idx].m_target;
2322 gl.bindTexture(target, m_id);
2325 verifyValues(target);
2486 throw tcu::NotSupportedError("Texture target is not support by implementation", "", __FILE__, __LINE__);
2604 * @param target Target of source texture
2608 void SmokeTest::draw(glw::GLenum target, const glw::GLint* texture_swizzle, bool use_rgba_enum)
2616 gl.bindTexture(target, m_source_tex_id);
2622 gl.texParameteriv(target, GL_TEXTURE_SWIZZLE_RGBA, texture_swizzle);
2627 gl.texParameteri(target, GL_TEXTURE_SWIZZLE_R, texture_swizzle[0]);
2628 gl.texParameteri(target, GL_TEXTURE_SWIZZLE_G, texture_swizzle[1]);
2629 gl.texParameteri(target, GL_TEXTURE_SWIZZLE_B, texture_swizzle[2]);
2630 gl.texParameteri(target, GL_TEXTURE_SWIZZLE_A, texture_swizzle[3]);
2643 gl.texParameteri(target, GL_TEXTURE_SWIZZLE_R, GL_RED);
2644 gl.texParameteri(target, GL_TEXTURE_SWIZZLE_G, GL_GREEN);
2645 gl.texParameteri(target, GL_TEXTURE_SWIZZLE_B, GL_BLUE);
2646 gl.texParameteri(target, GL_TEXTURE_SWIZZLE_A, GL_ALPHA);
2650 gl.bindTexture(target, 0);
2709 * @param target_idx Index of target
2717 const glw::GLenum target = texture_targets[target_idx].m_target;
2725 gl.bindTexture(target, m_source_tex_id);
2740 switch (target)
2743 gl.texSubImage3D(target, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, m_width, m_height, m_depth,
2752 gl.bindTexture(target, 0);
2801 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
2811 Utils::replaceToken("SAMPLER_TYPE", position, target.m_sampler_type, fs);
2881 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
2888 Utils::replaceToken("SAMPLER_TYPE", position, target.m_sampler_type, vs);
2902 /** Check if target is supported
2904 * @param target_idx Index of target
2906 * @return true if target is supported, false otherwise
2910 const _texture_target& target = texture_targets[target_idx];
2914 switch (target.m_target)
2928 /** Check if target is supported by access routine
2931 * @param target_idx Index of target
2933 * @return true if target is supported, false otherwise
2942 /* Cases are not valid, texelFetch* is not supported by the target */
2948 /* Cases are not valid, texture*Offset is not supported by the target */
2964 /* Cases are not valid, either lod or sample is required but target does not supported that */
2970 /* Cases are not valid, textureProj* is not supported by the target */
2976 /* Cases are not valid, texelFetch* is not supported by the target */
2983 /** Check if target is supported by format
2986 * @param target_idx Index of target
2988 * @return true if target is supported, false otherwise
3042 const glw::GLenum target = texture_targets[test_case.m_source_texture_target_index].m_target;
3055 << glu::getTextureTargetStr(target)
3131 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3140 if ((true == access.m_use_lod) && (true == target.m_support_lod))
3174 if ((true == target.m_require_multisampling) && (true == access.m_support_multisampling))
3200 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3208 switch (access.m_n_coordinates + target.m_n_array_coordinates + target.m_n_coordinates)
3228 switch (access.m_n_coordinates + target.m_n_array_coordinates + target.m_n_coordinates)
3251 for (size_t i = 0; i < target.m_n_coordinates; ++i)
3260 for (size_t i = 0; i < target.m_n_array_coordinates; ++i)
3291 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3297 switch (target.m_n_derivatives)
3319 for (size_t i = 0; i < target.m_n_derivatives; ++i)
3348 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3354 switch (target.m_n_derivatives)
3376 for (size_t i = 0; i < target.m_n_coordinates; ++i)
3437 * @param target_idx Index of texture target
3446 const glw::GLenum target = texture_targets[target_idx].m_target;
3455 glw::GLenum target_get_prm = target;
3469 gl.bindTexture(target, m_source_tex_id);
3473 switch (target)
3477 gl.texImage1D(target, level, internal_format, m_width, border, format, type, 0 /* pixels */);
3486 gl.texImage2D(target, level, internal_format, m_width, m_height, border, format, type, 0 /* pixels */);
3494 gl.texImage3D(target, level, internal_format, m_width, m_height, m_depth, border, format, type, 0 /* pixels */);
3514 gl.texImage2DMultisample(target, samples, internal_format, m_width, m_height,
3522 gl.texImage3DMultisample(target, samples, internal_format, m_width, m_height, m_depth,
3537 if ((GL_TEXTURE_2D_MULTISAMPLE != target) && (GL_TEXTURE_2D_MULTISAMPLE_ARRAY != target) &&
3538 (GL_TEXTURE_RECTANGLE != target))
3540 gl.texParameteri(target, GL_TEXTURE_BASE_LEVEL, 0);
3543 gl.texParameteri(target, GL_TEXTURE_MAX_LEVEL, 0);
3546 gl.texParameteri(target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
3549 gl.texParameteri(target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
3555 gl.texParameteri(target, GL_DEPTH_STENCIL_TEXTURE_MODE, texture_format.m_ds_mode);
3598 gl.bindTexture(target, 0);
3929 * @param target_idx Index of target
3935 const glw::GLenum target = texture_targets[target_idx].m_target;
3945 switch (target)
3949 gl.framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, target, m_source_tex_id, 0 /* level */);
4011 * @param target_idx Index of target
4017 const glw::GLenum target = texture_targets[target_idx].m_target;
4027 gl.bindTexture(target, m_source_tex_id);
4031 switch (target)
4034 gl.texSubImage1D(target, 0 /* level */, 0 /* x */, m_width, format.m_format, format.m_type,
4043 gl.texSubImage2D(target, 0 /* level */, 0 /* x */, 0 /* y */, m_width, m_height, format.m_format, format.m_type,
4051 gl.texSubImage3D(target, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, m_width, m_height, m_depth,
4078 gl.bindTexture(target, 0);