diff options
Diffstat (limited to 'ddl/out/LambdaCube.PipelineSchema.cs')
-rw-r--r-- | ddl/out/LambdaCube.PipelineSchema.cs | 126 |
1 files changed, 40 insertions, 86 deletions
diff --git a/ddl/out/LambdaCube.PipelineSchema.cs b/ddl/out/LambdaCube.PipelineSchema.cs index 68acd42..acdbcc1 100644 --- a/ddl/out/LambdaCube.PipelineSchema.cs +++ b/ddl/out/LambdaCube.PipelineSchema.cs | |||
@@ -1,5 +1,5 @@ | |||
1 | // generated file, do not modify! | 1 | // generated file, do not modify! |
2 | // 2016-03-21T13:14:18.137981000000Z | 2 | // 2016-03-21T13:31:10.293368000000Z |
3 | 3 | ||
4 | using System; | 4 | using System; |
5 | using System.Linq; | 5 | using System.Linq; |
@@ -112,103 +112,57 @@ namespace LambdaCube.PipelineSchema { | |||
112 | case Type.StreamType: { | 112 | case Type.StreamType: { |
113 | string tag = (string)obj["tag"]; | 113 | string tag = (string)obj["tag"]; |
114 | StreamType.Tag tagType; | 114 | StreamType.Tag tagType; |
115 | if (tag == "Attribute_Word") { | 115 | switch (tag) { |
116 | tagType = StreamType.Tag.Attribute_Word; | 116 | case "Attribute_Word": tagType = StreamType.Tag.Attribute_Word; break; |
117 | case "Attribute_V2U": tagType = StreamType.Tag.Attribute_V2U; break; | ||
118 | case "Attribute_V3U": tagType = StreamType.Tag.Attribute_V3U; break; | ||
119 | case "Attribute_V4U": tagType = StreamType.Tag.Attribute_V4U; break; | ||
120 | case "Attribute_Int": tagType = StreamType.Tag.Attribute_Int; break; | ||
121 | case "Attribute_V2I": tagType = StreamType.Tag.Attribute_V2I; break; | ||
122 | case "Attribute_V3I": tagType = StreamType.Tag.Attribute_V3I; break; | ||
123 | case "Attribute_V4I": tagType = StreamType.Tag.Attribute_V4I; break; | ||
124 | case "Attribute_Float": tagType = StreamType.Tag.Attribute_Float; break; | ||
125 | case "Attribute_V2F": tagType = StreamType.Tag.Attribute_V2F; break; | ||
126 | case "Attribute_V3F": tagType = StreamType.Tag.Attribute_V3F; break; | ||
127 | case "Attribute_V4F": tagType = StreamType.Tag.Attribute_V4F; break; | ||
128 | case "Attribute_M22F": tagType = StreamType.Tag.Attribute_M22F; break; | ||
129 | case "Attribute_M23F": tagType = StreamType.Tag.Attribute_M23F; break; | ||
130 | case "Attribute_M24F": tagType = StreamType.Tag.Attribute_M24F; break; | ||
131 | case "Attribute_M32F": tagType = StreamType.Tag.Attribute_M32F; break; | ||
132 | case "Attribute_M33F": tagType = StreamType.Tag.Attribute_M33F; break; | ||
133 | case "Attribute_M34F": tagType = StreamType.Tag.Attribute_M34F; break; | ||
134 | case "Attribute_M42F": tagType = StreamType.Tag.Attribute_M42F; break; | ||
135 | case "Attribute_M43F": tagType = StreamType.Tag.Attribute_M43F; break; | ||
136 | case "Attribute_M44F": tagType = StreamType.Tag.Attribute_M44F; break; | ||
137 | default: throw new Exception("unknown constructor: " + tag); | ||
117 | } | 138 | } |
118 | else if (tag == "Attribute_V2U") { | ||
119 | tagType = StreamType.Tag.Attribute_V2U; | ||
120 | } | ||
121 | else if (tag == "Attribute_V3U") { | ||
122 | tagType = StreamType.Tag.Attribute_V3U; | ||
123 | } | ||
124 | else if (tag == "Attribute_V4U") { | ||
125 | tagType = StreamType.Tag.Attribute_V4U; | ||
126 | } | ||
127 | else if (tag == "Attribute_Int") { | ||
128 | tagType = StreamType.Tag.Attribute_Int; | ||
129 | } | ||
130 | else if (tag == "Attribute_V2I") { | ||
131 | tagType = StreamType.Tag.Attribute_V2I; | ||
132 | } | ||
133 | else if (tag == "Attribute_V3I") { | ||
134 | tagType = StreamType.Tag.Attribute_V3I; | ||
135 | } | ||
136 | else if (tag == "Attribute_V4I") { | ||
137 | tagType = StreamType.Tag.Attribute_V4I; | ||
138 | } | ||
139 | else if (tag == "Attribute_Float") { | ||
140 | tagType = StreamType.Tag.Attribute_Float; | ||
141 | } | ||
142 | else if (tag == "Attribute_V2F") { | ||
143 | tagType = StreamType.Tag.Attribute_V2F; | ||
144 | } | ||
145 | else if (tag == "Attribute_V3F") { | ||
146 | tagType = StreamType.Tag.Attribute_V3F; | ||
147 | } | ||
148 | else if (tag == "Attribute_V4F") { | ||
149 | tagType = StreamType.Tag.Attribute_V4F; | ||
150 | } | ||
151 | else if (tag == "Attribute_M22F") { | ||
152 | tagType = StreamType.Tag.Attribute_M22F; | ||
153 | } | ||
154 | else if (tag == "Attribute_M23F") { | ||
155 | tagType = StreamType.Tag.Attribute_M23F; | ||
156 | } | ||
157 | else if (tag == "Attribute_M24F") { | ||
158 | tagType = StreamType.Tag.Attribute_M24F; | ||
159 | } | ||
160 | else if (tag == "Attribute_M32F") { | ||
161 | tagType = StreamType.Tag.Attribute_M32F; | ||
162 | } | ||
163 | else if (tag == "Attribute_M33F") { | ||
164 | tagType = StreamType.Tag.Attribute_M33F; | ||
165 | } | ||
166 | else if (tag == "Attribute_M34F") { | ||
167 | tagType = StreamType.Tag.Attribute_M34F; | ||
168 | } | ||
169 | else if (tag == "Attribute_M42F") { | ||
170 | tagType = StreamType.Tag.Attribute_M42F; | ||
171 | } | ||
172 | else if (tag == "Attribute_M43F") { | ||
173 | tagType = StreamType.Tag.Attribute_M43F; | ||
174 | } | ||
175 | else if (tag == "Attribute_M44F") { | ||
176 | tagType = StreamType.Tag.Attribute_M44F; | ||
177 | } | ||
178 | else throw new Exception("unknown constructor: " + tag); | ||
179 | StreamType o = new StreamType(); | 139 | StreamType o = new StreamType(); |
180 | o.tag = tagType; | 140 | o.tag = tagType; |
181 | return o; | 141 | return o; |
182 | } | 142 | } |
183 | case Type.ObjectArraySchema: { | 143 | case Type.ObjectArraySchema: { |
184 | string tag = (string)obj["tag"]; | 144 | string tag = (string)obj["tag"]; |
185 | ObjectArraySchema.Tag tagType; | 145 | switch (tag) { |
186 | if (tag == "ObjectArraySchema") { | 146 | case "ObjectArraySchema": { |
187 | tagType = ObjectArraySchema.Tag.ObjectArraySchema; | 147 | data.ObjectArraySchema tv = new data.ObjectArraySchema(); |
188 | data.ObjectArraySchema tv = new data.ObjectArraySchema(); | 148 | tv.primitive = (global::LambdaCube.PipelineSchema.FetchPrimitive)fromJSON(Type.FetchPrimitive,obj["primitive"]); |
189 | tv.primitive = (global::LambdaCube.PipelineSchema.FetchPrimitive)fromJSON(Type.FetchPrimitive,obj["primitive"]); | 149 | tv.attributes = (Dictionary<string, global::LambdaCube.PipelineSchema.StreamType>)fromJSON(Type.Map_String_StreamType,obj["attributes"]); |
190 | tv.attributes = (Dictionary<string, global::LambdaCube.PipelineSchema.StreamType>)fromJSON(Type.Map_String_StreamType,obj["attributes"]); | 150 | return tv; |
191 | return tv; | 151 | } |
152 | default: throw new Exception("unknown constructor: " + tag); | ||
192 | } | 153 | } |
193 | else throw new Exception("unknown constructor: " + tag); | ||
194 | ObjectArraySchema o = new ObjectArraySchema(); | ||
195 | o.tag = tagType; | ||
196 | return o; | ||
197 | } | 154 | } |
198 | case Type.PipelineSchema: { | 155 | case Type.PipelineSchema: { |
199 | string tag = (string)obj["tag"]; | 156 | string tag = (string)obj["tag"]; |
200 | PipelineSchema.Tag tagType; | 157 | switch (tag) { |
201 | if (tag == "PipelineSchema") { | 158 | case "PipelineSchema": { |
202 | tagType = PipelineSchema.Tag.PipelineSchema; | 159 | data.PipelineSchema tv = new data.PipelineSchema(); |
203 | data.PipelineSchema tv = new data.PipelineSchema(); | 160 | tv.objectArrays = (Dictionary<string, global::LambdaCube.PipelineSchema.ObjectArraySchema>)fromJSON(Type.Map_String_ObjectArraySchema,obj["objectArrays"]); |
204 | tv.objectArrays = (Dictionary<string, global::LambdaCube.PipelineSchema.ObjectArraySchema>)fromJSON(Type.Map_String_ObjectArraySchema,obj["objectArrays"]); | 161 | tv.uniforms = (Dictionary<string, global::LambdaCube.PipelineSchema.InputType>)fromJSON(Type.Map_String_InputType,obj["uniforms"]); |
205 | tv.uniforms = (Dictionary<string, global::LambdaCube.PipelineSchema.InputType>)fromJSON(Type.Map_String_InputType,obj["uniforms"]); | 162 | return tv; |
206 | return tv; | 163 | } |
164 | default: throw new Exception("unknown constructor: " + tag); | ||
207 | } | 165 | } |
208 | else throw new Exception("unknown constructor: " + tag); | ||
209 | PipelineSchema o = new PipelineSchema(); | ||
210 | o.tag = tagType; | ||
211 | return o; | ||
212 | } | 166 | } |
213 | } | 167 | } |
214 | throw new Exception("unknown type"); | 168 | throw new Exception("unknown type"); |