rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man4 / glShaderStorageBlockBinding.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="glShaderStorageBlockBinding">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2012</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>glShaderStorageBlockBinding</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glShaderStorageBlockBinding</refname>\r
17 <refpurpose>change an active shader storage block binding</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>glShaderStorageBlockBinding</function></funcdef>\r
23 <paramdef>GLuint <parameter>program</parameter></paramdef>\r
24 <paramdef>GLuint <parameter>storageBlockIndex</parameter></paramdef>\r
25 <paramdef>GLuint <parameter>storageBlockBinding</parameter></paramdef>\r
26 </funcprototype>\r
27 </funcsynopsis>\r
28 </refsynopsisdiv>\r
29 <refsect1 id="parameters"><title>Parameters</title>\r
30 <variablelist>\r
31 <varlistentry>\r
32 <term><parameter>program</parameter></term>\r
33 <listitem>\r
34 <para>\r
35 The name of the program containing the block whose binding to change.\r
36 </para>\r
37 </listitem>\r
38 </varlistentry>\r
39 <varlistentry>\r
40 <term><parameter>storageBlockIndex</parameter></term>\r
41 <listitem>\r
42 <para>\r
43 The index storage block within the program.\r
44 </para>\r
45 </listitem>\r
46 </varlistentry>\r
47 <varlistentry>\r
48 <term><parameter>storageBlockBinding</parameter></term>\r
49 <listitem>\r
50 <para>\r
51 The index storage block binding to associate with the specified storage block.\r
52 </para>\r
53 </listitem>\r
54 </varlistentry>\r
55 </variablelist>\r
56 </refsect1>\r
57 <refsect1 id="description"><title>Description</title>\r
58 <para>\r
59 <function>glShaderStorageBlockBinding</function>, changes the active\r
60 shader storage block with an assigned index of <parameter>storageBlockIndex</parameter>\r
61 in program object <parameter>program</parameter>. <parameter>storageBlockIndex</parameter> must be an active shader storage block\r
62 index in <parameter>program</parameter>. <parameter>storageBlockBinding</parameter> must be less than the value of <constant>GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS</constant>.\r
63 If successful, <function>glShaderStorageBinding</function> specifies that <parameter>program</parameter> will use the data store of\r
64 the buffer object bound to the binding point <parameter>storageBlockBinding</parameter> to read\r
65 and write the values of the buffer variables in the shader storage block identified by <parameter>storageBlockIndex</parameter>.\r
66 </para>\r
67 </refsect1>\r
68 <refsect1 id="errors"><title>Errors</title>\r
69 <para>\r
70 <constant>GL_INVALID_VALUE</constant> is generated if <parameter>attribindex</parameter> is greater than\r
71 or equal to the value of <constant>GL_MAX_VERTEX_ATTRIBS</constant>.\r
72 </para>\r
73 <para>\r
74 <constant>GL_INVAILD_VALUE</constant> is generated if <parameter>bindingindex</parameter> is greater than\r
75 or equal to the value of <constant>GL_MAX_VERTEX_ATTRIB_BINDINGS</constant>.\r
76 </para>\r
77 <para>\r
78 <constant>GL_INVALID_OPERATION</constant> is generated if no vertex array object is bound.\r
79 </para>\r
80 </refsect1>\r
81 <refsect1 id="associatedgets"><title>Associated Gets</title>\r
82 <para>\r
83 <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with arguments <constant>GL_SHADER_STORAGE_BUFFER_BINDING</constant>,\r
84 <constant>GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS</constant>, <constant>GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS</constant>,\r
85 <constant>GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS</constant>, <constant>GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS</constant>,\r
86 <constant>GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS</constant>, <constant>GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS</constant>,\r
87 <constant>GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS</constant> or <constant>GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS</constant>,\r
88 <constant>GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS</constant>, or <constant>GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES</constant>.\r
89 </para>\r
90 </refsect1>\r
91 <refsect1 id="Copyright"><title>Copyright</title>\r
92 <para>\r
93 Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r
94 This material may be distributed subject to the terms and conditions set forth in \r
95 the Open Publication License, v 1.0, 8 June 1999.\r
96 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
97 </para>\r
98 </refsect1>\r
99</refentry>\r