Lines Matching refs:texrec
1039 TextureRec* texrec = getTextureRecPtr(tex_name); in isTextureCubeMap() local
1040 if (!texrec) return false; in isTextureCubeMap()
1041 switch (texrec->target) { in isTextureCubeMap()
1424 TextureRec* texrec = getTextureRecPtr(texture); in bindTexture() local
1425 if (!texrec) { in bindTexture()
1426 texrec = addTextureRec(texture, target); in bindTexture()
1430 if (texture && target != texrec->target && in bindTexture()
1432 texrec->target != GL_TEXTURE_EXTERNAL_OES)) { in bindTexture()
1478 TextureRec* texrec = getTextureRecPtr(texture); in setBoundEGLImage() local
1479 if (!texrec) return; in setBoundEGLImage()
1480 texrec->boundEGLImage = true; in setBoundEGLImage()
1538 TextureRec* texrec = getTextureRecPtr(texture); in setBoundTextureInternalFormat() local
1539 if (!texrec) return; in setBoundTextureInternalFormat()
1540 texrec->internalformat = internalformat; in setBoundTextureInternalFormat()
1545 TextureRec* texrec = getTextureRecPtr(texture); in setBoundTextureFormat() local
1546 if (!texrec) return; in setBoundTextureFormat()
1547 texrec->format = format; in setBoundTextureFormat()
1552 TextureRec* texrec = getTextureRecPtr(texture); in setBoundTextureType() local
1553 if (!texrec) return; in setBoundTextureType()
1554 texrec->type = type; in setBoundTextureType()
1577 TextureRec* texrec = getTextureRecPtr(texture); in setBoundTextureDims() local
1578 if (!texrec) { in setBoundTextureDims()
1582 texrec->hasStorage = true; in setBoundTextureDims()
1607 texrec->dims[indexToSet].widths[curr_level] = curr_width; in setBoundTextureDims()
1608 texrec->dims[indexToSet].heights[curr_level] = curr_height; in setBoundTextureDims()
1609 texrec->dims[indexToSet].depths[curr_level] = curr_depth; in setBoundTextureDims()
1625 texrec->dims[indexToSet].widths[level] = width; in setBoundTextureDims()
1626 texrec->dims[indexToSet].heights[level] = height; in setBoundTextureDims()
1627 texrec->dims[indexToSet].depths[level] = depth; in setBoundTextureDims()
1635 TextureRec* texrec = getTextureRecPtr(texture); in setBoundTextureSamples() local
1636 if (!texrec) return; in setBoundTextureSamples()
1637 texrec->multisamples = samples; in setBoundTextureSamples()
1644 TextureRec* texrec = getTextureRecPtr(texture); in addTextureCubeMapImage() local
1645 if (!texrec) return; in addTextureCubeMapImage()
1649 texrec->hasCubeNegX = true; in addTextureCubeMapImage()
1652 texrec->hasCubePosX = true; in addTextureCubeMapImage()
1655 texrec->hasCubeNegY = true; in addTextureCubeMapImage()
1658 texrec->hasCubePosY = true; in addTextureCubeMapImage()
1661 texrec->hasCubeNegZ = true; in addTextureCubeMapImage()
1664 texrec->hasCubePosZ = true; in addTextureCubeMapImage()
1671 TextureRec* texrec = getTextureRecPtr(texture); in setBoundTextureImmutableFormat() local
1672 if (!texrec) return; in setBoundTextureImmutableFormat()
1673 texrec->immutable = true; in setBoundTextureImmutableFormat()
1675 texrec->hasCubeNegX = true; in setBoundTextureImmutableFormat()
1676 texrec->hasCubePosX = true; in setBoundTextureImmutableFormat()
1677 texrec->hasCubeNegY = true; in setBoundTextureImmutableFormat()
1678 texrec->hasCubePosY = true; in setBoundTextureImmutableFormat()
1679 texrec->hasCubeNegZ = true; in setBoundTextureImmutableFormat()
1680 texrec->hasCubePosZ = true; in setBoundTextureImmutableFormat()
1686 TextureRec* texrec = getTextureRecPtr(texture); in isBoundTextureImmutableFormat() local
1687 if (!texrec) return false; in isBoundTextureImmutableFormat()
1688 return texrec->immutable; in isBoundTextureImmutableFormat()
1693 TextureRec* texrec = getTextureRecPtr(texture); in isBoundTextureComplete() local
1694 if (!texrec) return false; in isBoundTextureComplete()
1696 if (texrec->immutable) return true; in isBoundTextureComplete()
1697 if (!texrec->hasStorage) return true; in isBoundTextureComplete()
1700 if (!(texrec->hasCubeNegX && in isBoundTextureComplete()
1701 texrec->hasCubePosX && in isBoundTextureComplete()
1702 texrec->hasCubeNegY && in isBoundTextureComplete()
1703 texrec->hasCubePosY && in isBoundTextureComplete()
1704 texrec->hasCubeNegZ && in isBoundTextureComplete()
1705 texrec->hasCubePosZ)) return false; in isBoundTextureComplete()
1707 size_t currBaseLevel = texrec->dims[0].widths.begin()->first; in isBoundTextureComplete()
1708 size_t currWidth = texrec->dims[0].widths.begin()->second; in isBoundTextureComplete()
1709 size_t currHeight = texrec->dims[0].heights.begin()->second; in isBoundTextureComplete()
1711 size_t nextLevel = texrec->dims[i].widths.begin()->first; in isBoundTextureComplete()
1712 size_t nextWidth = texrec->dims[i].widths.begin()->second; in isBoundTextureComplete()
1713 size_t nextHeight = texrec->dims[i].heights.begin()->second; in isBoundTextureComplete()
1926 std::shared_ptr<TextureRec> texrec; in checkFramebufferAttachmentCompleteness() local
1939 texrec = getFboAttachmentTexture(target, attachment); in checkFramebufferAttachmentCompleteness()
1941 if (0 == texrec->dims->widths[fbo_format_info.tex_level] || in checkFramebufferAttachmentCompleteness()
1942 0 == texrec->dims->heights[fbo_format_info.tex_level]) { in checkFramebufferAttachmentCompleteness()
1946 GLsizei depth = texrec->dims->depths[fbo_format_info.tex_level]; in checkFramebufferAttachmentCompleteness()
2064 TextureRec* texrec; in deleteTextures() local
2067 texrec = getTextureRecPtrLocked(*texture); in deleteTextures()
2068 if (texrec && texrec->dims) { in deleteTextures()
2069 delete [] texrec->dims; in deleteTextures()
2071 if (texrec) { in deleteTextures()
2163 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexInternalFormat() local
2164 if (!texrec) return -1; in queryTexInternalFormat()
2165 return texrec->internalformat; in queryTexInternalFormat()
2169 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexWidth() local
2170 if (!texrec) { in queryTexWidth()
2173 return texrec->dims->widths[level]; in queryTexWidth()
2177 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexHeight() local
2178 if (!texrec) return 0; in queryTexHeight()
2179 return texrec->dims->heights[level]; in queryTexHeight()
2183 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexDepth() local
2184 if (!texrec) return 0; in queryTexDepth()
2185 return texrec->dims->depths[level]; in queryTexDepth()
2189 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexEGLImageBacked() local
2190 if (!texrec) return false; in queryTexEGLImageBacked()
2191 return texrec->boundEGLImage; in queryTexEGLImageBacked()
2195 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexFormat() local
2196 if (!texrec) return -1; in queryTexFormat()
2197 return texrec->format; in queryTexFormat()
2201 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexType() local
2202 if (!texrec) return -1; in queryTexType()
2203 return texrec->type; in queryTexType()
2207 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexSamples() local
2208 if (!texrec) return 0; in queryTexSamples()
2209 return texrec->multisamples; in queryTexSamples()
2213 TextureRec* texrec = getTextureRecPtr(tex_name); in queryTexLastBoundTarget() local
2214 if (!texrec) return GL_NONE; in queryTexLastBoundTarget()
2215 return texrec->target; in queryTexLastBoundTarget()
2538 std::shared_ptr<TextureRec> texrec = getTextureRec(texture); in attachTextureObject() local
2546 boundFboProps(target).colorAttachmenti_textures[colorAttachmentIndex] = texrec; in attachTextureObject()
2554 boundFboProps(target).depthAttachment_texture = texrec; in attachTextureObject()
2560 boundFboProps(target).stencilAttachment_texture = texrec; in attachTextureObject()
2566 boundFboProps(target).depthstencilAttachment_texture = texrec; in attachTextureObject()
2568 boundFboProps(target).stencilAttachment_texture = texrec; in attachTextureObject()
2570 boundFboProps(target).depthAttachment_texture = texrec; in attachTextureObject()
2732 std::shared_ptr<TextureRec> texrec = getTextureRec(texture); in setFboCompletenessDirtyForTexture() local
2738 if (texrec == props.colorAttachmenti_textures[i]) { in setFboCompletenessDirtyForTexture()
2746 if (texrec == props.depthAttachment_texture) { in setFboCompletenessDirtyForTexture()
2753 if (texrec == props.stencilAttachment_texture) { in setFboCompletenessDirtyForTexture()
2760 if (texrec == props.depthstencilAttachment_texture) { in setFboCompletenessDirtyForTexture()