-
Notifications
You must be signed in to change notification settings - Fork 1
/
rust-swizzles.json
95 lines (91 loc) · 3.66 KB
/
rust-swizzles.json
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
{
"channel_map": {
"v3-v2": [
[ {"name": "x", "index": 0}, {"name": "y", "index": 1}, {"name": "z", "index": 2} ],
[ {"name": "x", "index": 0}, {"name": "y", "index": 1}, {"name": "z", "index": 2} ]
],
"v4-v2": [
[ {"name": "x", "index": 0}, {"name": "y", "index": 1}, {"name": "z", "index": 2}, {"name": "w", "index": 3} ],
[ {"name": "x", "index": 0}, {"name": "y", "index": 1}, {"name": "z", "index": 2}, {"name": "w", "index": 3} ]
],
"v4-v3": [
[ {"name": "x", "index": 0}, {"name": "y", "index": 1}, {"name": "z", "index": 2}, {"name": "w", "index": 3} ],
[ {"name": "x", "index": 0}, {"name": "y", "index": 1}, {"name": "z", "index": 2}, {"name": "w", "index": 3} ],
[ {"name": "x", "index": 0}, {"name": "y", "index": 1}, {"name": "z", "index": 2}, {"name": "w", "index": 3} ]
]
},
"outputs": [
{
"channels": "v3-v2",
"format_string": "fn %n[0]%n[1](self) -> Vec2<T>;",
"ignore_duplicates": false,
"include_least_index": 2
},
{
"channels": "v3-v2",
"format_string": "fn set_%n[0]%n[1](&mut self, other: Vec2<T>);",
"ignore_duplicates": true,
"include_least_index": 2
},
{
"channels": "v3-v2",
"format_string": "fn %n[0]%n[1](self) -> Vec2<T> {\n Vec2::new(self.%n[0], self.%n[1])\n}\n",
"ignore_duplicates": false,
"include_least_index": 2
},
{
"channels": "v3-v2",
"format_string": "fn set_%n[0]%n[1](&mut self, other: Vec2<T>) {\n self.%n[0] = other.x; self.%n[1] = other.y;\n}\n",
"ignore_duplicates": true,
"include_least_index": 2
},
{
"channels": "v4-v2",
"format_string": "fn %n[0]%n[1](self) -> Vec2<T>;",
"ignore_duplicates": false,
"include_least_index": 3
},
{
"channels": "v4-v2",
"format_string": "fn set_%n[0]%n[1](&mut self, other: Vec2<T>);",
"ignore_duplicates": true,
"include_least_index": 3
},
{
"channels": "v4-v2",
"format_string": "fn %n[0]%n[1](self) -> Vec2<T> {\n Vec2::new(self.%n[0], self.%n[1])\n}\n",
"ignore_duplicates": false,
"include_least_index": 3
},
{
"channels": "v4-v2",
"format_string": "fn set_%n[0]%n[1](&mut self, other: Vec2<T>) {\n self.%n[0] = other.x; self.%n[1] = other.y;\n}\n",
"ignore_duplicates": true,
"include_least_index": 3
},
{
"channels": "v4-v3",
"format_string": "fn %n[0]%n[1]%n[2](self) -> Vec3<T>;",
"ignore_duplicates": false,
"include_least_index": 3
},
{
"channels": "v4-v3",
"format_string": "fn set_%n[0]%n[1]%n[2](&mut self, other: Vec3<T>);",
"ignore_duplicates": true,
"include_least_index": 3
},
{
"channels": "v4-v3",
"format_string": "fn %n[0]%n[1]%n[2](self) -> Vec3<T> {\n Vec3::new(self.%n[0], self.%n[1], self.%n[2])\n}\n",
"ignore_duplicates": false,
"include_least_index": 3
},
{
"channels": "v4-v3",
"format_string": "fn set_%n[0]%n[1]%n[2](&mut self, other: Vec3<T>) {\n self.%n[0] = other.x; self.%n[1] = other.y; self.%n[2] = other.z;\n}\n",
"ignore_duplicates": true,
"include_least_index": 3
}
]
}