blob: aab9930fc906e4ec044de1e32a9e41ab434edb17 [file] [log] [blame]
ethannicholasb3058bd2016-07-01 08:22:01 -07001STRINGIFY(
2
3// defines built-in functions supported by SkiaSL
4
5$genType radians($genType degrees);
6$genType sin($genType angle);
7$genType cos($genType angle);
8$genType tan($genType angle);
9$genType asin($genType x);
10$genType acos($genType x);
11$genType atan($genType y, $genType x);
12$genType atan($genType y_over_x);
13$genType sinh($genType x);
14$genType cosh($genType x);
15$genType tanh($genType x);
16$genType asinh($genType x);
17$genType acosh($genType x);
18$genType atanh($genType x);
19$genType pow($genType x, $genType y);
20$genType exp($genType x);
21$genType log($genType x);
22$genType exp2($genType x);
23$genType log2($genType x);
24$genType sqrt($genType x);
ethannicholas471e8942016-10-28 09:02:46 -070025//$genDType sqrt($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070026$genType inversesqrt($genType x);
ethannicholas471e8942016-10-28 09:02:46 -070027//$genDType inversesqrt($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070028$genType abs($genType x);
29$genIType abs($genIType x);
ethannicholas471e8942016-10-28 09:02:46 -070030//$genDType abs($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070031$genType sign($genType x);
32$genIType sign($genIType x);
ethannicholas471e8942016-10-28 09:02:46 -070033//$genDType sign($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070034$genType floor($genType x);
ethannicholas471e8942016-10-28 09:02:46 -070035//$genDType floor($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070036$genType trunc($genType x);
ethannicholas471e8942016-10-28 09:02:46 -070037//$genDType trunc($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070038$genType round($genType x);
ethannicholas471e8942016-10-28 09:02:46 -070039//$genDType round($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070040$genType roundEven($genType x);
ethannicholas471e8942016-10-28 09:02:46 -070041//$genDType roundEven($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070042$genType ceil($genType x);
ethannicholas471e8942016-10-28 09:02:46 -070043//$genDType ceil($genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070044$genType fract($genType x);
ethannicholas471e8942016-10-28 09:02:46 -070045//$genDType fract($genDType x);
Ethan Nicholasf7b88202017-09-18 14:10:39 -040046$genType mod($genType x, highfloat y);
ethannicholasb3058bd2016-07-01 08:22:01 -070047$genType mod($genType x, $genType y);
ethannicholas471e8942016-10-28 09:02:46 -070048//$genDType mod($genDType x, double y);
49//$genDType mod($genDType x, $genDType y);
ethannicholasb3058bd2016-07-01 08:22:01 -070050$genType modf($genType x, out $genType i);
ethannicholas471e8942016-10-28 09:02:46 -070051//$genDType modf($genDType x, out $genDType i);
ethannicholasb3058bd2016-07-01 08:22:01 -070052$genType min($genType x, $genType y);
Ethan Nicholasf7b88202017-09-18 14:10:39 -040053$genType min($genType x, highfloat y);
ethannicholas471e8942016-10-28 09:02:46 -070054//$genDType min($genDType x, $genDType y);
55//$genDType min($genDType x, double y);
ethannicholasb3058bd2016-07-01 08:22:01 -070056$genIType min($genIType x, $genIType y);
57$genIType min($genIType x, int y);
ethannicholas471e8942016-10-28 09:02:46 -070058//$genUType min($genUType x, $genUType y);
59//$genUType min($genUType x, uint y);
ethannicholasb3058bd2016-07-01 08:22:01 -070060$genType max($genType x, $genType y);
Ethan Nicholasf7b88202017-09-18 14:10:39 -040061$genType max($genType x, highfloat y);
ethannicholas471e8942016-10-28 09:02:46 -070062//$genDType max($genDType x, $genDType y);
63//$genDType max($genDType x, double y);
ethannicholasb3058bd2016-07-01 08:22:01 -070064$genIType max($genIType x, $genIType y);
65$genIType max($genIType x, int y);
ethannicholas471e8942016-10-28 09:02:46 -070066//$genUType max($genUType x, $genUType y);
67//$genUType max($genUType x, uint y);
ethannicholasb3058bd2016-07-01 08:22:01 -070068$genType clamp($genType x, $genType minVal, $genType maxVal);
Ethan Nicholasf7b88202017-09-18 14:10:39 -040069$genType clamp($genType x, highfloat minVal, highfloat maxVal);
ethannicholas471e8942016-10-28 09:02:46 -070070//$genDType clamp($genDType x, $genDType minVal, $genDType maxVal);
71//$genDType clamp($genDType x, double minVal, double maxVal);
ethannicholasb3058bd2016-07-01 08:22:01 -070072$genIType clamp($genIType x, $genIType minVal, $genIType maxVal);
73$genIType clamp($genIType x, int minVal, int maxVal);
ethannicholas471e8942016-10-28 09:02:46 -070074//$genUType clamp($genUType x, $genUType minVal, $genUType maxVal);
75//$genUType clamp($genUType x, uint minVal, uint maxVal);
ethannicholasb3058bd2016-07-01 08:22:01 -070076$genType mix($genType x, $genType y, $genType a);
Ethan Nicholasf7b88202017-09-18 14:10:39 -040077$genType mix($genType x, $genType y, highfloat a);
ethannicholas471e8942016-10-28 09:02:46 -070078//$genDType mix($genDType x, $genDType y, $genDType a);
79//$genDType mix($genDType x, $genDType y, double a);
ethannicholasb3058bd2016-07-01 08:22:01 -070080$genType mix($genType x, $genType y, $genBType a);
ethannicholas471e8942016-10-28 09:02:46 -070081//$genDType mix($genDType x, $genDType y, $genBType a);
ethannicholasb3058bd2016-07-01 08:22:01 -070082$genIType mix($genIType x, $genIType y, $genBType a);
ethannicholas471e8942016-10-28 09:02:46 -070083//$genUType mix($genUType x, $genUType y, $genBType a);
ethannicholasb3058bd2016-07-01 08:22:01 -070084$genBType mix($genBType x, $genBType y, $genBType a);
85$genType step($genType edge, $genType x);
Ethan Nicholasf7b88202017-09-18 14:10:39 -040086$genType step(highfloat edge, $genType x);
ethannicholas471e8942016-10-28 09:02:46 -070087//$genDType step($genDType edge, $genDType x);
88//$genDType step(double edge, $genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070089$genType smoothstep($genType edge0, $genType edge1, $genType x);
Ethan Nicholasf7b88202017-09-18 14:10:39 -040090$genType smoothstep(highfloat edge0, highfloat edge1, $genType x);
ethannicholas471e8942016-10-28 09:02:46 -070091//$genDType smoothstep($genDType edge0, $genDType edge1, $genDType x);
92//$genDType smoothstep(double edge0, double edge1, $genDType x);
ethannicholasb3058bd2016-07-01 08:22:01 -070093$genBType isnan($genType x);
94$genBType isnan($genDType x);
95$genBType isinf($genType x);
96$genBType isinf($genDType x);
Ethan Nicholasf7b88202017-09-18 14:10:39 -040097$genIType highfloatBitsToInt($genType value);
98//$genUType highfloatBitsToUint($genType value);
99$genType intBitsTohighfloat($genIType value);
100$genType uintBitsTohighfloat($genUType value);
ethannicholasb3058bd2016-07-01 08:22:01 -0700101$genType fma($genType a, $genType b, $genType c);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400102$genHType fma($genHType a, $genHType b, $genHType c);
103$genDType fma($genDType a, $genDType b, $genDType c);
ethannicholas471e8942016-10-28 09:02:46 -0700104//$genDType fma($genDType a, $genDType b, $genDType c);
ethannicholasb3058bd2016-07-01 08:22:01 -0700105$genType frexp($genType x, out $genIType exp);
ethannicholas471e8942016-10-28 09:02:46 -0700106//$genDType frexp($genDType x, out $genIType exp);
ethannicholasb3058bd2016-07-01 08:22:01 -0700107$genType ldexp($genType x, in $genIType exp);
ethannicholas471e8942016-10-28 09:02:46 -0700108//$genDType ldexp($genDType x, in $genIType exp);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400109uint packUnorm2x16(highfloat2 v);
110uint packSnorm2x16(highfloat2 v);
111uint packUnorm4x8(highfloat4 v);
112uint packSnorm4x8(highfloat4 v);
113highfloat2 unpackUnorm2x16(uint p);
114highfloat2 unpackSnorm2x16(uint p);
115highfloat4 unpackUnorm4x8(uint p);
116highfloat4 unpackSnorm4x8(uint p);
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400117//double packDouble2x32(uint2 v);
118uint2 unpackDouble2x32(double v);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400119uint packHalf2x16(highfloat2 v);
120highfloat2 unpackHalf2x16(uint v);
121highfloat length($genType x);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400122half length($genHType x);
123double length($genDType x);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400124highfloat distance($genType p0, $genType p1);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400125half distance($genHType p0, $genHType p1);
126double distance($genDType p0, $genDType p1);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400127highfloat dot($genType x, $genType y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400128half dot($genHType x, $genHType y);
129double dot($genDType x, $genDType y);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400130highfloat3 cross(highfloat3 x, highfloat3 y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400131half3 cross(half3 x, half3 y);
132double3 cross(double3 x, double3 y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700133$genType normalize($genType x);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400134$genHType normalize($genHType x);
135$genDType normalize($genDType x);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400136highfloat4 ftransform();
ethannicholasb3058bd2016-07-01 08:22:01 -0700137$genType faceforward($genType N, $genType I, $genType Nref);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400138$genHType faceforward($genHType N, $genHType I, $genHType Nref);
139$genDType faceforward($genDType N, $genDType I, $genDType Nref);
ethannicholasb3058bd2016-07-01 08:22:01 -0700140$genType reflect($genType I, $genType N);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400141$genHType reflect($genHType I, $genHType N);
142$genDType reflect($genDType I, $genDType N);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400143$genType refract($genType I, $genType N, highfloat eta);
144$genHType refract($genHType I, $genHType N, highfloat eta);
145$genDType refract($genDType I, $genDType N, highfloat eta);
ethannicholasb3058bd2016-07-01 08:22:01 -0700146$mat matrixCompMult($mat x, $mat y);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400147highfloat2x2 outerProduct(highfloat2 c, highfloat2 r);
148highfloat3x3 outerProduct(highfloat3 c, highfloat3 r);
149highfloat4x3 outerProduct(highfloat4 c, highfloat4 r);
150highfloat2x3 outerProduct(highfloat3 c, highfloat2 r);
151highfloat3x2 outerProduct(highfloat2 c, highfloat3 r);
152highfloat2x4 outerProduct(highfloat4 c, highfloat2 r);
153highfloat4x2 outerProduct(highfloat2 c, highfloat4 r);
154highfloat3x4 outerProduct(highfloat4 c, highfloat3 r);
155highfloat4x3 outerProduct(highfloat3 c, highfloat4 r);
156highfloat2x2 transpose(highfloat2x2 m);
157highfloat3x3 transpose(highfloat3x3 m);
158highfloat4x4 transpose(highfloat4x4 m);
159highfloat2x3 transpose(highfloat3x2 m);
160highfloat3x2 transpose(highfloat2x3 m);
161highfloat2x4 transpose(highfloat4x2 m);
162highfloat4x2 transpose(highfloat2x4 m);
163highfloat3x4 transpose(highfloat4x3 m);
164highfloat4x3 transpose(highfloat3x4 m);
165highfloat determinant(highfloat2x2 m);
166highfloat determinant(highfloat3x3 m);
167highfloat determinant(highfloat4x4 m);
168highfloat2x2 inverse(highfloat2x2 m);
169highfloat3x3 inverse(highfloat3x3 m);
170highfloat4x4 inverse(highfloat4x4 m);
ethannicholasb3058bd2016-07-01 08:22:01 -0700171$bvec lessThan($vec x, $vec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400172$bvec lessThan($hvec x, $hvec y);
173$bvec lessThan($dvec x, $dvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700174$bvec lessThan($ivec x, $ivec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400175$bvec lessThan($svec x, $svec y);
176$bvec lessThan($usvec x, $usvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700177$bvec lessThan($uvec x, $uvec y);
178$bvec lessThanEqual($vec x, $vec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400179$bvec lessThanEqual($hvec x, $hvec y);
180$bvec lessThanEqual($dvec x, $dvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700181$bvec lessThanEqual($ivec x, $ivec y);
182$bvec lessThanEqual($uvec x, $uvec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400183$bvec lessThanEqual($svec x, $svec y);
184$bvec lessThanEqual($usvec x, $usvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700185$bvec greaterThan($vec x, $vec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400186$bvec greaterThan($hvec x, $hvec y);
187$bvec greaterThan($dvec x, $dvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700188$bvec greaterThan($ivec x, $ivec y);
189$bvec greaterThan($uvec x, $uvec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400190$bvec greaterThan($svec x, $svec y);
191$bvec greaterThan($usvec x, $usvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700192$bvec greaterThanEqual($vec x, $vec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400193$bvec greaterThanEqual($hvec x, $hvec y);
194$bvec greaterThanEqual($dvec x, $dvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700195$bvec greaterThanEqual($ivec x, $ivec y);
196$bvec greaterThanEqual($uvec x, $uvec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400197$bvec greaterThanEqual($svec x, $svec y);
198$bvec greaterThanEqual($usvec x, $usvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700199$bvec equal($vec x, $vec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400200$bvec equal($hvec x, $hvec y);
201$bvec equal($dvec x, $dvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700202$bvec equal($ivec x, $ivec y);
203$bvec equal($uvec x, $uvec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400204$bvec equal($svec x, $svec y);
205$bvec equal($usvec x, $usvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700206$bvec equal($bvec x, $bvec y);
207$bvec notEqual($vec x, $vec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400208$bvec notEqual($hvec x, $hvec y);
209$bvec notEqual($dvec x, $dvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700210$bvec notEqual($ivec x, $ivec y);
211$bvec notEqual($uvec x, $uvec y);
Ethan Nicholasdcba08e2017-08-02 10:52:54 -0400212$bvec notEqual($svec x, $svec y);
213$bvec notEqual($usvec x, $usvec y);
ethannicholasb3058bd2016-07-01 08:22:01 -0700214$bvec notEqual($bvec x, $bvec y);
215bool any($bvec x);
216bool all($bvec x);
217$bvec not($bvec x);
ethannicholas471e8942016-10-28 09:02:46 -0700218
ethannicholasb3058bd2016-07-01 08:22:01 -0700219$genIType bitCount($genIType value);
220$genIType bitCount($genUType value);
221$genIType findLSB($genIType value);
222$genIType findLSB($genUType value);
223$genIType findMSB($genIType value);
224$genIType findMSB($genUType value);
ethannicholas471e8942016-10-28 09:02:46 -0700225
226/*
227//$genUType uaddCarry($genUType x, $genUType y, out $genUType carry);
228//$genUType usubBorrow($genUType x, $genUType y, out $genUType borrow);
229void umulExtended($genUType x, $genUType y, out $genUType msb, out $genUType lsb);
230void imulExtended($genIType x, $genIType y, out $genIType msb, out $genIType lsb);
231$genIType bitfieldExtract($genIType value, int offset, int bits);
232//$genUType bitfieldExtract($genUType value, int offset, int bits);
233$genIType bitfieldInsert($genIType base, $genIType insert, int offset, int bits);
234//$genUType bitfieldInsert($genUType base, $genUType insert, int offset, int bits);
235$genIType bitfieldReverse($genIType value);
236//$genUType bitfieldReverse($genUType value);
ethannicholasb3058bd2016-07-01 08:22:01 -0700237int textureSize($gsampler1D sampler, int lod);
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400238int2 textureSize($gsampler2D sampler, int lod);
239int3 textureSize($gsampler3D sampler, int lod);
240int2 textureSize($gsamplerCube sampler, int lod);
ethannicholasb3058bd2016-07-01 08:22:01 -0700241int textureSize(sampler1DShadow sampler, int lod);
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400242int2 textureSize(sampler2DShadow sampler, int lod);
243int2 textureSize(samplerCubeShadow sampler, int lod);
244int3 textureSize($gsamplerCubeArray sampler, int lod);
245int3 textureSize(samplerCubeArrayShadow sampler, int lod);
ethannicholas471e8942016-10-28 09:02:46 -0700246*/
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400247int2 textureSize($gsampler2DRect sampler);
ethannicholas471e8942016-10-28 09:02:46 -0700248/*
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400249int2 textureSize(sampler2DRectShadow sampler);
250int2 textureSize($gsampler1DArray sampler, int lod);
251int3 textureSize($gsampler2DArray sampler, int lod);
252int2 textureSize(sampler1DArrayShadow sampler, int lod);
253int3 textureSize(sampler2DArrayShadow sampler, int lod);
ethannicholasb3058bd2016-07-01 08:22:01 -0700254int textureSize($gsamplerBuffer sampler);
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400255int2 textureSize($gsampler2DMS sampler);
256int3 textureSize($gsampler2DMSArray sampler);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400257highfloat2 textureQueryLod($gsampler1D sampler, highfloat P);
258highfloat2 textureQueryLod($gsampler2D sampler, highfloat2 P);
259highfloat2 textureQueryLod($gsampler3D sampler, highfloat3 P);
260highfloat2 textureQueryLod($gsamplerCube sampler, highfloat3 P);
261highfloat2 textureQueryLod($gsampler1DArray sampler, highfloat P);
262highfloat2 textureQueryLod($gsampler2DArray sampler, highfloat2 P);
263highfloat2 textureQueryLod($gsamplerCubeArray sampler, highfloat3 P);
264highfloat2 textureQueryLod(sampler1DShadow sampler, highfloat P);
265highfloat2 textureQueryLod(sampler2DShadow sampler, highfloat2 P);
266highfloat2 textureQueryLod(samplerCubeShadow sampler, highfloat3 P);
267highfloat2 textureQueryLod(sampler1DArrayShadow sampler, highfloat P);
268highfloat2 textureQueryLod(sampler2DArrayShadow sampler, highfloat2 P);
269highfloat2 textureQueryLod(samplerCubeArrayShadow sampler, highfloat3 P);
ethannicholasb3058bd2016-07-01 08:22:01 -0700270int textureQueryLevels($gsampler1D sampler);
271int textureQueryLevels($gsampler2D sampler);
272int textureQueryLevels($gsampler3D sampler);
273int textureQueryLevels($gsamplerCube sampler);
274int textureQueryLevels($gsampler1DArray sampler);
275int textureQueryLevels($gsampler2DArray sampler);
276int textureQueryLevels($gsamplerCubeArray sampler);
277int textureQueryLevels(sampler1DShadow sampler);
278int textureQueryLevels(sampler2DShadow sampler);
279int textureQueryLevels(samplerCubeShadow sampler);
280int textureQueryLevels(sampler1DArrayShadow sampler);
281int textureQueryLevels(sampler2DArrayShadow sampler);
282int textureQueryLevels(samplerCubeArrayShadow sampler);
ethannicholas471e8942016-10-28 09:02:46 -0700283*/
284
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400285half4 texture($gsampler1D sampler, highfloat P);
286half4 texture($gsampler1D sampler, highfloat P, highfloat bias);
287half4 texture($gsampler2D sampler, highfloat2 P);
Brian Salomonbf7b6202016-11-11 16:08:03 -0500288// The above currently only expand to handle the float/fixed case. So we also declare this integer
289// version of texture().
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400290int4 texture(isampler2D sampler, highfloat2 P);
291half4 texture(samplerExternalOES sampler, highfloat2 P, highfloat bias);
292half4 texture(samplerExternalOES sampler, highfloat2 P);
ethannicholas471e8942016-10-28 09:02:46 -0700293
294/*
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400295$gfloat4 texture($gsampler2D sampler, highfloat2 P, highfloat bias);
296$gfloat4 texture($gsampler3D sampler, highfloat3 P);
297$gfloat4 texture($gsampler3D sampler, highfloat3 P, highfloat bias);
298$gfloat4 texture($gsamplerCube sampler, highfloat3 P);
299$gfloat4 texture($gsamplerCube sampler, highfloat3 P, highfloat bias);
300highfloat texture(sampler1DShadow sampler, highfloat3 P);
301highfloat texture(sampler1DShadow sampler, highfloat3 P, highfloat bias);
302highfloat texture(sampler2DShadow sampler, highfloat3 P);
303highfloat texture(sampler2DShadow sampler, highfloat3 P, highfloat bias);
304highfloat texture(samplerCubeShadow sampler, highfloat4 P);
305highfloat texture(samplerCubeShadow sampler, highfloat4 P, highfloat bias);
306$gfloat4 texture($gsampler1DArray sampler, highfloat2 P);
307$gfloat4 texture($gsampler1DArray sampler, highfloat2 P, highfloat bias);
308$gfloat4 texture($gsampler2DArray sampler, highfloat3 P);
309$gfloat4 texture($gsampler2DArray sampler, highfloat3 P, highfloat bias);
310$gfloat4 texture($gsamplerCubeArray sampler, highfloat4 P);
311$gfloat4 texture($gsamplerCubeArray sampler, highfloat4 P, highfloat bias);
312highfloat texture(sampler1DArrayShadow sampler, highfloat3 P);
313highfloat texture(sampler1DArrayShadow sampler, highfloat3 P, highfloat bias);
314highfloat texture(sampler2DArrayShadow sampler, highfloat4 P);
ethannicholas471e8942016-10-28 09:02:46 -0700315*/
316
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400317half4 texture($gsampler2DRect sampler, highfloat2 P);
318half4 texture($gsampler2DRect sampler, highfloat3 P);
ethannicholas471e8942016-10-28 09:02:46 -0700319
320/*
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400321highfloat texture(sampler2DRectShadow sampler, highfloat3 P);
322highfloat texture($gsamplerCubeArrayShadow sampler, highfloat4 P, highfloat compare);
ethannicholas471e8942016-10-28 09:02:46 -0700323*/
Greg Daniel64773e62016-11-22 09:44:03 -0500324
325// Currently we do not support the generic types of loading subpassInput so we have some explicit
326// versions that we currently use
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400327highfloat4 subpassLoad(subpassInput subpass);
328highfloat4 subpassLoad(subpassInputMS subpass, int sample);
Greg Daniel64773e62016-11-22 09:44:03 -0500329/*
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400330$gfloat4subpassLoad(gsubpassInput subpass);
331$gfloat4subpassLoad(gsubpassInputMS subpass, int sample);
Greg Daniel64773e62016-11-22 09:44:03 -0500332*/
ethannicholasb3058bd2016-07-01 08:22:01 -0700333)
334
335// split into multiple chunks, as MSVC++ complains if a single string is too long
336
337STRINGIFY(
338
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400339half4 texture($gsampler1D sampler, highfloat2 P);
340half4 texture($gsampler1D sampler, highfloat2 P, highfloat bias);
341half4 texture($gsampler2D sampler, highfloat3 P);
342half4 texture($gsampler2D sampler, highfloat3 P, highfloat bias);
ethannicholas471e8942016-10-28 09:02:46 -0700343/*
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400344$gfloat4 textureProj($gsampler3D sampler, highfloat4 P);
345$gfloat4 textureProj($gsampler3D sampler, highfloat4 P, highfloat bias);
346highfloat textureProj(sampler1DShadow sampler, highfloat4 P);
347highfloat textureProj(sampler1DShadow sampler, highfloat4 P, highfloat bias);
348highfloat textureProj(sampler2DShadow sampler, highfloat4 P);
349highfloat textureProj(sampler2DShadow sampler, highfloat4 P, highfloat bias);
350$gfloat4 textureProj($gsampler2DRect sampler, highfloat4 P);
351highfloat textureProj(sampler2DRectShadow sampler, highfloat4 P);
352$gfloat4 textureLod($gsampler1D sampler, highfloat P, highfloat lod);
353$gfloat4 textureLod($gsampler2D sampler, highfloat2 P, highfloat lod);
354$gfloat4 textureLod($gsampler3D sampler, highfloat3 P, highfloat lod);
355$gfloat4 textureLod($gsamplerCube sampler, highfloat3 P, highfloat lod);
356highfloat textureLod(sampler1DShadow sampler, highfloat3 P, highfloat lod);
357highfloat textureLod(sampler2DShadow sampler, highfloat3 P, highfloat lod);
358$gfloat4 textureLod($gsampler1DArray sampler, highfloat2 P, highfloat lod);
359$gfloat4 textureLod($gsampler2DArray sampler, highfloat3 P, highfloat lod);
360highfloat textureLod(sampler1DArrayShadow sampler, highfloat3 P, highfloat lod);
361$gfloat4 textureLod($gsamplerCubeArray sampler, highfloat4 P, highfloat lod);
362$gfloat4 textureOffset($gsampler1D sampler, highfloat P, int offset);
363$gfloat4 textureOffset($gsampler1D sampler, highfloat P, int offset, highfloat bias);
364$gfloat4 textureOffset($gsampler2D sampler, highfloat2 P, int2 offset);
365$gfloat4 textureOffset($gsampler2D sampler, highfloat2 P, int2 offset, highfloat bias);
366$gfloat4 textureOffset($gsampler3D sampler, highfloat3 P, int3 offset);
367$gfloat4 textureOffset($gsampler3D sampler, highfloat3 P, int3 offset, highfloat bias);
368$gfloat4 textureOffset($gsampler2DRect sampler, highfloat2 P, int2 offset);
369highfloat textureOffset(sampler2DRectShadow sampler, highfloat3 P, int2 offset);
370highfloat textureOffset(sampler1DShadow sampler, highfloat3 P, int offset);
371highfloat textureOffset(sampler1DShadow sampler, highfloat3 P, int offset, highfloat bias);
372highfloat textureOffset(sampler2DShadow sampler, highfloat3 P, int2 offset);
373highfloat textureOffset(sampler2DShadow sampler, highfloat3 P, int2 offset, highfloat bias);
374$gfloat4 textureOffset($gsampler1DArray sampler, highfloat2 P, int offset);
375$gfloat4 textureOffset($gsampler1DArray sampler, highfloat2 P, int offset, highfloat bias);
376$gfloat4 textureOffset($gsampler2DArray sampler, highfloat3 P, int2 offset);
377$gfloat4 textureOffset($gsampler2DArray sampler, highfloat3 P, int2 offset, highfloat bias);
378highfloat textureOffset(sampler1DArrayShadow sampler, highfloat3 P, int offset);
379highfloat textureOffset(sampler1DArrayShadow sampler, highfloat3 P, int offset, highfloat bias);
380highfloat textureOffset(sampler2DArrayShadow sampler, highfloat4 P, int2 offset);
ethannicholas471e8942016-10-28 09:02:46 -0700381*/
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400382highfloat4 texelFetch(samplerBuffer sampler, int P);
Ethan Nicholas0187ae62017-05-03 11:03:44 -0400383
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400384$gfloat4 texelFetch($gsampler1D sampler, int P, int lod);
385$gfloat4 texelFetch($gsampler2D sampler, int2 P, int lod);
386$gfloat4 texelFetch($gsampler2DRect sampler, int2 P);
ethannicholas471e8942016-10-28 09:02:46 -0700387/*
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400388$gfloat4 texelFetch($gsampler3D sampler, int3 P, int lod);
389$gfloat4 texelFetch($gsampler1DArray sampler, int2 P, int lod);
390$gfloat4 texelFetch($gsampler2DArray sampler, int3 P, int lod);
391$gfloat4 texelFetch($gsampler2DMS sampler, int2 P, int sample);
392$gfloat4 texelFetch($gsampler2DMSArray sampler, int3 P, int sample);
393$gfloat4 texelFetchOffset($gsampler1D sampler, int P, int lod, int offset);
394$gfloat4 texelFetchOffset($gsampler2D sampler, int2 P, int lod, int2 offset);
395$gfloat4 texelFetchOffset($gsampler3D sampler, int3 P, int lod, int3 offset);
396$gfloat4 texelFetchOffset($gsampler2DRect sampler, int2 P, int2 offset);
397$gfloat4 texelFetchOffset($gsampler1DArray sampler, int2 P, int lod, int offset);
398$gfloat4 texelFetchOffset($gsampler2DArray sampler, int3 P, int lod, int2 offset);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400399$gfloat4 textureProjOffset($gsampler1D sampler, highfloat2 P, int offset);
400$gfloat4 textureProjOffset($gsampler1D sampler, highfloat2 P, int offset, highfloat bias);
401$gfloat4 textureProjOffset($gsampler1D sampler, highfloat4 P, int offset);
402$gfloat4 textureProjOffset($gsampler1D sampler, highfloat4 P, int offset, highfloat bias);
403$gfloat4 textureProjOffset($gsampler2D sampler, highfloat3 P, int2 offset);
404$gfloat4 textureProjOffset($gsampler2D sampler, highfloat3 P, int2 offset, highfloat bias);
405$gfloat4 textureProjOffset($gsampler2D sampler, highfloat4 P, int2 offset);
406$gfloat4 textureProjOffset($gsampler2D sampler, highfloat4 P, int2 offset, highfloat bias);
407$gfloat4 textureProjOffset($gsampler3D sampler, highfloat4 P, int3 offset);
408$gfloat4 textureProjOffset($gsampler3D sampler, highfloat4 P, int3 offset, highfloat bias);
409$gfloat4 textureProjOffset($gsampler2DRect sampler, highfloat3 P, int2 offset);
410$gfloat4 textureProjOffset($gsampler2DRect sampler, highfloat4 P, int2 offset);
411highfloat textureProjOffset(sampler2DRectShadow sampler, highfloat4 P, int2 offset);
412highfloat textureProjOffset(sampler1DShadow sampler, highfloat4 P, int offset);
413highfloat textureProjOffset(sampler1DShadow sampler, highfloat4 P, int offset, highfloat bias);
414highfloat textureProjOffset(sampler2DShadow sampler, highfloat4 P, int2 offset);
415highfloat textureProjOffset(sampler2DShadow sampler, highfloat4 P, int2 offset, highfloat bias);
416$gfloat4 textureLodOffset($gsampler1D sampler, highfloat P, highfloat lod, int offset);
417$gfloat4 textureLodOffset($gsampler2D sampler, highfloat2 P, highfloat lod, int2 offset);
418$gfloat4 textureLodOffset($gsampler3D sampler, highfloat3 P, highfloat lod, int3 offset);
419highfloat textureLodOffset(sampler1DShadow sampler, highfloat3 P, highfloat lod, int offset);
420highfloat textureLodOffset(sampler2DShadow sampler, highfloat3 P, highfloat lod, int2 offset);
421$gfloat4 textureLodOffset($gsampler1DArray sampler, highfloat2 P, highfloat lod, int offset);
422$gfloat4 textureLodOffset($gsampler2DArray sampler, highfloat3 P, highfloat lod, int2 offset);
423highfloat textureLodOffset(sampler1DArrayShadow sampler, highfloat3 P, highfloat lod, int offset);
424$gfloat4 textureProjLod($gsampler1D sampler, highfloat2 P, highfloat lod);
425$gfloat4 textureProjLod($gsampler1D sampler, highfloat4 P, highfloat lod);
426$gfloat4 textureProjLod($gsampler2D sampler, highfloat3 P, highfloat lod);
427$gfloat4 textureProjLod($gsampler2D sampler, highfloat4 P, highfloat lod);
428$gfloat4 textureProjLod($gsampler3D sampler, highfloat4 P, highfloat lod);
429highfloat textureProjLod(sampler1DShadow sampler, highfloat4 P, highfloat lod);
430highfloat textureProjLod(sampler2DShadow sampler, highfloat4 P, highfloat lod);
431$gfloat4 textureProjLodOffset($gsampler1D sampler, highfloat2 P, highfloat lod, int offset);
432$gfloat4 textureProjLodOffset($gsampler1D sampler, highfloat4 P, highfloat lod, int offset);
433$gfloat4 textureProjLodOffset($gsampler2D sampler, highfloat3 P, highfloat lod, int2 offset);
434$gfloat4 textureProjLodOffset($gsampler2D sampler, highfloat4 P, highfloat lod, int2 offset);
435$gfloat4 textureProjLodOffset($gsampler3D sampler, highfloat4 P, highfloat lod, int3 offset);
436highfloat textureProjLodOffset(sampler1DShadow sampler, highfloat4 P, highfloat lod, int offset);
437highfloat textureProjLodOffset(sampler2DShadow sampler, highfloat4 P, highfloat lod, int2 offset);
438$gfloat4 textureGrad($gsampler1D sampler, highfloat P, highfloat dPdx, highfloat dPdy);
439$gfloat4 textureGrad($gsampler2D sampler, highfloat2 P, highfloat2 dPdx, highfloat2 dPdy);
440$gfloat4 textureGrad($gsampler3D sampler, highfloat3 P, highfloat3 dPdx, highfloat3 dPdy);
441$gfloat4 textureGrad($gsamplerCube sampler, highfloat3 P, highfloat3 dPdx, highfloat3 dPdy);
442$gfloat4 textureGrad($gsampler2DRect sampler, highfloat2 P, highfloat2 dPdx, highfloat2 dPdy);
443highfloat textureGrad(sampler2DRectShadow sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy);
444highfloat textureGrad(sampler1DShadow sampler, highfloat3 P, highfloat dPdx, highfloat dPdy);
445highfloat textureGrad(sampler2DShadow sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy);
446highfloat textureGrad(samplerCubeShadow sampler, highfloat4 P, highfloat3 dPdx, highfloat3 dPdy);
447$gfloat4 textureGrad($gsampler1DArray sampler, highfloat2 P, highfloat dPdx, highfloat dPdy);
448$gfloat4 textureGrad($gsampler2DArray sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy);
449highfloat textureGrad(sampler1DArrayShadow sampler, highfloat3 P, highfloat dPdx, highfloat dPdy);
450highfloat textureGrad(sampler2DArrayShadow sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy);
451$gfloat4 textureGrad($gsamplerCubeArray sampler, highfloat4 P, highfloat3 dPdx, highfloat3 dPdy);
452$gfloat4 textureGradOffset($gsampler1D sampler, highfloat P, highfloat dPdx, highfloat dPdy, int offset);
453$gfloat4 textureGradOffset($gsampler2D sampler, highfloat2 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
454$gfloat4 textureGradOffset($gsampler3D sampler, highfloat3 P, highfloat3 dPdx, highfloat3 dPdy, int3 offset);
455$gfloat4 textureGradOffset($gsampler2DRect sampler, highfloat2 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
456highfloat textureGradOffset(sampler2DRectShadow sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
457highfloat textureGradOffset(sampler1DShadow sampler, highfloat3 P, highfloat dPdx, highfloat dPdy, int offset );
458highfloat textureGradOffset(sampler2DShadow sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
459$gfloat4 textureGradOffset($gsampler1DArray sampler, highfloat2 P, highfloat dPdx, highfloat dPdy, int offset);
460$gfloat4 textureGradOffset($gsampler2DArray sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
461highfloat textureGradOffset(sampler1DArrayShadow sampler, highfloat3 P, highfloat dPdx, highfloat dPdy, int offset);
462highfloat textureGradOffset(sampler2DArrayShadow sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
463$gfloat4 textureProjGrad($gsampler1D sampler, highfloat2 P, highfloat dPdx, highfloat dPdy);
464$gfloat4 textureProjGrad($gsampler1D sampler, highfloat4 P, highfloat dPdx, highfloat dPdy);
465$gfloat4 textureProjGrad($gsampler2D sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy);
466$gfloat4 textureProjGrad($gsampler2D sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy);
467$gfloat4 textureProjGrad($gsampler3D sampler, highfloat4 P, highfloat3 dPdx, highfloat3 dPdy);
468$gfloat4 textureProjGrad($gsampler2DRect sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy);
469$gfloat4 textureProjGrad($gsampler2DRect sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy);
470highfloat textureProjGrad(sampler2DRectShadow sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy);
471highfloat textureProjGrad(sampler1DShadow sampler, highfloat4 P, highfloat dPdx, highfloat dPdy);
472highfloat textureProjGrad(sampler2DShadow sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy);
473$gfloat4 textureProjGradOffset($gsampler1D sampler, highfloat2 P, highfloat dPdx, highfloat dPdy, int offset);
474$gfloat4 textureProjGradOffset($gsampler1D sampler, highfloat4 P, highfloat dPdx, highfloat dPdy, int offset);
475$gfloat4 textureProjGradOffset($gsampler2D sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
476$gfloat4 textureProjGradOffset($gsampler2D sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
477$gfloat4 textureProjGradOffset($gsampler2DRect sampler, highfloat3 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
478$gfloat4 textureProjGradOffset($gsampler2DRect sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
479highfloat textureProjGradOffset(sampler2DRectShadow sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
480$gfloat4 textureProjGradOffset($gsampler3D sampler, highfloat4 P, highfloat3 dPdx, highfloat3 dPdy, int3 offset);
481highfloat textureProjGradOffset(sampler1DShadow sampler, highfloat4 P, highfloat dPdx, highfloat dPdy, int offset);
482highfloat textureProjGradOffset(sampler2DShadow sampler, highfloat4 P, highfloat2 dPdx, highfloat2 dPdy, int2 offset);
483$gfloat4 textureGather($gsampler2D sampler, highfloat2 P);
484$gfloat4 textureGather($gsampler2D sampler, highfloat2 P, int comp);
485$gfloat4 textureGather($gsampler2DArray sampler, highfloat3 P);
486$gfloat4 textureGather($gsampler2DArray sampler, highfloat3 P, int comp);
487$gfloat4 textureGather($gsamplerCube sampler, highfloat3 P);
488$gfloat4 textureGather($gsamplerCube sampler, highfloat3 P, int comp);
489$gfloat4 textureGather($gsamplerCubeArray sampler, highfloat4 P);
490$gfloat4 textureGather($gsamplerCubeArray sampler, highfloat4 P, int comp);
491$gfloat4 textureGather($gsampler2DRect sampler, highfloat2 P);
492$gfloat4 textureGather($gsampler2DRect sampler, highfloat2 P, int comp);
493highfloat4 textureGather(sampler2DShadow sampler, highfloat2 P, highfloat refZ);
494highfloat4 textureGather(sampler2DArrayShadow sampler, highfloat3 P, highfloat refZ);
495highfloat4 textureGather(samplerCubeShadow sampler, highfloat3 P, highfloat refZ);
496highfloat4 textureGather(samplerCubeArrayShadow sampler, highfloat4 P, highfloat refZ);
497highfloat4 textureGather(sampler2DRectShadow sampler, highfloat2 P, highfloat refZ);
498$gfloat4 textureGatherOffset($gsampler2D sampler, highfloat2 P, int2 offset);
499$gfloat4 textureGatherOffset($gsampler2D sampler, highfloat2 P, int2 offset, int comp);
500$gfloat4 textureGatherOffset($gsampler2DArray sampler, highfloat3 P, int2 offset);
501$gfloat4 textureGatherOffset($gsampler2DArray sampler, highfloat3 P, int2 offset, int comp);
502$gfloat4 textureGatherOffset($gsampler2DRect sampler, highfloat2 P, int2 offset);
503$gfloat4 textureGatherOffset($gsampler2DRect sampler, highfloat2 P, int2 offset, int comp);
504highfloat4 textureGatherOffset(sampler2DShadow sampler, highfloat2 P, highfloat refZ, int2 offset);
505highfloat4 textureGatherOffset(sampler2DArrayShadow sampler, highfloat3 P, highfloat refZ, int2 offset);
506highfloat4 textureGatherOffset(sampler2DRectShadow sampler, highfloat2 P, highfloat refZ, int2 offset);
507$gfloat4 textureGatherOffsets($gsampler2D sampler, highfloat2 P, int2 offsets[4]);
508$gfloat4 textureGatherOffsets($gsampler2D sampler, highfloat2 P, int2 offsets[4], int comp);
509$gfloat4 textureGatherOffsets($gsampler2DArray sampler, highfloat3 P, int2 offsets[4]);
510$gfloat4 textureGatherOffsets($gsampler2DArray sampler, highfloat3 P, int2 offsets[4], int comp);
511$gfloat4 textureGatherOffsets($gsampler2DRect sampler, highfloat2 P, int2 offsets[4]);
512$gfloat4 textureGatherOffsets($gsampler2DRect sampler, highfloat2 P, int2 offsets[4], int comp);
513highfloat4 textureGatherOffsets(sampler2DShadow sampler, highfloat2 P, highfloat refZ, int2 offsets[4]);
514highfloat4 textureGatherOffsets(sampler2DArrayShadow sampler, highfloat3 P, highfloat refZ, int2 offsets[4]);
515highfloat4 textureGatherOffsets(sampler2DRectShadow sampler, highfloat2 P, highfloat refZ, int2 offsets[4]);
ethannicholasb3058bd2016-07-01 08:22:01 -0700516uint atomicCounterIncrement(atomic_uint c);
517uint atomicCounter(atomic_uint c);
518uint atomicAdd(inout uint mem, uint data);
519int atomicAdd(inout int mem, int data);
520uint atomicMin(inout uint mem, uint data);
521int atomicMin(inout int mem, int data);
522uint atomicMax(inout uint mem, uint data);
523int atomicMax(inout int mem, int data);
524uint atomicAnd(inout uint mem, uint data);
525int atomicAnd(inout int mem, int data);
526uint atomicOr(inout uint mem, uint data);
527int atomicOr(inout int mem, int data);
528uint atomicXor(inout uint mem, uint data);
529int atomicXor(inout int mem, int data);
530uint atomicExchange(inout uint mem, uint data);
531int atomicExchange(inout int mem, int data);
532uint atomicCompSwap(inout uint mem, uint compare, uint data);
533int atomicCompSwap(inout int mem, int compare, int data);
534*/
Brian Salomon2a51de82016-11-16 12:06:01 -0500535// section 8.12 Additional Image Functions will go here if and when we add
536// support for them
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400537highfloat4 imageLoad(image2D image, int2 P);
Ethan Nicholas5af9ea32017-07-28 15:19:46 -0400538int4 imageLoad(iimage2D image, int2 P);
ethannicholasb3058bd2016-07-01 08:22:01 -0700539$genType dFdx($genType p);
540$genType dFdy($genType p);
Ethan Nicholasf7b88202017-09-18 14:10:39 -0400541highfloat interpolateAtSample(highfloat interpolant, int sample);
542highfloat2 interpolateAtSample(highfloat2 interpolant, int sample);
543highfloat3 interpolateAtSample(highfloat3 interpolant, int sample);
544highfloat4 interpolateAtSample(highfloat4 interpolant, int sample);
545highfloat interpolateAtOffset(highfloat interpolant, highfloat2 offset);
546highfloat2 interpolateAtOffset(highfloat2 interpolant, highfloat2 offset);
547highfloat3 interpolateAtOffset(highfloat3 interpolant, highfloat2 offset);
548highfloat4 interpolateAtOffset(highfloat4 interpolant, highfloat2 offset);
ethannicholas471e8942016-10-28 09:02:46 -0700549
550/*
551$genType fwidth($genType p);
552$genType fwidthCoarse($genType p);
553$genType fwidthFine($genType p);
ethannicholasb3058bd2016-07-01 08:22:01 -0700554void barrier();
555void memoryBarrier();
556void memoryBarrierAtomicCounter();
557void memoryBarrierBuffer();
558void memoryBarrierShared();
559void memoryBarrierImage();
560void groupMemoryBarrier();
ethannicholas471e8942016-10-28 09:02:46 -0700561*/
ethannicholasb3058bd2016-07-01 08:22:01 -0700562
Mike Klein600c6a72016-09-27 11:21:15 -0400563)
564