Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Array-concatenation/GLSL/array-concatenation-1.glsl
Normal file
10
Task/Array-concatenation/GLSL/array-concatenation-1.glsl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#define array_concat(T,a1,a2,returned) \
|
||||
T[a1.length()+a2.length()] returned; \
|
||||
{ \
|
||||
for(int i = 0; i < a1.length(); i++){ \
|
||||
returned[i] = a1[i]; \
|
||||
} \
|
||||
for(int i = 0; i < a2.length(); i++){ \
|
||||
returned[i+a1.length()] = a2[i]; \
|
||||
} \
|
||||
}
|
||||
2
Task/Array-concatenation/GLSL/array-concatenation-2.glsl
Normal file
2
Task/Array-concatenation/GLSL/array-concatenation-2.glsl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
array_concat(float,float[](1.,2.,3.),float[](4.,5.,6.),returned);
|
||||
int i = returned.length();
|
||||
Loading…
Add table
Add a link
Reference in a new issue