rev: release-0.15 scopes/doc/module-glsl.rst -rw-r--r-- 8.4 KiB View raw Log this file
e53de6d7cb89 — Leonard Ritter * win32 build fix 1 year, 5 months ago
                                                                                
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
glsl
====

The `glsl` module exports bridge symbols that make it possible to define
and access external variables for shader programs.

.. type:: gsampler

   An opaque type.

.. type:: gsampler1D

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsampler1DArray

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsampler2D

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsampler2DArray

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsampler2DMS

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsampler2DMSArray

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsampler2DRect

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsampler3D

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsamplerBuffer

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsamplerCube

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: gsamplerCubeArray

   An opaque type of supertype `gsampler`.

   .. builtin:: (texture-levels ...)
   .. builtin:: (texture-samples ...)
.. type:: isampler1D

   A plain type of supertype `gsampler1D$3` and of storage type `<SampledImage <Image ivec4 '1D sampled 'Unknown>>`.

.. type:: isampler1DArray

   A plain type of supertype `gsampler1DArray$3` and of storage type `<SampledImage <Image ivec4 '1D array sampled 'Unknown>>`.

.. type:: isampler2D

   A plain type of supertype `gsampler2D$3` and of storage type `<SampledImage <Image ivec4 '2D sampled 'Unknown>>`.

.. type:: isampler2DArray

   A plain type of supertype `gsampler2DArray$3` and of storage type `<SampledImage <Image ivec4 '2D array sampled 'Unknown>>`.

.. type:: isampler2DMS

   A plain type of supertype `gsampler2DMS$3` and of storage type `<SampledImage <Image ivec4 '2D ms sampled 'Unknown>>`.

.. type:: isampler2DMSArray

   A plain type of supertype `gsampler2DMSArray$3` and of storage type `<SampledImage <Image ivec4 '2D array ms sampled 'Unknown>>`.

.. type:: isampler2DRect

   A plain type of supertype `gsampler2DRect$3` and of storage type `<SampledImage <Image ivec4 'Rect sampled 'Unknown>>`.

.. type:: isampler3D

   A plain type of supertype `gsampler3D$3` and of storage type `<SampledImage <Image ivec4 '3D sampled 'Unknown>>`.

.. type:: isamplerBuffer

   A plain type of supertype `gsamplerBuffer$3` and of storage type `<SampledImage <Image ivec4 'Buffer sampled 'Unknown>>`.

.. type:: isamplerCube

   A plain type of supertype `gsamplerCube$3` and of storage type `<SampledImage <Image ivec4 'Cube sampled 'Unknown>>`.

.. type:: isamplerCubeArray

   A plain type of supertype `gsamplerCubeArray$3` and of storage type `<SampledImage <Image ivec4 'Cube array sampled 'Unknown>>`.

.. type:: sampler1D

   A plain type of supertype `gsampler1D$2` and of storage type `<SampledImage <Image vec4 '1D sampled 'Unknown>>`.

.. type:: sampler1DArray

   A plain type of supertype `gsampler1DArray$2` and of storage type `<SampledImage <Image vec4 '1D array sampled 'Unknown>>`.

.. type:: sampler2D

   A plain type of supertype `gsampler2D$2` and of storage type `<SampledImage <Image vec4 '2D sampled 'Unknown>>`.

.. type:: sampler2DArray

   A plain type of supertype `gsampler2DArray$2` and of storage type `<SampledImage <Image vec4 '2D array sampled 'Unknown>>`.

.. type:: sampler2DMS

   A plain type of supertype `gsampler2DMS$2` and of storage type `<SampledImage <Image vec4 '2D ms sampled 'Unknown>>`.

.. type:: sampler2DMSArray

   A plain type of supertype `gsampler2DMSArray$2` and of storage type `<SampledImage <Image vec4 '2D array ms sampled 'Unknown>>`.

.. type:: sampler2DRect

   A plain type of supertype `gsampler2DRect$2` and of storage type `<SampledImage <Image vec4 'Rect sampled 'Unknown>>`.

.. type:: sampler3D

   A plain type of supertype `gsampler3D$2` and of storage type `<SampledImage <Image vec4 '3D sampled 'Unknown>>`.

.. type:: samplerBuffer

   A plain type of supertype `gsamplerBuffer$2` and of storage type `<SampledImage <Image vec4 'Buffer sampled 'Unknown>>`.

.. type:: samplerCube

   A plain type of supertype `gsamplerCube$2` and of storage type `<SampledImage <Image vec4 'Cube sampled 'Unknown>>`.

