Lines Matching defs:texture
302 * Initialize new texture's gl_texture_image structures. Will not call driver
322 /* Set up all the texture object's gl_texture_images */
462 * texture state needed by ARB_texture_view.
474 /* When an immutable texture is created via glTexStorage or
478 * If the texture target is TEXTURE_1D_ARRAY then
480 * If the texture target is TEXTURE_2D_ARRAY, TEXTURE_CUBE_MAP_ARRAY,
483 * If the texture target is TEXTURE_CUBE_MAP, then
485 * For any other texture target, TEXTURE_VIEW_NUM_LAYERS becomes 1.
577 /* If the new texture's target is TEXTURE_CUBE_MAP, the clamped
594 /* If the new texture's target is TEXTURE_CUBE_MAP_ARRAY,
611 /* If the dimensions of the original texture are larger than the maximum
613 * generated. For example, if the original texture has a TEXTURE_2D_ARRAY
631 "glTextureView(invalid texture size)");
657 /* If the new texture's target is TEXTURE_CUBE_MAP or
658 * TEXTURE_CUBE_MAP_ARRAY, the width and height of the original texture's
671 /* When the original texture's target is TEXTURE_CUBE_MAP, the layer
677 * original texture, the contents of the memory are reinterpreted in the
711 _mesa_TextureView_no_error(GLuint texture, GLenum target, GLuint origtexture,
722 texObj = _mesa_lookup_texture(ctx, texture);
729 _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
742 texture, _mesa_enum_to_string(target), origtexture,
752 /* Need original texture information to validate arguments */
755 /* If <origtexture> is not the name of a texture, INVALID_VALUE
773 /* If <texture> is 0, INVALID_VALUE is generated. */
774 if (texture == 0) {
775 _mesa_error(ctx, GL_INVALID_VALUE, "glTextureView(texture = 0)");
779 /* If <texture> is not a valid name returned by GenTextures,
782 texObj = _mesa_lookup_texture(ctx, texture);
785 "glTextureView(texture = %u non-gen name)", texture);
789 /* If <texture> has already been bound and given a target, then
794 "glTextureView(texture = %u already bound)", texture);