]> git.tdb.fi Git - gldbg.git/blob - gles2.spec
96abda9ec2fdd582ac2e00ede82e7ed932ed8509
[gldbg.git] / gles2.spec
1 ActiveTexture(texture)
2         return          void
3         param           texture         TextureUnit in value
4
5 AttachShader(program, shader)
6         return          void
7         param           program         UInt32 in value
8         param           shader          UInt32 in value
9
10 BindAttribLocation(program, index, name)
11         return          void
12         param           program         UInt32 in value
13         param           index           UInt32 in value
14         param           name            Char in array []
15
16 BindBuffer(target, buffer)
17         return          void
18         param           target          BufferTarget in value
19         param           buffer          UInt32 in value
20
21 BindFramebuffer(target, framebuffer)
22         return          void
23         param           target          FramebufferTarget in value
24         param           framebuffer     UInt32 in value
25
26 BindRenderbuffer(target, renderbuffer)
27         return          void
28         param           target          RenderbufferTarget in value
29         param           renderbuffer    UInt32 in value
30
31 BindTexture(target, texture)
32         return          void
33         param           target          TextureTarget in value
34         param           texture         Texture in value
35
36 BlendColor(red, green, blue, alpha)
37         return          void
38         param           red             ClampedColorF in value
39         param           green           ClampedColorF in value
40         param           blue            ClampedColorF in value
41         param           alpha           ClampedColorF in value
42
43 BlendEquation(mode)
44         return          void
45         param           mode            BlendEquationMode in value
46
47 BlendEquationSeparate(modeRGB, modeAlpha)
48         return          void
49         param           modeRGB         BlendEquationMode in value
50         param           modeAlpha       BlendEquationMode in value
51
52 BlendFunc(sfactor, dfactor)
53         return          void
54         param           sfactor         BlendingFactorSrc in value
55         param           dfactor         BlendingFactorDest in value
56
57 BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha)
58         return          void
59         param           sfactorRGB      BlendFuncSeparateParameter in value
60         param           dfactorRGB      BlendFuncSeparateParameter in value
61         param           sfactorAlpha    BlendFuncSeparateParameter in value
62         param           dfactorAlpha    BlendFuncSeparateParameter in value
63
64 BufferData(target, size, data, usage)
65         return          void
66         param           target          BufferTarget in value
67         param           size            BufferSize in value
68         param           data            ConstVoid in array [size]
69         param           usage           BufferUsage in value
70
71 BufferSubData(target, offset, size, data)
72         return          void
73         param           target          BufferTarget in value
74         param           offset          BufferOffset in value
75         param           size            BufferSize in value
76         param           data            ConstVoid in array [size]
77
78 CheckFramebufferStatus(target)
79         return          GLenum
80         param           target          FramebufferTarget in value
81
82 Clear(mask)
83         return          void
84         param           mask            ClearBufferMask in value
85
86 ClearColor(red, green, blue, alpha)
87         return          void
88         param           red             ClampedColorF in value
89         param           green           ClampedColorF in value
90         param           blue            ClampedColorF in value
91         param           alpha           ClampedColorF in value
92
93 ClearDepthf(depth)
94         return          void
95         param           depth           ClampedFloat32 in value
96
97 ClearStencil(s)
98         return          void
99         param           s               StencilValue in value
100
101 ColorMask(red, green, blue, alpha)
102         return          void
103         param           red             Boolean in value
104         param           green           Boolean in value
105         param           blue            Boolean in value
106         param           alpha           Boolean in value
107
108 CompileShader(shader)
109         return          void
110         param           shader          UInt32 in value
111
112 CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)
113         return          void
114         param           target          TextureTarget in value
115         param           level           CheckedInt32 in value
116         param           internalformat  PixelInternalFormat in value
117         param           width           SizeI in value
118         param           height          SizeI in value
119         param           border          CheckedInt32 in value
120         param           imageSize       SizeI in value
121         param           data            CompressedTexture in array [imageSize]
122
123 CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data)
124         return          void
125         param           target          TextureTarget in value
126         param           level           CheckedInt32 in value
127         param           xoffset         CheckedInt32 in value
128         param           yoffset         CheckedInt32 in value
129         param           width           SizeI in value
130         param           height          SizeI in value
131         param           format          PixelFormat in value
132         param           imageSize       SizeI in value
133         param           data            CompressedTexture in array [imageSize]
134
135 CopyTexImage2D(target, level, internalformat, x, y, width, height, border)
136         return          void
137         param           target          TextureTarget in value
138         param           level           CheckedInt32 in value
139         param           internalformat  PixelInternalFormat in value
140         param           x               WinCoord in value
141         param           y               WinCoord in value
142         param           width           SizeI in value
143         param           height          SizeI in value
144         param           border          CheckedInt32 in value
145
146 CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
147         return          void
148         param           target          TextureTarget in value
149         param           level           CheckedInt32 in value
150         param           xoffset         CheckedInt32 in value
151         param           yoffset         CheckedInt32 in value
152         param           x               WinCoord in value
153         param           y               WinCoord in value
154         param           width           SizeI in value
155         param           height          SizeI in value
156
157 CreateProgram()
158         return          UInt32
159
160 CreateShader(type)
161         return          UInt32
162         param           type            GLenum in value
163
164 CullFace(mode)
165         return          void
166         param           mode            CullFaceMode in value
167
168 DeleteBuffers(n, buffers)
169         return          void
170         param           n               SizeI in value
171         param           buffers         ConstUInt32 in array [n]
172
173 DeleteFramebuffers(n, framebuffers)
174         return          void
175         param           n               SizeI in value
176         param           framebuffers    UInt32 in array [n]
177
178 DeleteProgram(program)
179         return          void
180         param           program         UInt32 in value
181
182 DeleteRenderbuffers(n, renderbuffers)
183         return          void
184         param           n               SizeI in value
185         param           renderbuffers   UInt32 in array [n]
186
187 DeleteShader(shader)
188         return          void
189         param           shader          UInt32 in value
190
191 DeleteTextures(n, textures)
192         return          void
193         param           n               SizeI in value
194         param           textures        Texture in array [n]
195
196 DepthFunc(func)
197         return          void
198         param           func            DepthFunction in value
199
200 DepthMask(flag)
201         return          void
202         param           flag            Boolean in value
203
204 DepthRangef(near, far)
205         return          void
206         param           near            ClampedFloat32 in value
207         param           far             ClampedFloat32 in value
208
209 DetachShader(program, shader)
210         return          void
211         param           program         UInt32 in value
212         param           shader          UInt32 in value
213
214 Disable(cap)
215         return          void
216         param           cap             EnableCap in value
217
218 DisableVertexAttribArray(index)
219         return          void
220         param           index           UInt32 in value
221
222 DrawArrays(mode, first, count)
223         return          void
224         param           mode            BeginMode in value
225         param           first           Int32 in value
226         param           count           SizeI in value
227
228 DrawElements(mode, count, type, indices)
229         return          void
230         param           mode            BeginMode in value
231         param           count           SizeI in value
232         param           type            DrawElementsType in value
233         param           indices         Void in array [COMPSIZE(count/type)]
234
235 Enable(cap)
236         return          void
237         param           cap             EnableCap in value
238
239 EnableVertexAttribArray(index)
240         return          void
241         param           index           UInt32 in value
242
243 Finish()
244         return          void
245
246 Flush()
247         return          void
248
249 FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
250         return          void
251         param           target          FramebufferTarget in value
252         param           attachment      FramebufferAttachment in value
253         param           renderbuffertarget      RenderbufferTarget in value
254         param           renderbuffer    UInt32 in value
255
256 FramebufferTexture2D(target, attachment, textarget, texture, level)
257         return          void
258         param           target          FramebufferTarget in value
259         param           attachment      FramebufferAttachment in value
260         param           textarget       GLenum in value
261         param           texture         UInt32 in value
262         param           level           Int32 in value
263
264 FrontFace(mode)
265         return          void
266         param           mode            FrontFaceDirection in value
267
268 GenBuffers(n, buffers)
269         return          void
270         param           n               SizeI in value
271         param           buffers         UInt32 out array [n]
272
273 GenerateMipmap(target)
274         return          void
275         param           target          GLenum in value
276
277 GenFramebuffers(n, framebuffers)
278         return          void
279         param           n               SizeI in value
280         param           framebuffers    UInt32 out array [n]
281
282 GenRenderbuffers(n, renderbuffers)
283         return          void
284         param           n               SizeI in value
285         param           renderbuffers   UInt32 out array [n]
286
287 GenTextures(n, textures)
288         return          void
289         param           n               SizeI in value
290         param           textures        Texture out array [n]
291
292 GetActiveAttrib(program, index, bufSize, length, size, type, name)
293         return          void
294         param           program         UInt32 in value
295         param           index           UInt32 in value
296         param           bufSize         SizeI in value
297         param           length          SizeI out array [1]
298         param           size            Int32 out array [1]
299         param           type            GLenum out array [1]
300         param           name            Char out array []
301
302 GetActiveUniform(program, index, bufSize, length, size, type, name)
303         return          void
304         param           program         UInt32 in value
305         param           index           UInt32 in value
306         param           bufSize         SizeI in value
307         param           length          SizeI out array [1]
308         param           size            Int32 out array [1]
309         param           type            GLenum out array [1]
310         param           name            Char out array []
311
312 GetAttachedShaders(program, maxCount, count, obj)
313         return          void
314         param           program         UInt32 in value
315         param           maxCount        SizeI in value
316         param           count           SizeI out array [1]
317         param           obj             UInt32 out array [count]
318
319 GetAttribLocation(program, name)
320         return          Int32
321         param           program         UInt32 in value
322         param           name            Char in array []
323
324 GetBooleanv(pname, params)
325         return          void
326         param           pname           GetPName in value
327         param           params          Boolean out array [COMPSIZE(pname)]
328
329 GetBufferParameteriv(target, pname, params)
330         return          void
331         param           target          BufferTarget in value
332         param           pname           BufferPName in value
333         param           params          Int32 out array [COMPSIZE(pname)]
334
335 GetError()
336         return          ErrorCode
337
338 GetFloatv(pname, params)
339         return          void
340         param           pname           GetPName in value
341         param           params          Float32 out array [COMPSIZE(pname)]
342
343 GetFramebufferAttachmentParameteriv(target, attachment, pname, params)
344         return          void
345         param           target          FramebufferTarget in value
346         param           attachment      FramebufferAttachment in value
347         param           pname           GLenum in value
348         param           params          Int32 out array [COMPSIZE(pname)]
349
350 GetIntegerv(pname, params)
351         return          void
352         param           pname           GetPName in value
353         param           params          Int32 out array [COMPSIZE(pname)]
354
355 GetProgramiv(program, pname, params)
356         return          void
357         param           program         UInt32 in value
358         param           pname           GLenum in value
359         param           params          Int32 out array [pname]
360
361 GetProgramInfoLog(program, bufSize, length, infoLog)
362         return          void
363         param           program         UInt32 in value
364         param           bufSize         SizeI in value
365         param           length          SizeI out array [1]
366         param           infoLog         Char out array [length]
367
368 GetRenderbufferParameteriv(target, pname, params)
369         return          void
370         param           target          RenderbufferTarget in value
371         param           pname           GLenum in value
372         param           params          Int32 out array [COMPSIZE(pname)]
373
374 GetShaderiv(shader, pname, params)
375         return          void
376         param           shader          UInt32 in value
377         param           pname           GLenum in value
378         param           params          Int32 out array [pname]
379
380 GetShaderInfoLog(shader, bufSize, length, infoLog)
381         return          void
382         param           shader          UInt32 in value
383         param           bufSize         SizeI in value
384         param           length          SizeI out array [1]
385         param           infoLog         Char out array [length]
386
387 #GetShaderPrecisionFormat
388
389 GetShaderSource(shader, bufSize, length, source)
390         return          void
391         param           shader          UInt32 in value
392         param           bufSize         SizeI in value
393         param           length          SizeI out array [1]
394         param           source          Char out array [length]
395
396 GetString(name)
397         return          String
398         param           name            StringName in value
399
400 GetTexParameterfv(target, pname, params)
401         return          void
402         param           target          TextureTarget in value
403         param           pname           GetTextureParameter in value
404         param           params          Float32 out array [COMPSIZE(pname)]
405
406 GetTexParameteriv(target, pname, params)
407         return          void
408         param           target          TextureTarget in value
409         param           pname           GetTextureParameter in value
410         param           params          Int32 out array [COMPSIZE(pname)]
411
412 GetUniformfv(program, location, params)
413         return          void
414         param           program         UInt32 in value
415         param           location        Int32 in value
416         param           params          Float32 out array [location]
417
418 GetUniformiv(program, location, params)
419         return          void
420         param           program         UInt32 in value
421         param           location        Int32 in value
422         param           params          Int32 out array [location]
423
424 GetUniformLocation(program, name)
425         return          Int32
426         param           program         UInt32 in value
427         param           name            Char in array []
428
429 GetVertexAttribfv(index, pname, params)
430         return          void
431         param           index           UInt32 in value
432         param           pname           VertexAttribPropertyARB in value
433         param           params          Float32 out array [4]
434
435 GetVertexAttribiv(index, pname, params)
436         return          void
437         param           index           UInt32 in value
438         param           pname           VertexAttribPropertyARB in value
439         param           params          Int32 out array [4]
440
441 GetVertexAttribPointerv(index, pname, pointer)
442         return          void
443         param           index           UInt32 in value
444         param           pname           VertexAttribPointerPropertyARB in value
445         param           pointer         VoidPointer out array [1]
446
447 Hint(target, mode)
448         return          void
449         param           target          HintTarget in value
450         param           mode            HintMode in value
451
452 IsBuffer(buffer)
453         return          Boolean
454         param           buffer          UInt32 in value
455
456 IsEnabled(cap)
457         return          Boolean
458         param           cap             EnableCap in value
459
460 IsFramebuffer(framebuffer)
461         return          Boolean
462         param           framebuffer     UInt32 in value
463
464 IsProgram(program)
465         return          Boolean
466         param           program         UInt32 in value
467
468 IsRenderbuffer(renderbuffer)
469         return          Boolean
470         param           renderbuffer    UInt32 in value
471
472 IsShader(shader)
473         return          Boolean
474         param           shader          UInt32 in value
475
476 IsTexture(texture)
477         return          Boolean
478         param           texture         Texture in value
479
480 LineWidth(width)
481         return          void
482         param           width           CheckedFloat32 in value
483
484 LinkProgram(program)
485         return          void
486         param           program         UInt32 in value
487
488 PixelStorei(pname, param)
489         return          void
490         param           pname           PixelStoreParameter in value
491         param           param           CheckedInt32 in value
492
493 PolygonOffset(factor, units)
494         return          void
495         param           factor          Float32 in value
496         param           units           Float32 in value
497
498 ReadPixels(x, y, width, height, format, type, pixels)
499         return          void
500         param           x               WinCoord in value
501         param           y               WinCoord in value
502         param           width           SizeI in value
503         param           height          SizeI in value
504         param           format          PixelFormat in value
505         param           type            PixelType in value
506         param           pixels          Void out array [COMPSIZE(format/type/width/height)]
507
508 #ReleaseShaderCompiler
509
510 RenderbufferStorage(target, internalformat, width, height)
511         return          void
512         param           target          RenderbufferTarget in value
513         param           internalformat  GLenum in value
514         param           width           SizeI in value
515         param           height          SizeI in value
516
517 SampleCoverage(value, invert)
518         return          void
519         param           value           ClampedFloat32 in value
520         param           invert          Boolean in value
521
522 Scissor(x, y, width, height)
523         return          void
524         param           x               WinCoord in value
525         param           y               WinCoord in value
526         param           width           SizeI in value
527         param           height          SizeI in value
528
529 #ShaderBinary
530
531 ShaderSource(shader, count, string, length)
532         return          void
533         param           shader          UInt32 in value
534         param           count           SizeI in value
535         param           string          CharPointer in array [count]
536         param           length          Int32 in array [1]
537
538 StencilFunc(func, ref, mask)
539         return          void
540         param           func            StencilFunction in value
541         param           ref             ClampedStencilValue in value
542         param           mask            MaskedStencilValue in value
543
544 StencilFuncSeparate(frontfunc, backfunc, ref, mask)
545         return          void
546         param           frontfunc       StencilFunction in value
547         param           backfunc        StencilFunction in value
548         param           ref             ClampedStencilValue in value
549         param           mask            MaskedStencilValue in value
550
551 StencilMask(mask)
552         return          void
553         param           mask            MaskedStencilValue in value
554
555 StencilMaskSeparate(face, mask)
556         return          void
557         param           face            StencilFaceDirection in value
558         param           mask            MaskedStencilValue in value
559
560 StencilOp(fail, zfail, zpass)
561         return          void
562         param           fail            StencilOp in value
563         param           zfail           StencilOp in value
564         param           zpass           StencilOp in value
565
566 StencilOpSeparate(face, sfail, dpfail, dppass)
567         return          void
568         param           face            StencilFaceDirection in value
569         param           sfail           StencilOp in value
570         param           dpfail          StencilOp in value
571         param           dppass          StencilOp in value
572
573 TexImage2D(target, level, internalformat, width, height, border, format, type, pixels)
574         return          void
575         param           target          TextureTarget in value
576         param           level           CheckedInt32 in value
577         param           internalformat  TextureComponentCount in value
578         param           width           SizeI in value
579         param           height          SizeI in value
580         param           border          CheckedInt32 in value
581         param           format          PixelFormat in value
582         param           type            PixelType in value
583         param           pixels          Void in array [COMPSIZE(format/type/width/height)]
584
585 TexParameterf(target, pname, param)
586         return          void
587         param           target          TextureTarget in value
588         param           pname           TextureParameterName in value
589         param           param           CheckedFloat32 in value
590
591 TexParameterfv(target, pname, params)
592         return          void
593         param           target          TextureTarget in value
594         param           pname           TextureParameterName in value
595         param           params          CheckedFloat32 in array [COMPSIZE(pname)]
596
597 TexParameteri(target, pname, param)
598         return          void
599         param           target          TextureTarget in value
600         param           pname           TextureParameterName in value
601         param           param           CheckedInt32 in value
602
603 TexParameteriv(target, pname, params)
604         return          void
605         param           target          TextureTarget in value
606         param           pname           TextureParameterName in value
607         param           params          CheckedInt32 in array [COMPSIZE(pname)]
608
609 TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels)
610         return          void
611         param           target          TextureTarget in value
612         param           level           CheckedInt32 in value
613         param           xoffset         CheckedInt32 in value
614         param           yoffset         CheckedInt32 in value
615         param           width           SizeI in value
616         param           height          SizeI in value
617         param           format          PixelFormat in value
618         param           type            PixelType in value
619         param           pixels          Void in array [COMPSIZE(format/type/width/height)]
620
621 Uniform1f(location, v0)
622         return          void
623         param           location        Int32 in value
624         param           v0              Float32 in value
625
626 Uniform1fv(location, count, value)
627         return          void
628         param           location        Int32 in value
629         param           count           SizeI in value
630         param           value           Float32 in array [count]
631
632 Uniform1i(location, v0)
633         return          void
634         param           location        Int32 in value
635         param           v0              Int32 in value
636
637 Uniform1iv(location, count, value)
638         return          void
639         param           location        Int32 in value
640         param           count           SizeI in value
641         param           value           Int32 in array [count]
642
643 Uniform2f(location, v0, v1)
644         return          void
645         param           location        Int32 in value
646         param           v0              Float32 in value
647         param           v1              Float32 in value
648
649 Uniform2fv(location, count, value)
650         return          void
651         param           location        Int32 in value
652         param           count           SizeI in value
653         param           value           Float32 in array [count]
654
655 Uniform2i(location, v0, v1)
656         return          void
657         param           location        Int32 in value
658         param           v0              Int32 in value
659         param           v1              Int32 in value
660
661 Uniform2iv(location, count, value)
662         return          void
663         param           location        Int32 in value
664         param           count           SizeI in value
665         param           value           Int32 in array [count]
666
667 Uniform3f(location, v0, v1, v2)
668         return          void
669         param           location        Int32 in value
670         param           v0              Float32 in value
671         param           v1              Float32 in value
672         param           v2              Float32 in value
673
674 Uniform3fv(location, count, value)
675         return          void
676         param           location        Int32 in value
677         param           count           SizeI in value
678         param           value           Float32 in array [count]
679
680 Uniform3i(location, v0, v1, v2)
681         return          void
682         param           location        Int32 in value
683         param           v0              Int32 in value
684         param           v1              Int32 in value
685         param           v2              Int32 in value
686
687 Uniform3iv(location, count, value)
688         return          void
689         param           location        Int32 in value
690         param           count           SizeI in value
691         param           value           Int32 in array [count]
692
693 Uniform4f(location, v0, v1, v2, v3)
694         return          void
695         param           location        Int32 in value
696         param           v0              Float32 in value
697         param           v1              Float32 in value
698         param           v2              Float32 in value
699         param           v3              Float32 in value
700
701 Uniform4fv(location, count, value)
702         return          void
703         param           location        Int32 in value
704         param           count           SizeI in value
705         param           value           Float32 in array [count]
706
707 Uniform4i(location, v0, v1, v2, v3)
708         return          void
709         param           location        Int32 in value
710         param           v0              Int32 in value
711         param           v1              Int32 in value
712         param           v2              Int32 in value
713         param           v3              Int32 in value
714
715 Uniform4iv(location, count, value)
716         return          void
717         param           location        Int32 in value
718         param           count           SizeI in value
719         param           value           Int32 in array [count]
720
721 UniformMatrix2fv(location, count, transpose, value)
722         return          void
723         param           location        Int32 in value
724         param           count           SizeI in value
725         param           transpose       Boolean in value
726         param           value           Float32 in array [count]
727
728 UniformMatrix3fv(location, count, transpose, value)
729         return          void
730         param           location        Int32 in value
731         param           count           SizeI in value
732         param           transpose       Boolean in value
733         param           value           Float32 in array [count]
734
735 UniformMatrix4fv(location, count, transpose, value)
736         return          void
737         param           location        Int32 in value
738         param           count           SizeI in value
739         param           transpose       Boolean in value
740         param           value           Float32 in array [count]
741
742 UseProgram(program)
743         return          void
744         param           program         UInt32 in value
745
746 ValidateProgram(program)
747         return          void
748         param           program         UInt32 in value
749
750 VertexAttrib1f(index, x)
751         return          void
752         param           index           UInt32 in value
753         param           x               Float32 in value
754
755 VertexAttrib1fv(index, v)
756         return          void
757         param           index           UInt32 in value
758         param           v               Float32 in array [1]
759
760 VertexAttrib2f(index, x, y)
761         return          void
762         param           index           UInt32 in value
763         param           x               Float32 in value
764         param           y               Float32 in value
765
766 VertexAttrib2fv(index, v)
767         return          void
768         param           index           UInt32 in value
769         param           v               Float32 in array [2]
770
771 VertexAttrib3f(index, x, y, z)
772         return          void
773         param           index           UInt32 in value
774         param           x               Float32 in value
775         param           y               Float32 in value
776         param           z               Float32 in value
777
778 VertexAttrib3fv(index, v)
779         return          void
780         param           index           UInt32 in value
781         param           v               Float32 in array [3]
782
783 VertexAttrib4f(index, x, y, z, w)
784         return          void
785         param           index           UInt32 in value
786         param           x               Float32 in value
787         param           y               Float32 in value
788         param           z               Float32 in value
789         param           w               Float32 in value
790
791 VertexAttrib4fv(index, v)
792         return          void
793         param           index           UInt32 in value
794         param           v               Float32 in array [4]
795
796 VertexAttribPointer(index, size, type, normalized, stride, pointer)
797         return          void
798         param           index           UInt32 in value
799         param           size            Int32 in value
800         param           type            VertexAttribPointerTypeARB in value
801         param           normalized      Boolean in value
802         param           stride          SizeI in value
803         param           pointer         Void in array [COMPSIZE(size/type/stride)] retained
804
805 Viewport(x, y, width, height)
806         return          void
807         param           x               WinCoord in value
808         param           y               WinCoord in value
809         param           width           SizeI in value
810         param           height          SizeI in value