Portal:OpenGL Objects/Sampler Objects: Difference between revisions
Jump to navigation
Jump to search
Portal for Sampler objects. |
m Bot: Updating section links to use redirects. |
||
Line 1: | Line 1: | ||
A '''Sampler Object''' is an object that describes how texture objects are accessed from a [[Shader]]. These parameters include how accesses to the [[ | A '''Sampler Object''' is an object that describes how texture objects are accessed from a [[Shader]]. These parameters include how accesses to the [[Texture Filtering|texture are to be filtered]], whether [[Depth Compare|comparison mode is active]], [[Edge Sampling|texture coordinate wrapping]], and so forth. Texture objects also have these parameters, but a sampler object bound to the same texture image unit will override them. | ||
Unlike most OpenGL objects, you can modify the state of a sampler object without binding it. | Unlike most OpenGL objects, you can modify the state of a sampler object without binding it. |
Latest revision as of 15:35, 12 April 2015
A Sampler Object is an object that describes how texture objects are accessed from a Shader. These parameters include how accesses to the texture are to be filtered, whether comparison mode is active, texture coordinate wrapping, and so forth. Texture objects also have these parameters, but a sampler object bound to the same texture image unit will override them.
Unlike most OpenGL objects, you can modify the state of a sampler object without binding it.