Lines Matching refs:target

168 	void InitData(deqp::Context& context, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
179 static void Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target);
181 static void BindBase(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index);
183 static void Data(const glw::Functions& gl, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
188 static void SubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
220 static void AttachTexture(const glw::Functions& gl, glw::GLenum target, glw::GLenum attachment,
223 static void Bind(const glw::Functions& gl, glw::GLenum target, glw::GLuint id);
335 void InitStorage(deqp::Context& context, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
342 static void Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target);
344 static void CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
350 static void GetData(const glw::Functions& gl, glw::GLint level, glw::GLenum target, glw::GLenum format,
353 static void GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
356 static void Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
360 static void Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
363 static void SubImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLint x, glw::GLint y,
412 * @param target Buffer target
417 void Buffer::InitData(deqp::Context& context, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
422 m_target = target;
445 /** Binds buffer to its target
476 /** Bind buffer to given target
480 * @param target Buffer target
482 void Buffer::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
484 gl.bindBuffer(target, id);
492 * @param target Buffer target
495 void Buffer::BindBase(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index)
497 gl.bindBufferBase(target, index, id);
504 * @param target Buffer target
509 void Buffer::Data(const glw::Functions& gl, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
512 gl.bufferData(target, size, data, usage);
539 * @param target Buffer target
544 void Buffer::SubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
547 gl.bufferSubData(target, offset, size, data);
588 * @param target Framebuffer target
595 void Framebuffer::AttachTexture(const glw::Functions& gl, glw::GLenum target, glw::GLenum attachment,
598 gl.framebufferTexture(target, attachment, texture_id, level);
608 * @param target Framebuffer target
611 void Framebuffer::Bind(const glw::Functions& gl, glw::GLenum target, glw::GLuint id)
613 gl.bindFramebuffer(target, id);
1002 * @param target Texture target
1009 void Texture::InitStorage(deqp::Context& context, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
1017 Bind(gl, m_id, target);
1018 Storage(gl, target, levels, internal_format, width, height, depth, allow_error);
1036 /** Bind texture to target
1042 void Texture::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
1044 gl.bindTexture(target, id);
1051 * @param target Texture target
1060 void Texture::CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
1064 switch (target)
1067 gl.compressedTexImage1D(target, level, internal_format, width, 0 /* border */, image_size, data);
1073 gl.compressedTexImage2D(target, level, internal_format, width, height, 0 /* border */, image_size, data);
1093 gl.compressedTexImage3D(target, level, internal_format, width, height, depth, 0 /* border */, image_size, data);
1124 * @param target Texture target
1129 void Texture::GetData(const glw::Functions& gl, glw::GLint level, glw::GLenum target, glw::GLenum format,
1132 gl.getTexImage(target, level, format, type, out_data);
1139 * @param target Texture target
1144 void Texture::GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
1147 gl.getTexLevelParameteriv(target, level, pname, param);
1154 * @param target Texture target
1164 void Texture::Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
1168 switch (target)
1171 gl.texImage1D(target, level, internal_format, width, 0 /* border */, format, type, data);
1177 gl.texImage2D(target, level, internal_format, width, height, 0 /* border */, format, type, data);
1197 gl.texImage3D(target, level, internal_format, width, height, depth, 0 /* border */, format, type, data);
1208 * @param target Texture target
1215 void Texture::Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
1218 switch (target)
1221 gl.texStorage1D(target, levels, internal_format, width);
1231 gl.texStorage2D(target, levels, internal_format, width, height);
1238 gl.texStorage2DMultisample(target, levels, internal_format, width, height, GL_FALSE);
1245 gl.texStorage3DMultisample(target, levels, internal_format, width, height, depth, GL_FALSE);
1254 gl.texStorage3D(target, levels, internal_format, width, height, depth);
1268 * @param target Texture target
1280 void Texture::SubImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLint x, glw::GLint y,
1284 switch (target)
1287 gl.texSubImage1D(target, level, x, width, format, type, pixels);
1293 gl.texSubImage2D(target, level, x, y, width, height, format, type, pixels);
1308 gl.texSubImage3D(target, level, x, y, z, width, height, depth, format, type, pixels);
1316 /* Gather info about buffer target */
1326 /* Gather info about texture target */
1395 * @param target_name Name of target
1422 * @param expected_value Expected value of binding at <pname> target
1483 * @param is_array Selects if array target should be used
1552 * @param index Index of texture target
1568 /** Get texture target for given index
1570 * @param index Index of texture target
1627 /* - INVALID_ENUM when <target> is not valid; */
1640 CHECK_ERROR(GL_INVALID_ENUM, "BindBuffersBase with invalid <target>");
1643 CHECK_ERROR(GL_INVALID_ENUM, "BindBuffersRange with invalid <target>");
1652 const GLenum target = s_buffer_infos[i].m_target;
1653 const std::string& target_name = glu::getBufferTargetStr(target).toString();
1698 buffer[j].InitData(m_context, target, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
1722 gl.bindBuffersBase(target, t_first, t_count, buffer_ids);
1724 "BindBuffersBase with invalid <first> + <count>, target: " << target_name);
1726 gl.bindBuffersRange(target, t_first, t_count, buffer_ids, offsets, sizes);
1728 "BindBuffersRange with invalid <first> + <count>, target: " << target_name);
1754 gl.bindBuffersBase(target, first, count, t_buffer_ids);
1755 CHECK_ERROR(GL_INVALID_OPERATION, "BindBuffersBase with invalid buffer id, target: " << target_name);
1757 gl.bindBuffersRange(target, first, count, t_buffer_ids, offsets, sizes);
1758 CHECK_ERROR(GL_INVALID_OPERATION, "BindBuffersRange with invalid buffer id, target: " << target_name);
1774 gl.bindBuffersRange(target, first, count, buffer_ids, t_offsets, sizes);
1775 CHECK_ERROR(GL_INVALID_VALUE, "BindBuffersRange with negative offset, target: " << target_name);
1778 gl.bindBuffersRange(target, first, count, buffer_ids, offsets, t_sizes);
1779 CHECK_ERROR(GL_INVALID_VALUE, "BindBuffersRange with negative size, target: " << target_name);
1795 gl.bindBuffersRange(target, first, count, buffer_ids, t_offsets, sizes);
1796 CHECK_ERROR(GL_INVALID_VALUE, "BindBuffersRange with invalid <offset>, target: " << target_name);
1799 if (GL_TRANSFORM_FEEDBACK_BUFFER == target)
1801 gl.bindBuffersRange(target, first, count, buffer_ids, offsets, t_sizes);
1802 CHECK_ERROR(GL_INVALID_VALUE, "BindBuffersRange with invalid <size>, target: " << target_name);
2396 const GLenum target = s_buffer_infos[i].m_target;
2397 const std::string& target_name = glu::getBufferTargetStr(target).toString();
2422 buffer[j].InitData(m_context, target, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
2428 * - execute BindBufferBase to bind all buffers to tested target;
2431 gl.bindBuffersBase(target, 0 /* first */, max_buffers /* count */, &buffer_ids[0]);
2442 * to unbind first half of bindings for tested target;
2449 gl.bindBuffersBase(target, 0 /* first */, half_index /* count */, 0);
2462 gl.bindBuffersBase(target, half_index /* first */, max_buffers - half_index /* count */, 0);
2472 * - execute BindBufferBase to bind all buffers to tested target; It is
2491 gl.bindBuffersBase(target, 0 /* first */, max_buffers /* count */, &buffer_ids[0]);
2505 * with zeros to unbind 1st binding for tested target;
2508 gl.bindBufferBase(target, 0, buffer[0].m_id);
2515 gl.bindBuffersBase(target, 0 /* first */, 1 /* count */, &t_buffer_ids[0]);
2524 gl.bindBuffersBase(target, 0 /* first */, max_buffers /* count */, 0);
2562 const GLenum target = s_buffer_infos[i].m_target;
2563 const std::string& target_name = glu::getBufferTargetStr(target).toString();
2592 buffer[j].InitData(m_context, target, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
2600 * - execute BindBufferBase to bind all buffers to tested target;
2603 gl.bindBuffersRange(target, 0 /* first */, max_buffers /* count */, &buffer_ids[0], &offsets[0], &sizes[0]);
2614 * to unbind first half of bindings for tested target;
2621 gl.bindBuffersRange(target, 0 /* first */, half_index /* count */, 0, &offsets[0], &sizes[0]);
2634 gl.bindBuffersRange(target, half_index /* first */, max_buffers - half_index /* count */, 0, &offsets[0],
2645 * - execute BindBufferBase to bind all buffers to tested target; It is
2664 gl.bindBuffersRange(target, 0 /* first */, max_buffers /* count */, &buffer_ids[0], &offsets[0], &sizes[0]);
2678 * with zeros to unbind 1st binding for tested target;
2681 gl.bindBufferBase(target, 0, buffer[0].m_id);
2688 gl.bindBuffersRange(target, 0 /* first */, 1 /* count */, &t_buffer_ids[0], &offsets[0], &sizes[0]);
2697 gl.bindBuffersBase(target, 0 /* first */, max_buffers /* count */, 0);
2757 const GLenum target = s_texture_infos[i].m_target;
2759 if (GL_TEXTURE_BUFFER != target)
2761 texture[i].InitStorage(m_context, target, 1, GL_RGBA8, width, height, depth);
2769 Texture::Bind(gl, 0, target);
3078 const GLenum target = s_texture_infos[i].m_target;
3085 if (GL_TEXTURE_BUFFER != target)
3087 texture[i].InitStorage(m_context, target, 1, GL_RGBA8, width, height, depth);
3095 Texture::Bind(gl, 0, target);
3748 GLenum target = getTarget(i);
3749 if (target >= GL_TEXTURE_2D_MULTISAMPLE && max_image_samples < 2)
3750 target = GL_TEXTURE_2D;
3763 switch (target)
3770 texture[i].InitStorage(m_context, target, 1, GL_R32UI, width, height, depth);
3781 texture[i].InitStorage(m_context, target, 1, GL_R32UI, width, height, depth);
3782 Texture::Bind(gl, texture[i].m_id, target);
3783 Texture::SubImage(gl, target, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height, depth,
3785 gl.texParameteri(target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
3786 gl.texParameteri(target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
3791 Texture::Bind(gl, 0, target);
4006 GLenum target = getTarget(i);
4007 if (target >= GL_TEXTURE_2D_MULTISAMPLE && max_image_samples == 0)
4008 target = GL_TEXTURE_2D;
4021 switch (target)
4028 texture[i].InitStorage(m_context, target, 1, GL_R32UI, width, height, depth);
4039 texture[i].InitStorage(m_context, target, 1, GL_R32UI, width, height, depth);
4040 Texture::Bind(gl, texture[i].m_id, target);
4041 Texture::SubImage(gl, target, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height, depth,
4047 Texture::Bind(gl, 0, target);