glSamplerParameteri

glSamplerParameter: man3/glSamplerParameter.xml

glSamplerParameter assigns the value or values in params to the sampler parameter specified as pname. sampler specifies the sampler object to be modified, and must be the name of a sampler object previously returned from a call to glGenSamplers. The following symbols are accepted in pname :

glSamplerParameter is available only if the GL version is 3.3 or higher. If a sampler object is bound to a texture unit and that unit is used to sample from a texture, the parameters in the sampler are used to sample from the texture, rather than the equivalent parameters in the texture object bound to that unit. This introduces the possibility of sampling from the same texture object with different sets of sampler state, which may lead to a condition where a texture is with respect to one sampler object and not with respect to another. Thus, completeness can be considered a function of a sampler object and a texture object bound to a single texture unit, rather than a property of the texture object itself.

@OpenGL_Version(OGLIntroducedIn.V3P3)
@OpenGL_Extension("GL_ARB_sampler_objects")
fn_glSamplerParameteri glSamplerParameteri;

See Also

glGenSamplers, glBindSampler, glDeleteSamplers, glIsSampler, glBindTexture, glTexParameter

Meta