Download lib/python3.9/site-packages/OpenGL/GL/NV/compute_program5.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/NV/compute_program5.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/NV/compute_program5.py
-
curl -L -o compute_program5.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/NV/compute_program5.py
1.2 kB
| '''OpenGL extension NV.compute_program5 | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.NV.compute_program5 to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension builds on the ARB_compute_shader extension to provide new | |
| assembly compute program capability for OpenGL. ARB_compute_shader adds | |
| the basic functionality, including the ability to dispatch compute work. | |
| This extension provides the ability to write a compute program in | |
| assembly, using the same basic syntax and capability set found in the | |
| NV_gpu_program4 and NV_gpu_program5 extensions. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/NV/compute_program5.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.NV.compute_program5 import * | |
| from OpenGL.raw.GL.NV.compute_program5 import _EXTENSION_NAME | |
| def glInitComputeProgram5NV(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |