X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fgltypes.py;h=23af3279e54f2e51a33e8ebba9ad6166131a7d36;hb=bcb5850afb381e4814d247917311494d7edd2e91;hp=45231b244cf29304bbf4592413af93b3f6e91be0;hpb=8ed5da81fc102b747ed55c9626ddd161ddcaea17;p=apitrace diff --git a/specs/gltypes.py b/specs/gltypes.py index 45231b2..23af327 100644 --- a/specs/gltypes.py +++ b/specs/gltypes.py @@ -100,15 +100,19 @@ GLshader = Handle("shader", GLuint) GLlocation = Handle("location", GLint, key=('program', GLhandleARB)) GLlocationARB = Handle("location", GLint, key=('programObj', GLhandleARB)) +contextKey = ('reinterpret_cast(glretrace::getCurrentContext())', UIntPtr) + GLprogramARB = Handle("programARB", GLuint) GLframebuffer = Handle("framebuffer", GLuint) GLrenderbuffer = Handle("renderbuffer", GLuint) GLfragmentShaderATI = Handle("fragmentShaderATI", GLuint) -GLarray = Handle("array", GLuint) +GLarray = Handle("array", GLuint, key=contextKey) # per-context +GLarrayAPPLE = Handle("arrayAPPLE", GLuint) # shared GLregion = Handle("region", GLuint) GLpipeline = Handle("pipeline", GLuint) GLsampler = Handle("sampler", GLuint) GLfeedback = Handle("feedback", GLuint) +GLfence = Handle("fence", GLuint) # GL mappings are pointers to linear memory regions. # @@ -229,3 +233,7 @@ GLbitfield_barrier = Flags(GLbitfield, [ "GL_ATOMIC_COUNTER_BARRIER_BIT", # 0x00001000 ]) +# GL_ARB_vertex_array_bgra +size_bgra = FakeEnum(GLint, [ + "GL_BGRA", +])