diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2016-03-27 23:15:55 +0200 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2016-03-27 23:15:55 +0200 |
commit | d720ed7cd0720668f87053728519cbcac326940e (patch) | |
tree | 9a53a06e8b40541ecf5e5eb46acdc71e2220cd9c /ddl/out/LambdaCube.IR.cpp | |
parent | b2cae2db744cfca2825bf1e7a1c1ed41ce105c3e (diff) |
fix C# json loading
Diffstat (limited to 'ddl/out/LambdaCube.IR.cpp')
-rw-r--r-- | ddl/out/LambdaCube.IR.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ddl/out/LambdaCube.IR.cpp b/ddl/out/LambdaCube.IR.cpp index 719379d..9f1f999 100644 --- a/ddl/out/LambdaCube.IR.cpp +++ b/ddl/out/LambdaCube.IR.cpp | |||
@@ -1,5 +1,5 @@ | |||
1 | // generated file, do not modify! | 1 | // generated file, do not modify! |
2 | // 2016-03-21T15:32:16.153401000000Z | 2 | // 2016-03-27T21:14:11.531713000000Z |
3 | 3 | ||
4 | #include "LambdaCube.IR.hpp" | 4 | #include "LambdaCube.IR.hpp" |
5 | template<> json toJSON<std::shared_ptr<ArrayValue>>(std::shared_ptr<ArrayValue> &v) { | 5 | template<> json toJSON<std::shared_ptr<ArrayValue>>(std::shared_ptr<ArrayValue> &v) { |
@@ -2800,6 +2800,9 @@ template<> json toJSON<std::shared_ptr<Backend>>(std::shared_ptr<Backend> &v) { | |||
2800 | case ::Backend::tag::OpenGL33: | 2800 | case ::Backend::tag::OpenGL33: |
2801 | obj["tag"] = "OpenGL33"; | 2801 | obj["tag"] = "OpenGL33"; |
2802 | break; | 2802 | break; |
2803 | case ::Backend::tag::DirectX11: | ||
2804 | obj["tag"] = "DirectX11"; | ||
2805 | break; | ||
2803 | } | 2806 | } |
2804 | return obj; | 2807 | return obj; |
2805 | } | 2808 | } |
@@ -2813,6 +2816,9 @@ template<> std::shared_ptr<Backend> fromJSON<std::shared_ptr<Backend>>(W<std::sh | |||
2813 | else if (tag == "OpenGL33") { | 2816 | else if (tag == "OpenGL33") { |
2814 | tagType = ::Backend::tag::OpenGL33; | 2817 | tagType = ::Backend::tag::OpenGL33; |
2815 | } | 2818 | } |
2819 | else if (tag == "DirectX11") { | ||
2820 | tagType = ::Backend::tag::DirectX11; | ||
2821 | } | ||
2816 | else throw "unknown constructor: " + tag; | 2822 | else throw "unknown constructor: " + tag; |
2817 | std::shared_ptr<::Backend> o(new ::Backend()); | 2823 | std::shared_ptr<::Backend> o(new ::Backend()); |
2818 | o->tag = tagType; | 2824 | o->tag = tagType; |