File: glGetActiveUniformsiv.xml

package info (click to toggle)
khronos-opengl-man4 1.0~svn27841-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 24,888 kB
  • ctags: 377
  • sloc: xml: 188,408; makefile: 1,153; python: 736; sh: 49; php: 7; sed: 2
file content (824 lines) | stat: -rw-r--r-- 35,963 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
          "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
<refentry id="glGetActiveUniformsiv">
    <refentryinfo>
        <copyright>
            <year>2011-2013</year>
            <holder>Khronos Group</holder>
        </copyright>
    </refentryinfo>
    <refmeta>
        <refentrytitle>glGetActiveUniformsiv</refentrytitle>
        <manvolnum>3G</manvolnum>
    </refmeta>
    <refnamediv>
        <refname>glGetActiveUniformsiv</refname>
        <refpurpose>Returns information about several active uniform variables for the specified program object</refpurpose>
    </refnamediv>
    <refsynopsisdiv><title>C Specification</title>
    <funcsynopsis>
        <funcprototype>
        <funcdef>void <function>glGetActiveUniformsiv</function></funcdef>
        <paramdef>GLuint <parameter>program</parameter></paramdef>
        <paramdef>GLsizei <parameter>uniformCount</parameter></paramdef>
        <paramdef>const GLuint *<parameter>uniformIndices</parameter></paramdef>
        <paramdef>GLenum <parameter>pname</parameter></paramdef>
        <paramdef>GLint *<parameter>params</parameter></paramdef>
        </funcprototype>
    </funcsynopsis>
    </refsynopsisdiv>
    <refsect1 id="parameters"><title>Parameters</title>
    <variablelist>
        <varlistentry>
        <term><parameter>program</parameter></term>
        <listitem>
            <para>Specifies the program object to be queried.</para>
        </listitem>
        </varlistentry>
        <varlistentry>
        <term><parameter>uniformCount</parameter></term>
        <listitem>
            <para>Specifies both the number of elements in the array of
            indices <parameter>uniformIndices</parameter> and the number of
            parameters written to <parameter>params</parameter> upon
            successful return.</para>
        </listitem>
        </varlistentry>
        <varlistentry>
        <term><parameter>uniformIndices</parameter></term>
        <listitem>
            <para>Specifies the address of an array of
            <parameter>uniformCount</parameter> integers containing the
            indices of uniforms within <parameter>program</parameter> whose
            parameter <parameter>pname</parameter> should be queried.</para>
        </listitem>
        </varlistentry>
        <varlistentry>
        <term><parameter>pname</parameter></term>
        <listitem>
            <para>Specifies the property of each uniform in
            <parameter>uniformIndices</parameter> that should be written
            into the corresponding element of
            <parameter>params</parameter>.</para>
        </listitem>
        </varlistentry>
        <varlistentry>
        <term><parameter>params</parameter></term>
        <listitem>
            <para>Specifies the address of an array of
            <parameter>uniformCount</parameter> integers which are to
            receive the value of <parameter>pname</parameter> for each
            uniform in <parameter>uniformIndices</parameter>.</para>
        </listitem>
        </varlistentry>
    </variablelist>
    </refsect1>
    <refsect1 id="description"><title>Description</title>
        <para>
            <function>glGetActiveUniformsiv</function> queries the value of
            the parameter named <parameter>pname</parameter> for each of the
            uniforms within <parameter>program</parameter> whose indices are
            specified in the array of <parameter>uniformCount</parameter>
            unsigned integers <parameter>uniformIndices</parameter>. Upon
            success, the value of the parameter for each uniform is written
            into the corresponding entry in the array whose address is given
            in <parameter>params</parameter>. If an error is generated,
            nothing is written into <parameter>params</parameter>.
        </para>
        <para>
            If <parameter>pname</parameter> is
            <constant>GL_UNIFORM_TYPE</constant>, then an array identifying
            the types of uniforms specified by the corresponding array of
            <parameter>uniformIndices</parameter> is returned. The returned
            types can be any of the values from the following table:
        <informaltable>
            <tgroup cols="2" align="left">
                <colspec colwidth="1.1*" />
                <colspec colwidth="1*" />
                <thead>
                    <row>
                        <entry>
                            <emphasis role="bold"> Returned Symbolic Contant </emphasis>
                        </entry>
                        <entry>
                            <emphasis role="bold"> Shader Uniform Type </emphasis>
                        </entry>
                    </row>
                </thead>
                <tbody>
                    <row>
                        <entry>
                            <constant>GL_FLOAT</constant>
                        </entry>
                        <entry>
                            <constant>float</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_VEC2</constant>
                        </entry>
                        <entry>
                            <constant>vec2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_VEC3</constant>
                        </entry>
                        <entry>
                            <constant>vec3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_VEC4</constant>
                        </entry>
                        <entry>
                            <constant>vec4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE</constant>
                        </entry>
                        <entry>
                            <constant>double</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_VEC2</constant>
                        </entry>
                        <entry>
                            <constant>dvec2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_VEC3</constant>
                        </entry>
                        <entry>
                            <constant>dvec3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_VEC4</constant>
                        </entry>
                        <entry>
                            <constant>dvec4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT</constant>
                        </entry>
                        <entry>
                            <constant>int</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_VEC2</constant>
                        </entry>
                        <entry>
                            <constant>ivec2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_VEC3</constant>
                        </entry>
                        <entry>
                            <constant>ivec3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_VEC4</constant>
                        </entry>
                        <entry>
                            <constant>ivec4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT</constant>
                        </entry>
                        <entry>
                            <constant>unsigned int</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_VEC2</constant>
                        </entry>
                        <entry>
                            <constant>uvec2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_VEC3</constant>
                        </entry>
                        <entry>
                            <constant>uvec3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_VEC4</constant>
                        </entry>
                        <entry>
                            <constant>uvec4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_BOOL</constant>
                        </entry>
                        <entry>
                            <constant>bool</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_BOOL_VEC2</constant>
                        </entry>
                        <entry>
                            <constant>bvec2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_BOOL_VEC3</constant>
                        </entry>
                        <entry>
                            <constant>bvec3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_BOOL_VEC4</constant>
                        </entry>
                        <entry>
                            <constant>bvec4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT2</constant>
                        </entry>
                        <entry>
                            <constant>mat2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT3</constant>
                        </entry>
                        <entry>
                            <constant>mat3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT4</constant>
                        </entry>
                        <entry>
                            <constant>mat4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT2x3</constant>
                        </entry>
                        <entry>
                            <constant>mat2x3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT2x4</constant>
                        </entry>
                        <entry>
                            <constant>mat2x4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT3x2</constant>
                        </entry>
                        <entry>
                            <constant>mat3x2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT3x4</constant>
                        </entry>
                        <entry>
                            <constant>mat3x4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT4x2</constant>
                        </entry>
                        <entry>
                            <constant>mat4x2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_FLOAT_MAT4x3</constant>
                        </entry>
                        <entry>
                            <constant>mat4x3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT2</constant>
                        </entry>
                        <entry>
                            <constant>dmat2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT3</constant>
                        </entry>
                        <entry>
                            <constant>dmat3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT4</constant>
                        </entry>
                        <entry>
                            <constant>dmat4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT2x3</constant>
                        </entry>
                        <entry>
                            <constant>dmat2x3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT2x4</constant>
                        </entry>
                        <entry>
                            <constant>dmat2x4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT3x2</constant>
                        </entry>
                        <entry>
                            <constant>dmat3x2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT3x4</constant>
                        </entry>
                        <entry>
                            <constant>dmat3x4</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT4x2</constant>
                        </entry>
                        <entry>
                            <constant>dmat4x2</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_DOUBLE_MAT4x3</constant>
                        </entry>
                        <entry>
                            <constant>dmat4x3</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_1D</constant>
                        </entry>
                        <entry>
                            <constant>sampler1D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_2D</constant>
                        </entry>
                        <entry>
                            <constant>sampler2D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_3D</constant>
                        </entry>
                        <entry>
                            <constant>sampler3D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_CUBE</constant>
                        </entry>
                        <entry>
                            <constant>samplerCube</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_1D_SHADOW</constant>
                        </entry>
                        <entry>
                            <constant>sampler1DShadow</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_2D_SHADOW</constant>
                        </entry>
                        <entry>
                            <constant>sampler2DShadow</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_1D_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>sampler1DArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_2D_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>sampler2DArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_1D_ARRAY_SHADOW</constant>
                        </entry>
                        <entry>
                            <constant>sampler1DArrayShadow</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_2D_ARRAY_SHADOW</constant>
                        </entry>
                        <entry>
                            <constant>sampler2DArrayShadow</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_2D_MULTISAMPLE</constant>
                        </entry>
                        <entry>
                            <constant>sampler2DMS</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_2D_MULTISAMPLE_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>sampler2DMSArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_CUBE_SHADOW</constant>
                        </entry>
                        <entry>
                            <constant>samplerCubeShadow</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_BUFFER</constant>
                        </entry>
                        <entry>
                            <constant>samplerBuffer</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_2D_RECT</constant>
                        </entry>
                        <entry>
                            <constant>sampler2DRect</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_SAMPLER_2D_RECT_SHADOW</constant>
                        </entry>
                        <entry>
                            <constant>sampler2DRectShadow</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_1D</constant>
                        </entry>
                        <entry>
                            <constant>isampler1D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_2D</constant>
                        </entry>
                        <entry>
                            <constant>isampler2D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_3D</constant>
                        </entry>
                        <entry>
                            <constant>isampler3D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_CUBE</constant>
                        </entry>
                        <entry>
                            <constant>isamplerCube</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_1D_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>isampler1DArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_2D_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>isampler2DArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_2D_MULTISAMPLE</constant>
                        </entry>
                        <entry>
                            <constant>isampler2DMS</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>isampler2DMSArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_BUFFER</constant>
                        </entry>
                        <entry>
                            <constant>isamplerBuffer</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_INT_SAMPLER_2D_RECT</constant>
                        </entry>
                        <entry>
                            <constant>isampler2DRect</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_1D</constant>
                        </entry>
                        <entry>
                            <constant>usampler1D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_2D</constant>
                        </entry>
                        <entry>
                            <constant>usampler2D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_3D</constant>
                        </entry>
                        <entry>
                            <constant>usampler3D</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_CUBE</constant>
                        </entry>
                        <entry>
                            <constant>usamplerCube</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_1D_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>usampler2DArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_2D_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>usampler2DArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE</constant>
                        </entry>
                        <entry>
                            <constant>usampler2DMS</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY</constant>
                        </entry>
                        <entry>
                            <constant>usampler2DMSArray</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_BUFFER</constant>
                        </entry>
                        <entry>
                            <constant>usamplerBuffer</constant>
                        </entry>
                    </row>
                    <row>
                        <entry>
                            <constant>GL_UNSIGNED_INT_SAMPLER_2D_RECT</constant>
                        </entry>
                        <entry>
                            <constant>usampler2DRect</constant>
                        </entry>
                    </row>
                </tbody>
            </tgroup>
        </informaltable>
        </para>
        <para>
            If <parameter>pname</parameter> is <constant>GL_UNIFORM_SIZE</constant>, then an array identifying the
            size of the uniforms specified by the corresponding array of <parameter>uniformIndices</parameter> is
            returned. The sizes returned are in units of the type returned by a query of <constant>GL_UNIFORM_TYPE</constant>.
            For active uniforms that are arrays, the size is the number of active elements in the array;
            for all other uniforms, the size is one.
        </para>
        <para>
            If <parameter>pname</parameter> is <constant>GL_UNIFORM_NAME_LENGTH</constant>, then an array identifying the
            length, including the terminating null character, of the uniform name strings specified by the corresponding
            array of <parameter>uniformIndices</parameter> is returned.
        </para>
        <para>
            If <parameter>pname</parameter> is <constant>GL_UNIFORM_BLOCK_INDEX</constant>, then an array identifying the
            the uniform block index of each of the uniforms specified by the corresponding array of <parameter>uniformIndices</parameter>
            is returned. The uniform block index of a uniform associated with the default uniform block is -1.
        </para>
        <para>
            If <parameter>pname</parameter> is <constant>GL_UNIFORM_OFFSET</constant>, then an array of uniform buffer
            offsets is returned. For uniforms in a named uniform block, the returned value will be its offset, in basic
            machine units, relative to the beginning of the uniform block in the buffer object data store.
            For atomic counter uniforms, the returned value will be its offset relative to the beginning of its active
            atomic counter buffer.
            For all other uniforms, -1 will be returned.
        </para>
        <para>
            If <parameter>pname</parameter> is <constant>GL_UNIFORM_ARRAY_STRIDE</constant>, then an array identifying the
            stride between elements of each of the uniforms specified by the corresponding array of
            <parameter>uniformIndices</parameter> is returned.
            For uniforms in named uniform blocks and for uniforms declared as atomic counters, the stride is the difference,
            in basic machine units, of consecutive elements in an array, or zero for uniforms not declared as an array.
            For all other uniforms, a stride of -1 will be returned.
        </para>
        <para>
            If <parameter>pname</parameter> is <constant>GL_UNIFORM_MATRIX_STRIDE</constant>, then an array identifying the stride
            between columns of a column-major matrix or rows of a row-major matrix, in basic machine units, of each of the uniforms
            specified by the corresponding array of <parameter>uniformIndices</parameter> is returned. The matrix stride of a
            uniform associated with the default uniform block is -1. Note that this information only makes sense for uniforms
            that are matrices. For uniforms that are not matrices, but are declared in a named uniform block, a matrix stride of
            zero is returned.
        </para>
        <para>
            If <parameter>pname</parameter> is <constant>GL_UNIFORM_IS_ROW_MAJOR</constant>, then an array identifying whether each
            of the uniforms specified by the corresponding array of <parameter>uniformIndices</parameter> is a row-major matrix or not is returned. A
            value of one indicates a row-major matrix, and a value of zero indicates a column-major matrix, a matrix in the default
            uniform block, or a non-matrix.
        </para>
        <para>
            If <parameter>pname</parameter> is <constant>GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX</constant>, then an array
            identifying the active atomic counter buffer index of each of the uniforms specified by the corresponding array
            of <parameter>uniformIndices</parameter> is returned. For uniforms other than atomic counters, the returned buffer
            index is -1. The returned indices may be passed to <citerefentry><refentrytitle>glGetActiveAtomicCounterBufferiv</refentrytitle></citerefentry>
            to query the properties of the associated buffer, and not necessarily the binding point specified in the uniform declaration.
        </para>
    </refsect1>
    <refsect1 id="notes"><title>Notes</title>
        <para>
            The double types, <constant>GL_DOUBLE</constant>, <constant>GL_DOUBLE_VEC2</constant>,
            <constant>GL_DOUBLE_VEC3</constant>, <constant>GL_DOUBLE_VEC4</constant>,
            <constant>GL_DOUBLE_MAT2</constant>, <constant>GL_DOUBLE_MAT3</constant>,
            <constant>GL_DOUBLE_MAT4</constant>, <constant>GL_DOUBLE_MAT2x3</constant>,
            <constant>GL_DOUBLE_MAT2x4</constant>, <constant>GL_DOUBLE_MAT3x2</constant>,
            <constant>GL_DOUBLE_MAT3x4</constant>, <constant>GL_DOUBLE_MAT4x2</constant>,
            and <constant>GL_DOUBLE_MAT4x3</constant> are only available if the GL
            version is 4.1 or higher.
        </para>
        <para>
            <constant>GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX</constant> is only accepted by <parameter>pname</parameter>
            if the GL version is 4.2 or higher.
        </para>
    </refsect1>
    <refsect1 id="errors"><title>Errors</title>
    <para><constant>GL_INVALID_VALUE</constant> is generated if
    <parameter>program</parameter> is not a value generated by
    OpenGL.</para>

    <para><constant>GL_INVALID_OPERATION</constant> is generated if
    <parameter>program</parameter> is not a program object.</para>

    <para><constant>GL_INVALID_VALUE</constant> is generated if
    <parameter>uniformCount</parameter> is greater than or equal to the
    value of <constant>GL_ACTIVE_UNIFORMS</constant> for
    <parameter>program</parameter>.</para>

    <para><constant>GL_INVALID_ENUM</constant> is generated if <parameter>pname</parameter>
    is not an accepted token.</para>
    </refsect1>
    <refsect1 id="associatedgets"><title>Associated Gets</title>
    <para><citerefentry><refentrytitle>glGet</refentrytitle></citerefentry>
    with argument <constant>GL_MAX_VERTEX_UNIFORM_COMPONENTS</constant>,
    <constant>GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS</constant>,
    <constant>GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS</constant>,
    <constant>GL_MAX_GEOMETRY_UNIFORM_COMPONENTS</constant>,
    <constant>GL_MAX_FRAGMENT_UNIFORM_COMPONENTS</constant>, or
    <constant>GL_MAX_COMBINED_UNIFORM_COMPONENTS</constant>.</para>

    <para><citerefentry><refentrytitle>glGetProgram</refentrytitle></citerefentry>
    with argument <constant>GL_ACTIVE_UNIFORMS</constant> or
    <constant>GL_ACTIVE_UNIFORM_MAX_LENGTH</constant>.</para>

    <para><citerefentry><refentrytitle>glIsProgram</refentrytitle></citerefentry></para>
    </refsect1>
    <refsect1 id="seealso"><title>See Also</title>
    <para><citerefentry><refentrytitle>glGetUniform</refentrytitle></citerefentry>,
    <citerefentry><refentrytitle>glGetActiveUniform</refentrytitle></citerefentry>,
    <citerefentry><refentrytitle>glGetUniformLocation</refentrytitle></citerefentry>,
    <citerefentry><refentrytitle>glLinkProgram</refentrytitle></citerefentry>,
    <citerefentry><refentrytitle>glUniform</refentrytitle></citerefentry>,
    <citerefentry><refentrytitle>glUseProgram</refentrytitle></citerefentry></para>
    </refsect1>
    <refsect1 id="Copyright"><title>Copyright</title>
        <para>
            Copyright <trademark class="copyright"></trademark> 2011-2013 Khronos Group
            This material may be distributed subject to the terms and conditions set forth in
            the Open Publication License, v 1.0, 8 June 1999.
            <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.
        </para>
    </refsect1>
</refentry>