mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 03:01:30 +00:00
test for vec/float
This commit is contained in:
parent
3d62cb37f1
commit
a5029a510a
2 changed files with 19 additions and 0 deletions
10
tests/vec_ops.qc
Normal file
10
tests/vec_ops.qc
Normal file
|
@ -0,0 +1,10 @@
|
|||
void print(string...) = #1;
|
||||
string vtos(vector) = #5;
|
||||
|
||||
void main(vector v) {
|
||||
print(vtos(v), "\n");
|
||||
v /= 2;
|
||||
print(vtos(v), "\n");
|
||||
print(vtos(v / 2), "\n");
|
||||
print(vtos(v), "\n");
|
||||
}
|
9
tests/vec_ops.tmpl
Normal file
9
tests/vec_ops.tmpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
I: vec_ops.qc
|
||||
D: some additional vector operations
|
||||
T: -execute
|
||||
C: -std=fteqcc
|
||||
E: -vector '8 16 32'
|
||||
M: '8 16 32'
|
||||
M: '4 8 16'
|
||||
M: '2 4 8'
|
||||
M: '4 8 16'
|
Loading…
Reference in a new issue