Skip to content

Commit

Permalink
UPDATED MODULES OpenGL registry updated module wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfletch committed Dec 27, 2024
1 parent b26fe59 commit c50b9a8
Show file tree
Hide file tree
Showing 128 changed files with 816 additions and 1,040 deletions.
2 changes: 1 addition & 1 deletion OpenGL/GL/AMD/debug_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def glInitDebugOutputAMD():
).setOutput(
'lengths',size=lambda x:(x,),pnameArg='count',orPassIn=True
).setOutput(
'message',size=lambda x:(x,),pnameArg='bufsize',orPassIn=True
'message',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
).setOutput(
'severities',size=lambda x:(x,),pnameArg='count',orPassIn=True
)
Expand Down
9 changes: 8 additions & 1 deletion OpenGL/GL/AMD/multi_draw_indirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,12 @@ def glInitMultiDrawIndirectAMD():
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )


# INPUT glMultiDrawArraysIndirectAMD.indirect size not checked against 'primcount,stride'
glMultiDrawArraysIndirectAMD=wrapper.wrapper(glMultiDrawArraysIndirectAMD).setInputArraySize(
'indirect', None
)
# INPUT glMultiDrawElementsIndirectAMD.indirect size not checked against 'primcount,stride'
glMultiDrawElementsIndirectAMD=wrapper.wrapper(glMultiDrawElementsIndirectAMD).setInputArraySize(
'indirect', None
)
### END AUTOGENERATED SECTION
2 changes: 1 addition & 1 deletion OpenGL/GL/AMD/performance_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ def glInitPerformanceMonitorAMD():
glGetPerfMonitorCounterDataAMD=wrapper.wrapper(glGetPerfMonitorCounterDataAMD).setOutput(
'bytesWritten',size=(1,),orPassIn=True
).setOutput(
'data',size=lambda x:(x,),pnameArg='dataSize',orPassIn=True
'data',size=lambda x:(x,),pnameArg='dataSize / 4',orPassIn=True
)
### END AUTOGENERATED SECTION
2 changes: 1 addition & 1 deletion OpenGL/GL/APPLE/ycbcr_422.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
in memory; Cb, Y0, Cr, Y1. The luminance components have a range of [16,
235], while the chroma value has a range of [16, 240]. This is consistent
with the CCIR601 spec. This format is fairly prevalent on both Mac and Win32
platforms. The equivalent Microsoft fourCC is OUYVYO. This format is
platforms. The equivalent Microsoft fourCC is 'UYVY'. This format is
supported with the UNSIGNED_SHORT_8_8_REV_APPLE type for pixel storage
operations.
Expand Down
91 changes: 90 additions & 1 deletion OpenGL/GL/ARB/direct_state_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,57 @@ def glInitDirectStateAccessARB():
glNamedBufferStorage=wrapper.wrapper(glNamedBufferStorage).setInputArraySize(
'data', None
)
# INPUT glNamedBufferSubData.data size not checked against 'size'
# INPUT glNamedBufferData.data size not checked against size
glNamedBufferData=wrapper.wrapper(glNamedBufferData).setInputArraySize(
'data', None
)
# INPUT glNamedBufferSubData.data size not checked against size
glNamedBufferSubData=wrapper.wrapper(glNamedBufferSubData).setInputArraySize(
'data', None
)
# INPUT glClearNamedBufferData.data size not checked against 'format,type'
glClearNamedBufferData=wrapper.wrapper(glClearNamedBufferData).setInputArraySize(
'data', None
)
# INPUT glClearNamedBufferSubData.data size not checked against 'format,type'
glClearNamedBufferSubData=wrapper.wrapper(glClearNamedBufferSubData).setInputArraySize(
'data', None
)
glGetNamedBufferPointerv=wrapper.wrapper(glGetNamedBufferPointerv).setInputArraySize(
'params', 1
)
# INPUT glGetNamedBufferSubData.data size not checked against size
glGetNamedBufferSubData=wrapper.wrapper(glGetNamedBufferSubData).setInputArraySize(
'data', None
)
# INPUT glCreateFramebuffers.framebuffers size not checked against n
glCreateFramebuffers=wrapper.wrapper(glCreateFramebuffers).setInputArraySize(
'framebuffers', None
)
# INPUT glNamedFramebufferDrawBuffers.bufs size not checked against n
glNamedFramebufferDrawBuffers=wrapper.wrapper(glNamedFramebufferDrawBuffers).setInputArraySize(
'bufs', None
)
# INPUT glInvalidateNamedFramebufferData.attachments size not checked against numAttachments
glInvalidateNamedFramebufferData=wrapper.wrapper(glInvalidateNamedFramebufferData).setInputArraySize(
'attachments', None
)
# INPUT glInvalidateNamedFramebufferSubData.attachments size not checked against numAttachments
glInvalidateNamedFramebufferSubData=wrapper.wrapper(glInvalidateNamedFramebufferSubData).setInputArraySize(
'attachments', None
)
# INPUT glClearNamedFramebufferiv.value size not checked against 'buffer'
glClearNamedFramebufferiv=wrapper.wrapper(glClearNamedFramebufferiv).setInputArraySize(
'value', None
)
# INPUT glClearNamedFramebufferuiv.value size not checked against 'buffer'
glClearNamedFramebufferuiv=wrapper.wrapper(glClearNamedFramebufferuiv).setInputArraySize(
'value', None
)
# INPUT glClearNamedFramebufferfv.value size not checked against 'buffer'
glClearNamedFramebufferfv=wrapper.wrapper(glClearNamedFramebufferfv).setInputArraySize(
'value', None
)
# INPUT glCreateRenderbuffers.renderbuffers size not checked against n
glCreateRenderbuffers=wrapper.wrapper(glCreateRenderbuffers).setInputArraySize(
'renderbuffers', None
Expand All @@ -82,10 +125,56 @@ def glInitDirectStateAccessARB():
glCreateTextures=wrapper.wrapper(glCreateTextures).setInputArraySize(
'textures', None
)
# INPUT glCompressedTextureSubImage1D.data size not checked against imageSize
glCompressedTextureSubImage1D=wrapper.wrapper(glCompressedTextureSubImage1D).setInputArraySize(
'data', None
)
# INPUT glCompressedTextureSubImage2D.data size not checked against imageSize
glCompressedTextureSubImage2D=wrapper.wrapper(glCompressedTextureSubImage2D).setInputArraySize(
'data', None
)
# INPUT glCompressedTextureSubImage3D.data size not checked against imageSize
glCompressedTextureSubImage3D=wrapper.wrapper(glCompressedTextureSubImage3D).setInputArraySize(
'data', None
)
# INPUT glTextureParameterfv.param size not checked against 'pname'
glTextureParameterfv=wrapper.wrapper(glTextureParameterfv).setInputArraySize(
'param', None
)
# INPUT glTextureParameterIiv.params size not checked against 'pname'
glTextureParameterIiv=wrapper.wrapper(glTextureParameterIiv).setInputArraySize(
'params', None
)
# INPUT glTextureParameterIuiv.params size not checked against 'pname'
glTextureParameterIuiv=wrapper.wrapper(glTextureParameterIuiv).setInputArraySize(
'params', None
)
# INPUT glTextureParameteriv.param size not checked against 'pname'
glTextureParameteriv=wrapper.wrapper(glTextureParameteriv).setInputArraySize(
'param', None
)
# INPUT glGetTextureImage.pixels size not checked against bufSize
glGetTextureImage=wrapper.wrapper(glGetTextureImage).setInputArraySize(
'pixels', None
)
# INPUT glGetCompressedTextureImage.pixels size not checked against bufSize
glGetCompressedTextureImage=wrapper.wrapper(glGetCompressedTextureImage).setInputArraySize(
'pixels', None
)
# INPUT glCreateVertexArrays.arrays size not checked against n
glCreateVertexArrays=wrapper.wrapper(glCreateVertexArrays).setInputArraySize(
'arrays', None
)
# INPUT glVertexArrayVertexBuffers.buffers size not checked against count
# INPUT glVertexArrayVertexBuffers.offsets size not checked against count
# INPUT glVertexArrayVertexBuffers.strides size not checked against count
glVertexArrayVertexBuffers=wrapper.wrapper(glVertexArrayVertexBuffers).setInputArraySize(
'buffers', None
).setInputArraySize(
'offsets', None
).setInputArraySize(
'strides', None
)
# INPUT glCreateSamplers.samplers size not checked against n
glCreateSamplers=wrapper.wrapper(glCreateSamplers).setInputArraySize(
'samplers', None
Expand Down
6 changes: 3 additions & 3 deletions OpenGL/GL/ARB/draw_elements_base_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def glInitDrawElementsBaseVertexARB():
glDrawElementsInstancedBaseVertex=wrapper.wrapper(glDrawElementsInstancedBaseVertex).setInputArraySize(
'indices', None
)
# INPUT glMultiDrawElementsBaseVertex.basevertex size not checked against 'drawcount'
# INPUT glMultiDrawElementsBaseVertex.count size not checked against 'drawcount'
# INPUT glMultiDrawElementsBaseVertex.indices size not checked against 'drawcount'
# INPUT glMultiDrawElementsBaseVertex.basevertex size not checked against drawcount
# INPUT glMultiDrawElementsBaseVertex.count size not checked against drawcount
# INPUT glMultiDrawElementsBaseVertex.indices size not checked against drawcount
glMultiDrawElementsBaseVertex=wrapper.wrapper(glMultiDrawElementsBaseVertex).setInputArraySize(
'basevertex', None
).setInputArraySize(
Expand Down
9 changes: 8 additions & 1 deletion OpenGL/GL/ARB/get_texture_sub_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,12 @@ def glInitGetTextureSubImageARB():
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )


# INPUT glGetTextureSubImage.pixels size not checked against bufSize
glGetTextureSubImage=wrapper.wrapper(glGetTextureSubImage).setInputArraySize(
'pixels', None
)
# INPUT glGetCompressedTextureSubImage.pixels size not checked against bufSize
glGetCompressedTextureSubImage=wrapper.wrapper(glGetCompressedTextureSubImage).setInputArraySize(
'pixels', None
)
### END AUTOGENERATED SECTION
8 changes: 0 additions & 8 deletions OpenGL/GL/ARB/gpu_shader_int64.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ def glInitGpuShaderInt64ARB():
glGetUniformui64vARB=wrapper.wrapper(glGetUniformui64vARB).setInputArraySize(
'params', None
)
# INPUT glGetnUniformi64vARB.params size not checked against bufSize
glGetnUniformi64vARB=wrapper.wrapper(glGetnUniformi64vARB).setInputArraySize(
'params', None
)
# INPUT glGetnUniformui64vARB.params size not checked against bufSize
glGetnUniformui64vARB=wrapper.wrapper(glGetnUniformui64vARB).setInputArraySize(
'params', None
)
# INPUT glProgramUniform1i64vARB.value size not checked against count
glProgramUniform1i64vARB=wrapper.wrapper(glProgramUniform1i64vARB).setInputArraySize(
'value', None
Expand Down
2 changes: 1 addition & 1 deletion OpenGL/GL/ARB/internalformat_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ def glInitInternalformatQueryARB():
return extensions.hasGLExtension( _EXTENSION_NAME )

glGetInternalformativ=wrapper.wrapper(glGetInternalformativ).setOutput(
'params',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'params',size=lambda x:(x,),pnameArg='count',orPassIn=True
)
### END AUTOGENERATED SECTION
2 changes: 1 addition & 1 deletion OpenGL/GL/ARB/internalformat_query2.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ def glInitInternalformatQuery2ARB():
return extensions.hasGLExtension( _EXTENSION_NAME )

glGetInternalformati64v=wrapper.wrapper(glGetInternalformati64v).setOutput(
'params',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'params',size=lambda x:(x,),pnameArg='count',orPassIn=True
)
### END AUTOGENERATED SECTION
2 changes: 1 addition & 1 deletion OpenGL/GL/ARB/program_interface_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def glInitProgramInterfaceQueryARB():
glGetProgramResourceiv=wrapper.wrapper(glGetProgramResourceiv).setOutput(
'length',size=(1,),orPassIn=True
).setOutput(
'params',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'params',size=lambda x:(x,),pnameArg='count',orPassIn=True
).setInputArraySize(
'props', None
)
Expand Down
12 changes: 6 additions & 6 deletions OpenGL/GL/ARB/robustness.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ def glInitRobustnessARB():
'img',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
)
glGetnUniformfvARB=wrapper.wrapper(glGetnUniformfvARB).setOutput(
'params',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'params',size=lambda x:(x,),pnameArg='bufSize / 4',orPassIn=True
)
glGetnUniformivARB=wrapper.wrapper(glGetnUniformivARB).setOutput(
'params',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'params',size=lambda x:(x,),pnameArg='bufSize / 4',orPassIn=True
)
glGetnUniformuivARB=wrapper.wrapper(glGetnUniformuivARB).setOutput(
'params',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'params',size=lambda x:(x,),pnameArg='bufSize / 4',orPassIn=True
)
glGetnUniformdvARB=wrapper.wrapper(glGetnUniformdvARB).setOutput(
'params',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'params',size=lambda x:(x,),pnameArg='bufSize / 8',orPassIn=True
)
glGetnMapdvARB=wrapper.wrapper(glGetnMapdvARB).setOutput(
'v',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'v',size=lambda x:(x,),pnameArg='bufSize / 8',orPassIn=True
)
glGetnMapfvARB=wrapper.wrapper(glGetnMapfvARB).setOutput(
'v',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
Expand All @@ -145,7 +145,7 @@ def glInitRobustnessARB():
'v',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
)
glGetnPixelMapfvARB=wrapper.wrapper(glGetnPixelMapfvARB).setOutput(
'values',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'values',size=lambda x:(x,),pnameArg='bufSize / 4',orPassIn=True
)
glGetnPixelMapuivARB=wrapper.wrapper(glGetnPixelMapuivARB).setOutput(
'values',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
Expand Down
10 changes: 10 additions & 0 deletions OpenGL/GL/ARB/shader_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
This extension exposes a 64-bit monotonically incrementing shader
counter which may be used to derive local timing information within
a single shader invocation.
Mapping to SPIR-V
-----------------
For informational purposes (non-specification), the following is an
expected way for an implementation to map GLSL constructs to SPIR-V
constructs:
clock2x32ARB -> OpReadClockKHR with a Scope of Subgroup, Result type of uvec2
clockARB -> OpReadClockKHR with a Scope of Subgroup, Result type of uitn64_t
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/shader_clock.txt
Expand Down
4 changes: 2 additions & 2 deletions OpenGL/GL/ARB/shader_subroutine.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ def glInitShaderSubroutineARB():
glGetActiveSubroutineUniformName=wrapper.wrapper(glGetActiveSubroutineUniformName).setOutput(
'length',size=(1,),orPassIn=True
).setOutput(
'name',size=lambda x:(x,),pnameArg='bufsize',orPassIn=True
'name',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
)
glGetActiveSubroutineName=wrapper.wrapper(glGetActiveSubroutineName).setOutput(
'length',size=(1,),orPassIn=True
).setOutput(
'name',size=lambda x:(x,),pnameArg='bufsize',orPassIn=True
'name',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
)
# INPUT glUniformSubroutinesuiv.indices size not checked against count
glUniformSubroutinesuiv=wrapper.wrapper(glUniformSubroutinesuiv).setInputArraySize(
Expand Down
2 changes: 1 addition & 1 deletion OpenGL/GL/ARB/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def glInitSyncARB():
glGetSynciv=wrapper.wrapper(glGetSynciv).setOutput(
'length',size=(1,),orPassIn=True
).setOutput(
'values',size=lambda x:(x,),pnameArg='bufSize',orPassIn=True
'values',size=lambda x:(x,),pnameArg='count',orPassIn=True
)
### END AUTOGENERATED SECTION
from OpenGL.raw.GL._types import GLint
Expand Down
44 changes: 20 additions & 24 deletions OpenGL/GL/ARB/texture_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,47 +65,43 @@
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/texture_compression.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.texture_compression import *
from OpenGL.raw.GL.ARB.texture_compression import _EXTENSION_NAME


def glInitTextureCompressionARB():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions

return extensions.hasGLExtension(_EXTENSION_NAME)

return extensions.hasGLExtension( _EXTENSION_NAME )

# INPUT glCompressedTexImage3DARB.data size not checked against imageSize
glCompressedTexImage3DARB = wrapper.wrapper(
glCompressedTexImage3DARB
).setInputArraySize('data', None)
glCompressedTexImage3DARB=wrapper.wrapper(glCompressedTexImage3DARB).setInputArraySize(
'data', None
)
# INPUT glCompressedTexImage2DARB.data size not checked against imageSize
glCompressedTexImage2DARB = wrapper.wrapper(
glCompressedTexImage2DARB
).setInputArraySize('data', None)
glCompressedTexImage2DARB=wrapper.wrapper(glCompressedTexImage2DARB).setInputArraySize(
'data', None
)
# INPUT glCompressedTexImage1DARB.data size not checked against imageSize
glCompressedTexImage1DARB = wrapper.wrapper(
glCompressedTexImage1DARB
).setInputArraySize('data', None)
glCompressedTexImage1DARB=wrapper.wrapper(glCompressedTexImage1DARB).setInputArraySize(
'data', None
)
# INPUT glCompressedTexSubImage3DARB.data size not checked against imageSize
glCompressedTexSubImage3DARB = wrapper.wrapper(
glCompressedTexSubImage3DARB
).setInputArraySize('data', None)
glCompressedTexSubImage3DARB=wrapper.wrapper(glCompressedTexSubImage3DARB).setInputArraySize(
'data', None
)
# INPUT glCompressedTexSubImage2DARB.data size not checked against imageSize
glCompressedTexSubImage2DARB = wrapper.wrapper(
glCompressedTexSubImage2DARB
).setInputArraySize('data', None)
glCompressedTexSubImage2DARB=wrapper.wrapper(glCompressedTexSubImage2DARB).setInputArraySize(
'data', None
)
# INPUT glCompressedTexSubImage1DARB.data size not checked against imageSize
glCompressedTexSubImage1DARB = wrapper.wrapper(
glCompressedTexSubImage1DARB
).setInputArraySize('data', None)
# OUTPUT glGetCompressedTexImageARB.img COMPSIZE(target, level)
glCompressedTexSubImage1DARB=wrapper.wrapper(glCompressedTexSubImage1DARB).setInputArraySize(
'data', None
)
# OUTPUT glGetCompressedTexImageARB.img COMPSIZE(target, level)
### END AUTOGENERATED SECTION
from OpenGL.GL import images

Expand Down
4 changes: 0 additions & 4 deletions OpenGL/GL/ARB/vertex_attrib_64bit.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def glInitVertexAttrib64BitARB():
glVertexAttribL4dv=wrapper.wrapper(glVertexAttribL4dv).setInputArraySize(
'v', 4
)
# INPUT glVertexAttribLPointer.pointer size not checked against size
glVertexAttribLPointer=wrapper.wrapper(glVertexAttribLPointer).setInputArraySize(
'pointer', None
)
glGetVertexAttribLdv=wrapper.wrapper(glGetVertexAttribLdv).setOutput(
'params',size=_glgets._glget_size_mapping,pnameArg='pname',orPassIn=True
)
Expand Down
4 changes: 0 additions & 4 deletions OpenGL/GL/ARB/vertex_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ def glInitVertexProgramARB():
glVertexAttrib4usvARB=wrapper.wrapper(glVertexAttrib4usvARB).setInputArraySize(
'v', 4
)
# INPUT glVertexAttribPointerARB.pointer size not checked against 'size,type,stride'
glVertexAttribPointerARB=wrapper.wrapper(glVertexAttribPointerARB).setInputArraySize(
'pointer', None
)
# INPUT glProgramStringARB.string size not checked against len
glProgramStringARB=wrapper.wrapper(glProgramStringARB).setInputArraySize(
'string', None
Expand Down
Loading

0 comments on commit c50b9a8

Please sign in to comment.