summaryrefslogtreecommitdiffstats
path: root/prelude
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-08-07 18:36:01 -0700
committerGitHub <noreply@github.com>2020-08-07 18:36:01 -0700
commitdd980b492aba9ea1540193434184489d9d04608d (patch)
tree2974ad7462bc540729f1685ea6cf31d337f39648 /prelude
parent20af567033dedea15abb22fb7d344d116d7b99c5 (diff)
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.
Diffstat (limited to 'prelude')
-rw-r--r--prelude/slang-cpp-types.h2
1 files changed, 2 insertions, 0 deletions
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<size_t N>
struct AnyValue
{
@@ -60,6 +61,7 @@ T unpackAnyValue(const AnyValue<N>& val)
memcpy(&result, &val, sizeof(T));
return result;
}
+#endif
/* Constant buffers become a pointer to the contained type, so ConstantBuffer<T> becomes T* in C++ code.
*/