summaryrefslogtreecommitdiffstats
path: root/prelude
diff options
context:
space:
mode:
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.
*/