From 1c2c4908c64396de2d1bee197c8f000ae2fed0fc Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 14 Dec 2022 09:37:55 -0800 Subject: Fix code generation for matrix reshape. (#2568) Co-authored-by: Yong He --- prelude/slang-cpp-types.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'prelude') 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 -struct AnyValue -{ - uint8_t data[N]; -}; -template -AnyValue packAnyValue(const T& val) -{ - AnyValue result; - memcpy(&result, &val, sizeof(T)); - return result; -} -template -T unpackAnyValue(const AnyValue& val) -{ - T result; - 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