Buckets:
firestryker/ubuntu / LTX2.3-Studio /env /lib /python3.12 /site-packages /OpenGL /GL /ARB /sample_shading.py
| '''OpenGL extension ARB.sample_shading | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.ARB.sample_shading to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| In standard multisample rendering, an implementation is allowed to | |
| assign the same color and texture coordinate values to each sample, | |
| which then allows the optimization where the shader is only | |
| evaluated once and then distributed to the samples that have been | |
| determined to be covered by the primitive currently being | |
| rasterized. This can cause aliasing where the input color and | |
| texture coordinates are used to generate a result that doesn't | |
| antialias itself, for example with alpha-tested transparency. | |
| This extension adds the ability to explicitly request that an | |
| implementation use a minimum number of unique set of fragment | |
| computation inputs when multisampling a pixel. Specifying such a | |
| requirement can reduce aliasing that results from evaluating the | |
| fragment computations too few times per pixel. | |
| This extension adds new global state that controls the minimum | |
| number of samples for which attribute data is independently | |
| interpolated. When enabled, all operations that were traditionally | |
| executed per-fragment operate independently on each sample. | |
| This also extends the shading language to allow control over the | |
| sample being processed. This includes built-in fragment input | |
| variables identifying the sample number and position being processed | |
| when executing fragment shaders per sample. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/ARB/sample_shading.txt | |
| ''' | |
| from OpenGL import platform, constant, arrays | |
| from OpenGL import extensions, wrapper | |
| import ctypes | |
| from OpenGL.raw.GL import _types, _glgets | |
| from OpenGL.raw.GL.ARB.sample_shading import * | |
| from OpenGL.raw.GL.ARB.sample_shading import _EXTENSION_NAME | |
| def glInitSampleShadingARB(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |
Xet Storage Details
- Size:
- 2.11 kB
- Xet hash:
- 661b7c51dc08e3a906d56f9d005ff13a03185f5116a895d282bc98b4a3db1839
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.