Returns four integer or floating-point numbers that comprise the RGBA color of the texture border. Floating-point values are returned in the range [0, 1]. Integer values are returned as a linear mapping of the internal floating-point representation such that 1.0 maps to the most positive representable integer and -1.0 maps to the most negative representable integer. The initial value is (0, 0, 0, 0).

GL_TEXTURE_COMPARE_MODE

Returns a single-valued texture comparison mode, a symbolic constant. The initial value is GL_NONE. See glTexParameter​.

GL_TEXTURE_COMPARE_FUNC

Returns a single-valued texture comparison function, a symbolic constant. The initial value is GL_LEQUAL. See glTexParameter​.

GL_TEXTURE_VIEW_MIN_LEVEL

Returns a single-valued base level of a texture view relative to its parent. The initial value is 0. See glTextureView​.

GL_TEXTURE_VIEW_NUM_LEVELS

Returns a single-valued number of levels of detail of a texture view. See glTextureView​.

GL_TEXTURE_VIEW_MIN_LAYER

Returns a single-valued first level of a texture array view relative to its parent. See glTextureView​.

GL_TEXTURE_VIEW_NUM_LAYERS

Returns a single-valued number of layers in a texture array view. See glTextureView​.

GL_TEXTURE_IMMUTABLE_LEVELS

Returns a single-valued number of immutable texture levels in a texture view. See glTextureView​.

In addition to the parameters that may be set with glTexParameter​, glGetTexParameter accepts the following read-only parameters:

Notes

If an error is generated, no change is made to the contents of params​.

GL_DEPTH_STENCIL_TEXTURE_MODE, GL_TEXTURE_VIEW_MIN_LEVEL, GL_TEXTURE_VIEW_NUM_LEVELS, GL_TEXTURE_VIEW_MIN_LAYER, GL_TEXTURE_VIEW_NUM_LAYERS and GL_TEXTURE_IMMUTABLE_LEVELS are available only if the GL version is 4.3 or greater.

Errors

GL_INVALID_ENUM is generated if target​ or pname​ is not an accepted value.