.. type:: samplerCubeArray

   A plain type of supertype `gsamplerCubeArray$2` and of storage type `<SampledImage <Image vec4 'Cube array sampled 'Unknown>>`.

.. type:: usampler1D

   A plain type of supertype `gsampler1D$4` and of storage type `<SampledImage <Image uvec4 '1D sampled 'Unknown>>`.

.. type:: usampler1DArray

   A plain type of supertype `gsampler1DArray$4` and of storage type `<SampledImage <Image uvec4 '1D array sampled 'Unknown>>`.

.. type:: usampler2D

   A plain type of supertype `gsampler2D$4` and of storage type `<SampledImage <Image uvec4 '2D sampled 'Unknown>>`.

.. type:: usampler2DArray

   A plain type of supertype `gsampler2DArray$4` and of storage type `<SampledImage <Image uvec4 '2D array sampled 'Unknown>>`.

.. type:: usampler2DMS

   A plain type of supertype `gsampler2DMS$4` and of storage type `<SampledImage <Image uvec4 '2D ms sampled 'Unknown>>`.

.. type:: usampler2DMSArray

   A plain type of supertype `gsampler2DMSArray$4` and of storage type `<SampledImage <Image uvec4 '2D array ms sampled 'Unknown>>`.

.. type:: usampler2DRect

   A plain type of supertype `gsampler2DRect$4` and of storage type `<SampledImage <Image uvec4 'Rect sampled 'Unknown>>`.

.. type:: usampler3D

   A plain type of supertype `gsampler3D$4` and of storage type `<SampledImage <Image uvec4 '3D sampled 'Unknown>>`.

.. type:: usamplerBuffer

   A plain type of supertype `gsamplerBuffer$4` and of storage type `<SampledImage <Image uvec4 'Buffer sampled 'Unknown>>`.

.. type:: usamplerCube

   A plain type of supertype `gsamplerCube$4` and of storage type `<SampledImage <Image uvec4 'Cube sampled 'Unknown>>`.

.. type:: usamplerCubeArray

   A plain type of supertype `gsamplerCubeArray$4` and of storage type `<SampledImage <Image uvec4 'Cube array sampled 'Unknown>>`.

.. inline:: (iimage1D format)
.. inline:: (iimage1DArray format)
.. inline:: (iimage2D format)
.. inline:: (iimage2DArray format)
.. inline:: (iimage2DMS format)
.. inline:: (iimage2DMSArray format)
.. inline:: (iimage2DRect format)
.. inline:: (iimage3D format)
.. inline:: (iimageBuffer format)
.. inline:: (iimageCube format)
.. inline:: (iimageCubeArray format)
.. inline:: (image1D format)
.. inline:: (image1DArray format)
.. inline:: (image2D format)
.. inline:: (image2DArray format)
.. inline:: (image2DMS format)
.. inline:: (image2DMSArray format)
.. inline:: (image2DRect format)
.. inline:: (image3D format)
.. inline:: (imageBuffer format)
.. inline:: (imageCube format)
.. inline:: (imageCubeArray format)
.. inline:: (imageLoad image coord)
.. inline:: (imageStore image coord data)
.. inline:: (local_size x y z)
.. inline:: (texelFetch sampler P ...)
.. inline:: (texelFetchOffset sampler P lod offset)
.. inline:: (texture sampler P ...)
.. inline:: (textureGather sampler P ...)
.. inline:: (textureLod sampler P lod)
.. inline:: (textureOffset sampler P offset ...)
.. inline:: (textureProj sampler P ...)
.. inline:: (textureQueryLevels sampler)
.. inline:: (textureQueryLod sampler P)
.. inline:: (textureSamples sampler)
.. inline:: (textureSize sampler ...)
.. inline:: (uimage1D format)
.. inline:: (uimage1DArray format)
.. inline:: (uimage2D format)
.. inline:: (uimage2DArray format)
.. inline:: (uimage2DMS format)
.. inline:: (uimage2DMSArray format)
.. inline:: (uimage2DRect format)
.. inline:: (uimage3D format)
.. inline:: (uimageBuffer format)
.. inline:: (uimageCube format)
.. inline:: (uimageCubeArray format)
.. sugar:: (buffer ...)
.. sugar:: (in ...)
.. sugar:: (inout ...)
.. sugar:: (out ...)
.. sugar:: (uniform ...)
.. compiledfn:: (packHalf2x16 ...)

   An external function of type ``u32<-(vec2)``.
.. compiledfn:: (unpackHalf2x16 ...)

   An external function of type ``vec2<-(u32)``.