Buckets:
firestryker/ubuntu / LTX2.3-Studio /env /lib /python3.12 /site-packages /OpenGL /GLES2 /EXT /copy_image.py
| '''OpenGL extension EXT.copy_image | |
| This module customises the behaviour of the | |
| OpenGL.raw.GLES2.EXT.copy_image to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension enables efficient image data transfer between image | |
| objects (i.e. textures and renderbuffers) without the need to bind | |
| the objects or otherwise configure the rendering pipeline. | |
| This is accomplised by adding a new entry-point CopyImageSubData, | |
| which takes a named source and destination. | |
| CopyImageSubData does not perform general-purpose conversions | |
| such as scaling, resizing, blending, color-space, or format | |
| conversions. It should be considered to operate in a manner | |
| similar to a CPU memcpy, but using the GPU for the copy. | |
| CopyImageSubData supports copies between images with different | |
| internal formats, if the formats are compatible as described in | |
| this extension. | |
| CopyImageSubData also supports copying between compressed and | |
| uncompressed images if the compressed block / uncompressed texel | |
| sizes are the same. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/EXT/copy_image.txt | |
| ''' | |
| from OpenGL import platform, constant, arrays | |
| from OpenGL import extensions, wrapper | |
| import ctypes | |
| from OpenGL.raw.GLES2 import _types, _glgets | |
| from OpenGL.raw.GLES2.EXT.copy_image import * | |
| from OpenGL.raw.GLES2.EXT.copy_image import _EXTENSION_NAME | |
| def glInitCopyImageEXT(): | |
| '''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.63 kB
- Xet hash:
- dd9562b89730648bc30596f18fa705da5eba3f3cdf66e1f186a23342539b863d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.