Lines Matching refs:target

477 int GLClientState::bindBuffer(GLenum target, GLuint id)  in bindBuffer()  argument
480 switch(target) { in bindBuffer()
523 void GLClientState::bindIndexedBuffer(GLenum target, GLuint index, GLuint buffer, GLintptr offset, … in bindIndexedBuffer() argument
524 switch (target) { in bindIndexedBuffer()
560 int GLClientState::getMaxIndexedBufferBindings(GLenum target) const { in getMaxIndexedBufferBindings()
561 switch (target) { in getMaxIndexedBufferBindings()
575 bool GLClientState::isNonIndexedBindNoOp(GLenum target, GLuint buffer) { in isNonIndexedBindNoOp() argument
576 if (buffer != !getLastEncodedBufferBind(target)) return false; in isNonIndexedBindNoOp()
578 int idOrError = getBuffer(target); in isNonIndexedBindNoOp()
586 bool GLClientState::isIndexedBindNoOp(GLenum target, GLuint index, GLuint buffer, GLintptr offset, … in isIndexedBindNoOp() argument
588 if (target == GL_TRANSFORM_FEEDBACK_BUFFER) return false; in isIndexedBindNoOp()
590 if (buffer != getLastEncodedBufferBind(target)) return false; in isIndexedBindNoOp()
592 switch (target) { in isIndexedBindNoOp()
622 int GLClientState::getBuffer(GLenum target) { in getBuffer() argument
624 switch (target) { in getBuffer()
667 GLuint GLClientState::getLastEncodedBufferBind(GLenum target) { in getLastEncodedBufferBind() argument
669 switch (target) in getLastEncodedBufferBind()
679 int idOrError = getBuffer(target); in getLastEncodedBufferBind()
687 void GLClientState::setLastEncodedBufferBind(GLenum target, GLuint id) in setLastEncodedBufferBind() argument
689 switch (target) in setLastEncodedBufferBind()
980 void GLClientState::enableTextureTarget(GLenum target) in enableTextureTarget() argument
982 switch (target) { in enableTextureTarget()
992 void GLClientState::disableTextureTarget(GLenum target) in disableTextureTarget() argument
994 switch (target) { in disableTextureTarget()
1042 GLenum GLClientState::bindTexture(GLenum target, GLuint texture, in bindTexture() argument
1049 texrec = addTextureRec(texture, target); in bindTexture()
1052 if (texture && target != texrec->target && in bindTexture()
1053 (target != GL_TEXTURE_EXTERNAL_OES && in bindTexture()
1054 texrec->target != GL_TEXTURE_EXTERNAL_OES)) { in bindTexture()
1055 …ERATION: target 0x%x texrectarget 0x%x texture %u", __FUNCTION__, target, texrec->target, texture); in bindTexture()
1058 switch (target) { in bindTexture()
1086 void GLClientState::setBoundEGLImage(GLenum target, GLeglImageOES image) { in setBoundEGLImage() argument
1089 GLuint texture = getBoundTexture(target); in setBoundEGLImage()
1095 TextureRec* GLClientState::addTextureRec(GLuint id, GLenum target) in addTextureRec() argument
1099 tex->target = target; in addTextureRec()
1119 void GLClientState::setBoundTextureInternalFormat(GLenum target, GLint internalformat) { in setBoundTextureInternalFormat() argument
1120 GLuint texture = getBoundTexture(target); in setBoundTextureInternalFormat()
1126 void GLClientState::setBoundTextureFormat(GLenum target, GLenum format) { in setBoundTextureFormat() argument
1127 GLuint texture = getBoundTexture(target); in setBoundTextureFormat()
1133 void GLClientState::setBoundTextureType(GLenum target, GLenum type) { in setBoundTextureType() argument
1134 GLuint texture = getBoundTexture(target); in setBoundTextureType()
1140 void GLClientState::setBoundTextureDims(GLenum target, GLsizei level, GLsizei width, GLsizei height… in setBoundTextureDims() argument
1141 GLuint texture = getBoundTexture(target); in setBoundTextureDims()
1159 ((target == GL_TEXTURE_3D && curr_depth == 0) || in setBoundTextureDims()
1165 if (target == GL_TEXTURE_3D) { in setBoundTextureDims()
1178 void GLClientState::setBoundTextureSamples(GLenum target, GLsizei samples) { in setBoundTextureSamples() argument
1179 GLuint texture = getBoundTexture(target); in setBoundTextureSamples()
1185 void GLClientState::setBoundTextureImmutableFormat(GLenum target) { in setBoundTextureImmutableFormat() argument
1186 GLuint texture = getBoundTexture(target); in setBoundTextureImmutableFormat()
1192 bool GLClientState::isBoundTextureImmutableFormat(GLenum target) const { in isBoundTextureImmutableFormat()
1193 GLuint texture = getBoundTexture(target); in isBoundTextureImmutableFormat()
1199 GLuint GLClientState::getBoundTexture(GLenum target) const in getBoundTexture()
1201 switch (target) { in getBoundTexture()
1232 (GLenum target, GLint level, GLenum internalformat) { in writeCopyTexImageState() argument
1236 entry.target = target; in writeCopyTexImageState()
1243 static GLenum identifyPositiveCubeMapComponent(GLenum target) { in identifyPositiveCubeMapComponent() argument
1244 switch (target) { in identifyPositiveCubeMapComponent()
1257 (GLenum target, GLint level, GLenum internalformat) { in copyTexImageNeededTarget() argument
1260 identifyPositiveCubeMapComponent(target); in copyTexImageNeededTarget()
1264 query.target = positiveComponent; in copyTexImageNeededTarget()
1277 (GLenum target, GLint level, GLenum internalformat) { in copyTexImageLuminanceCubeMapAMDWorkaround() argument
1278 writeCopyTexImageState(target, level, internalformat); in copyTexImageLuminanceCubeMapAMDWorkaround()
1279 return copyTexImageNeededTarget(target, level, internalformat); in copyTexImageLuminanceCubeMapAMDWorkaround()
1321 props.target = GL_RENDERBUFFER; in addFreshRenderbuffer()
1397 void GLClientState::bindRenderbuffer(GLenum target, GLuint name) { in bindRenderbuffer() argument
1404 boundRboProps().target = target; in bindRenderbuffer()
1485 return texrec->target; in queryTexLastBoundTarget()
1489 GLenum target, in getBoundFramebufferFormat() argument
1491 const FboProps& props = boundFboProps_const(target); in getBoundFramebufferFormat()
1588 FboAttachmentType GLClientState::getBoundFramebufferAttachmentType(GLenum target, GLenum attachment… in getBoundFramebufferAttachmentType() argument
1590 getBoundFramebufferFormat(target, attachment, &info); in getBoundFramebufferAttachmentType()
1654 FboProps& GLClientState::boundFboProps(GLenum target) { in boundFboProps() argument
1655 switch (target) { in boundFboProps()
1666 const FboProps& GLClientState::boundFboProps_const(GLenum target) const { in boundFboProps_const()
1667 switch (target) { in boundFboProps_const()
1678 void GLClientState::bindFramebuffer(GLenum target, GLuint name) { in bindFramebuffer() argument
1683 switch (target) { in bindFramebuffer()
1695 boundFboProps(target).previouslyBound = true; in bindFramebuffer()
1698 void GLClientState::setCheckFramebufferStatus(GLenum target, GLenum status) { in setCheckFramebufferStatus() argument
1699 switch (target) { in setCheckFramebufferStatus()
1712 GLenum GLClientState::getCheckFramebufferStatus(GLenum target) const { in getCheckFramebufferStatus()
1713 switch (target) { in getCheckFramebufferStatus()
1724 GLuint GLClientState::boundFramebuffer(GLenum target) const { in boundFramebuffer()
1725 return boundFboProps_const(target).name; in boundFramebuffer()
1731 GLenum target, in attachTextureObject() argument
1738 boundFboProps(target).colorAttachmenti_textures[colorAttachmentIndex] = texture; in attachTextureObject()
1739 boundFboProps(target).colorAttachmenti_hasTex[colorAttachmentIndex] = true; in attachTextureObject()
1744 boundFboProps(target).depthAttachment_texture = texture; in attachTextureObject()
1745 boundFboProps(target).depthAttachment_hasTexObj = true; in attachTextureObject()
1748 boundFboProps(target).stencilAttachment_texture = texture; in attachTextureObject()
1749 boundFboProps(target).stencilAttachment_hasTexObj = true; in attachTextureObject()
1752 boundFboProps(target).depthstencilAttachment_texture = texture; in attachTextureObject()
1753 boundFboProps(target).depthstencilAttachment_hasTexObj = true; in attachTextureObject()
1754 boundFboProps(target).stencilAttachment_texture = texture; in attachTextureObject()
1755 boundFboProps(target).stencilAttachment_hasTexObj = true; in attachTextureObject()
1756 boundFboProps(target).depthAttachment_texture = texture; in attachTextureObject()
1757 boundFboProps(target).depthAttachment_hasTexObj = true; in attachTextureObject()
1762 GLuint GLClientState::getFboAttachmentTextureId(GLenum target, GLenum attachment) const { in getFboAttachmentTextureId() argument
1769 res = boundFboProps_const(target).colorAttachmenti_textures[colorAttachmentIndex]; in getFboAttachmentTextureId()
1774 res = boundFboProps_const(target).depthAttachment_texture; in getFboAttachmentTextureId()
1777 res = boundFboProps_const(target).stencilAttachment_texture; in getFboAttachmentTextureId()
1780 res = boundFboProps_const(target).depthstencilAttachment_texture; in getFboAttachmentTextureId()
1804 void GLClientState::detachRboFromFbo(GLenum target, GLenum attachment, GLuint renderbuffer) { in detachRboFromFbo() argument
1809 if (boundFboProps(target).colorAttachmenti_hasRbo[colorAttachmentIndex] && in detachRboFromFbo()
1810 boundFboProps(target).colorAttachmenti_rbos[colorAttachmentIndex] == renderbuffer) { in detachRboFromFbo()
1811 boundFboProps(target).colorAttachmenti_rbos[colorAttachmentIndex] = 0; in detachRboFromFbo()
1812 boundFboProps(target).colorAttachmenti_hasRbo[colorAttachmentIndex] = false; in detachRboFromFbo()
1818 if (boundFboProps(target).depthAttachment_rbo == renderbuffer && in detachRboFromFbo()
1819 boundFboProps(target).depthAttachment_hasRbo) { in detachRboFromFbo()
1820 boundFboProps(target).depthAttachment_rbo = 0; in detachRboFromFbo()
1821 boundFboProps(target).depthAttachment_hasRbo = false; in detachRboFromFbo()
1825 if (boundFboProps(target).stencilAttachment_rbo == renderbuffer && in detachRboFromFbo()
1826 boundFboProps(target).stencilAttachment_hasRbo) { in detachRboFromFbo()
1827 boundFboProps(target).stencilAttachment_rbo = 0; in detachRboFromFbo()
1828 boundFboProps(target).stencilAttachment_hasRbo = false; in detachRboFromFbo()
1832 if (boundFboProps(target).depthAttachment_rbo == renderbuffer && in detachRboFromFbo()
1833 boundFboProps(target).depthAttachment_hasRbo) { in detachRboFromFbo()
1834 boundFboProps(target).depthAttachment_rbo = 0; in detachRboFromFbo()
1835 boundFboProps(target).depthAttachment_hasRbo = false; in detachRboFromFbo()
1837 if (boundFboProps(target).stencilAttachment_rbo == renderbuffer && in detachRboFromFbo()
1838 boundFboProps(target).stencilAttachment_hasRbo) { in detachRboFromFbo()
1839 boundFboProps(target).stencilAttachment_rbo = 0; in detachRboFromFbo()
1840 boundFboProps(target).stencilAttachment_hasRbo = false; in detachRboFromFbo()
1842 if (boundFboProps(target).depthstencilAttachment_rbo == renderbuffer && in detachRboFromFbo()
1843 boundFboProps(target).depthstencilAttachment_hasRbo) { in detachRboFromFbo()
1844 boundFboProps(target).depthstencilAttachment_rbo = 0; in detachRboFromFbo()
1845 boundFboProps(target).depthstencilAttachment_hasRbo = false; in detachRboFromFbo()
1851 void GLClientState::attachRbo(GLenum target, GLenum attachment, GLuint renderbuffer) { in attachRbo() argument
1857 boundFboProps(target).colorAttachmenti_rbos[colorAttachmentIndex] = renderbuffer; in attachRbo()
1858 boundFboProps(target).colorAttachmenti_hasRbo[colorAttachmentIndex] = true; in attachRbo()
1863 boundFboProps(target).depthAttachment_rbo = renderbuffer; in attachRbo()
1864 boundFboProps(target).depthAttachment_hasRbo = true; in attachRbo()
1867 boundFboProps(target).stencilAttachment_rbo = renderbuffer; in attachRbo()
1868 boundFboProps(target).stencilAttachment_hasRbo = true; in attachRbo()
1871 boundFboProps(target).depthAttachment_rbo = renderbuffer; in attachRbo()
1872 boundFboProps(target).depthAttachment_hasRbo = true; in attachRbo()
1873 boundFboProps(target).stencilAttachment_rbo = renderbuffer; in attachRbo()
1874 boundFboProps(target).stencilAttachment_hasRbo = true; in attachRbo()
1875 boundFboProps(target).depthstencilAttachment_rbo = renderbuffer; in attachRbo()
1876 boundFboProps(target).depthstencilAttachment_hasRbo = true; in attachRbo()
1881 GLuint GLClientState::getFboAttachmentRboId(GLenum target, GLenum attachment) const { in getFboAttachmentRboId() argument
1888 res = boundFboProps_const(target).colorAttachmenti_rbos[colorAttachmentIndex]; in getFboAttachmentRboId()
1893 res = boundFboProps_const(target).depthAttachment_rbo; in getFboAttachmentRboId()
1896 res = boundFboProps_const(target).stencilAttachment_rbo; in getFboAttachmentRboId()
1899 res = boundFboProps_const(target).depthstencilAttachment_rbo; in getFboAttachmentRboId()
1905 bool GLClientState::attachmentHasObject(GLenum target, GLenum attachment) const { in attachmentHasObject() argument
1912 res = boundFboProps_const(target).colorAttachmenti_hasTex[colorAttachmentIndex] || in attachmentHasObject()
1913 boundFboProps_const(target).colorAttachmenti_hasRbo[colorAttachmentIndex]; in attachmentHasObject()
1918 res = (boundFboProps_const(target).depthAttachment_hasTexObj) || in attachmentHasObject()
1919 (boundFboProps_const(target).depthAttachment_hasRbo); in attachmentHasObject()
1922 res = (boundFboProps_const(target).stencilAttachment_hasTexObj) || in attachmentHasObject()
1923 (boundFboProps_const(target).stencilAttachment_hasRbo); in attachmentHasObject()
1926 res = (boundFboProps_const(target).depthstencilAttachment_hasTexObj) || in attachmentHasObject()
1927 (boundFboProps_const(target).depthstencilAttachment_hasRbo); in attachmentHasObject()
1933 GLuint GLClientState::objectOfAttachment(GLenum target, GLenum attachment) const { in objectOfAttachment() argument
1934 const FboProps& props = boundFboProps_const(target); in objectOfAttachment()