summaryrefslogtreecommitdiffstats
path: root/prelude
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-12-14 09:37:55 -0800
committerGitHub <noreply@github.com>2022-12-14 09:37:55 -0800
commit1c2c4908c64396de2d1bee197c8f000ae2fed0fc (patch)
tree9156050fd8613ded46b7b2a2bf6c3bf139663521 /prelude
parent5ce8d4c146fef7c8890cd40e112858db69702bd2 (diff)
Fix code generation for matrix reshape. (#2568)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'prelude')
-rw-r--r--prelude/slang-cpp-types.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/prelude/slang-cpp-types.h b/prelude/slang-cpp-types.h
index 7aef25650..c15c5ec40 100644
--- a/prelude/slang-cpp-types.h
+++ b/prelude/slang-cpp-types.h
@@ -76,28 +76,6 @@ struct Array
size_t count;
};
-#if 0
-template<size_t N>
-struct AnyValue
-{
- uint8_t data[N];
-};
-template<size_t N, typename T>
-AnyValue<N> packAnyValue(const T& val)
-{
- AnyValue<N> result;
- memcpy(&result, &val, sizeof(T));
- return result;
-}
-template<size_t N, typename T>
-T unpackAnyValue(const AnyValue<N>& val)
-{
- T result;
- 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.
*/