From 348058f96e81d11da2698acf8343a99a199f1f24 Mon Sep 17 00:00:00 2001 From: Dietrich Geisler Date: Mon, 27 Jul 2020 12:14:17 -0400 Subject: Baseline Heterogeneous Example (#1460) * Baseline Heterogeneous Example This PR introduces a baseline heterogeneous example, including both a Slang file and an associated C++ helper file. This refactoring primarily moves the Slang file "into the driver's seat" while maintaining that the C++ side still does most of the actual work. * Fix to prelude path --- source/slang/slang-lower-to-ir.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source') diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index c72f7aca5..54e82848c 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -1416,6 +1416,12 @@ struct ValLoweringVisitor : ValVisitorgetValueType()); + return getBuilder()->getPtrType(valueType); + } + IRType* visitDeclRefType(DeclRefType* type) { auto declRef = type->declRef; -- cgit v1.2.3