diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2016-03-21 14:31:44 +0100 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2016-03-21 14:31:44 +0100 |
commit | be1e26b520e363ded31202fb0c39a6478dbe7cc6 (patch) | |
tree | abbcadd53e459ca7835907e136021aa7072355a7 /ddl/lib/LambdaCube.IR.RT.cs | |
parent | 5cd71fce0fffcf04a71bb42e3ef44776d66ff633 (diff) |
use switch for tag string in c#
Diffstat (limited to 'ddl/lib/LambdaCube.IR.RT.cs')
-rw-r--r-- | ddl/lib/LambdaCube.IR.RT.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ddl/lib/LambdaCube.IR.RT.cs b/ddl/lib/LambdaCube.IR.RT.cs new file mode 100644 index 0000000..4da3733 --- /dev/null +++ b/ddl/lib/LambdaCube.IR.RT.cs | |||
@@ -0,0 +1,32 @@ | |||
1 | using System.Collections.Generic; | ||
2 | |||
3 | |||
4 | namespace LambdaCube.IR { | ||
5 | |||
6 | public struct Maybe<T> | ||
7 | { | ||
8 | public bool valid; | ||
9 | public T data; | ||
10 | } | ||
11 | |||
12 | public struct V2<T> | ||
13 | { | ||
14 | public T x; | ||
15 | public T y; | ||
16 | } | ||
17 | |||
18 | public struct V3<T> | ||
19 | { | ||
20 | public T x; | ||
21 | public T y; | ||
22 | public T z; | ||
23 | } | ||
24 | |||
25 | public struct V4<T> | ||
26 | { | ||
27 | public T x; | ||
28 | public T y; | ||
29 | public T z; | ||
30 | public T w; | ||
31 | } | ||
32 | } \ No newline at end of file | ||