Lines Matching refs:target

109 	void InitData(glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size, const glw::GLvoid* data);
111 void InitStorage(glw::GLenum target, glw::GLenum flags, glw::GLsizeiptr size, const glw::GLvoid* data);
130 static void Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target);
132 static void BindBase(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index);
134 static void BindRange(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index,
137 static void Data(const glw::Functions& gl, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
144 static void GetParameter(const glw::Functions& gl, glw::GLenum target, glw::GLenum value, glw::GLint* data);
146 static void GetSubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
149 static void* Map(const glw::Functions& gl, glw::GLenum target, glw::GLenum access);
151 static void* MapRange(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr length,
154 static void Storage(const glw::Functions& gl, glw::GLenum target, glw::GLenum flags, glw::GLsizeiptr size,
157 static void SubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
160 static void UnMap(const glw::Functions& gl, glw::GLenum target);
193 static void AttachTexture(const glw::Functions& gl, glw::GLenum target, glw::GLenum attachment,
196 static void Bind(const glw::Functions& gl, glw::GLenum target, glw::GLuint id);
310 static void Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target);
312 static void CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
318 static void GetData(const glw::Functions& gl, glw::GLenum target, glw::GLenum format, glw::GLenum type,
321 static void GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
324 static void Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
328 static void Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
331 static void SubImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLint x, glw::GLint y,
496 * @param target Buffer target
501 void Buffer::InitData(glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size, const glw::GLvoid* data)
506 m_target = target;
517 * @param target Buffer target
522 void Buffer::InitStorage(glw::GLenum target, glw::GLenum flags, glw::GLsizeiptr size, const glw::GLvoid* data)
527 m_target = target;
550 /** Binds buffer to its target
634 /** Bind buffer to given target
638 * @param target Buffer target
640 void Buffer::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
642 gl.bindBuffer(target, id);
650 * @param target Buffer target
653 void Buffer::BindBase(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index)
655 gl.bindBufferBase(target, index, id);
663 * @param target Buffer target
668 void Buffer::BindRange(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index,
671 gl.bindBufferRange(target, index, id, offset, size);
678 * @param target Buffer target
683 void Buffer::Data(const glw::Functions& gl, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
686 gl.bufferData(target, size, data, usage);
726 * @param Target Buffer target
730 void Buffer::GetParameter(const glw::Functions& gl, glw::GLenum target, glw::GLenum value, glw::GLint* data)
732 gl.getBufferParameteriv(target, value, data);
739 * @param target Buffer target
744 void Buffer::GetSubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
747 gl.getBufferSubData(target, offset, size, data);
754 * @param target Buffer target
759 void* Buffer::Map(const glw::Functions& gl, glw::GLenum target, glw::GLenum access)
761 void* result = gl.mapBuffer(target, access);
770 * @param target Buffer target
775 void* Buffer::MapRange(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr length,
778 void* result = gl.mapBufferRange(target, offset, length, access);
787 * @param target Buffer target
792 void Buffer::Storage(const glw::Functions& gl, glw::GLenum target, glw::GLenum flags, glw::GLsizeiptr size,
795 gl.bufferStorage(target, size, data, flags);
802 * @param target Buffer target
807 void Buffer::SubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
810 gl.bufferSubData(target, offset, size, data);
817 * @param target Buffer target
819 void Buffer::UnMap(const glw::Functions& gl, glw::GLenum target)
821 gl.unmapBuffer(target);
902 * @param target Framebuffer target
908 void Framebuffer::AttachTexture(const glw::Functions& gl, glw::GLenum target, glw::GLenum attachment,
911 gl.framebufferTexture(target, attachment, texture_id, 0 /* level */);
921 * @param target Framebuffer target
924 void Framebuffer::Bind(const glw::Functions& gl, glw::GLenum target, glw::GLuint id)
926 gl.bindFramebuffer(target, id);
1311 /** Bind texture to target
1317 void Texture::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
1319 gl.bindTexture(target, id);
1326 * @param target Texture target
1335 void Texture::CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
1339 switch (target)
1342 gl.compressedTexImage1D(target, level, internal_format, width, 0 /* border */, image_size, data);
1348 gl.compressedTexImage2D(target, level, internal_format, width, height, 0 /* border */, image_size, data);
1368 gl.compressedTexImage3D(target, level, internal_format, width, height, depth, 0 /* border */, image_size, data);
1399 * @param target Texture target
1404 void Texture::GetData(const glw::Functions& gl, glw::GLenum target, glw::GLenum format, glw::GLenum type,
1407 gl.getTexImage(target, 0 /* level */, format, type, out_data);
1414 * @param target Texture target
1419 void Texture::GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
1422 gl.getTexLevelParameteriv(target, level, pname, param);
1429 * @param target Texture target
1439 void Texture::Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
1443 switch (target)
1446 gl.texImage1D(target, level, internal_format, width, 0 /* border */, format, type, data);
1452 gl.texImage2D(target, level, internal_format, width, height, 0 /* border */, format, type, data);
1472 gl.texImage3D(target, level, internal_format, width, height, depth, 0 /* border */, format, type, data);
1483 * @param target Texture target
1490 void Texture::Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
1493 switch (target)
1496 gl.texStorage1D(target, levels, internal_format, width);
1503 gl.texStorage2D(target, levels, internal_format, width, height);
1508 gl.texStorage3D(target, levels, internal_format, width, height, depth);
1519 * @param target Texture target
1531 void Texture::SubImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLint x, glw::GLint y,
1535 switch (target)
1538 gl.texSubImage1D(target, level, x, width, format, type, pixels);
1544 gl.texSubImage2D(target, level, x, y, width, height, format, type, pixels);
1558 gl.texSubImage3D(target, level, x, y, z, width, height, depth, format, type, pixels);
1664 * <target>; Check all targets;
1668 const GLenum target = Buffer::m_targets[i];
1669 std::string message = "BufferStorage was executed for id 0, target: ";
1671 message.append(glu::getBufferTargetStr(target).toString().c_str());
1673 Buffer::Bind(gl, 0 /* id */, target);
1674 gl.bufferStorage(target, 0 /* size */, 0 /* data */, GL_DYNAMIC_STORAGE_BIT /* flags */);
1702 verifyError(GL_INVALID_OPERATION, "BufferStorage was executed for target with immutable storage", test_result);
2251 << "CopyBufferSubData stored invalid contents in write target buffer."
2292 << "BufferSubData stored invalid contents in write target buffer."