From a2401a6ae6c50aeb6ffc196144569bb5253cdf95 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 12 Feb 2021 12:20:17 -0800 Subject: Support `bit_cast` between complex types. (#1702) * Support `bit_cast` between complex types. * Fix vs project file * Fix clang build error * fix * fix * Fix * FIx * Fix * Fix * Fix * Fix * Fix linux compile error Co-authored-by: Tim Foley --- source/slang/core.meta.slang | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/slang/core.meta.slang') diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index 55f6c607b..887852cbc 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -1913,6 +1913,11 @@ ${{{{ }}}} +// Bit cast +__generic +[__unsafeForceInlineEarly] +__intrinsic_op($(kIROp_BitCast)) +T bit_cast(U value); // Specialized function -- cgit v1.2.3