Buckets:
firestryker/ubuntu / LTX2.3-Studio /env /lib /python3.12 /site-packages /OpenGL /GL /EXT /packed_float.py
| '''OpenGL extension EXT.packed_float | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.EXT.packed_float to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension adds a new 3-component floating-point texture format | |
| that fits within a single 32-bit word. This format stores 5 bits | |
| of biased exponent per component in the same manner as 16-bit | |
| floating-point formats, but rather than 10 mantissa bits, the red, | |
| green, and blue components have 6, 6, and 5 bits respectively. | |
| Each mantissa is assumed to have an implied leading one except in the | |
| denorm exponent case. There is no sign bit so only non-negative | |
| values can be represented. Positive infinity, positive denorms, | |
| and positive NaN values are representable. The value of the fourth | |
| component returned by a texture fetch is always 1.0. | |
| This extension also provides support for rendering into an unsigned | |
| floating-point rendering format with the assumption that the texture | |
| format described above could also be advertised as an unsigned | |
| floating-point format for rendering. | |
| The extension also provides a pixel external format for specifying | |
| packed float values directly. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/EXT/packed_float.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.EXT.packed_float import * | |
| from OpenGL.raw.GL.EXT.packed_float import _EXTENSION_NAME | |
| def glInitPackedFloatEXT(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |
Xet Storage Details
- Size:
- 1.77 kB
- Xet hash:
- 0f4e7f435344ce2a6fbb72a6f1774c48a3056d5758bd835185d81f54cbc48d06
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.