From dd980b492aba9ea1540193434184489d9d04608d Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 7 Aug 2020 18:36:01 -0700 Subject: AnyValue packing/unpacking pass. (#1480) * AnyValue packing/unpacking pass. * Add diagnostic for types that does not fit in required AnyValueSize. * Add expected test result * Fix warnings. --- prelude/slang-cpp-types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'prelude') diff --git a/prelude/slang-cpp-types.h b/prelude/slang-cpp-types.h index 49461e4f4..69e69f8df 100644 --- a/prelude/slang-cpp-types.h +++ b/prelude/slang-cpp-types.h @@ -41,6 +41,7 @@ struct Array size_t count; }; +#if 0 template struct AnyValue { @@ -60,6 +61,7 @@ T unpackAnyValue(const AnyValue& val) memcpy(&result, &val, sizeof(T)); return result; } +#endif /* Constant buffers become a pointer to the contained type, so ConstantBuffer becomes T* in C++ code. */ -- cgit v1.2.3