From 3fe4f5398d524333e955ecb91be5646e86f3b2da Mon Sep 17 00:00:00 2001 From: Dietrich Geisler Date: Wed, 24 Jun 2020 17:22:58 -0400 Subject: Heterogeneous example (#1399) * Introduced heterogeneous example. Example includes C++ source and header files, and does not currently make use of the associated slang file when building. The intent of this commit is to introduce the example as a baseline for later updates as the heterogeneous model is expanded. * Changing namespace * Renamed and rewrote README * Updated example to account for compiler updates * Updated path Co-authored-by: Tim Foley --- examples/cpu-hello-world/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/cpu-hello-world/main.cpp') diff --git a/examples/cpu-hello-world/main.cpp b/examples/cpu-hello-world/main.cpp index 8f22aac6d..898347b47 100644 --- a/examples/cpu-hello-world/main.cpp +++ b/examples/cpu-hello-world/main.cpp @@ -40,6 +40,8 @@ using namespace Slang; #define SLANG_PRELUDE_NAMESPACE CPPPrelude #include "../../prelude/slang-cpp-types.h" +struct UniformState; + static SlangResult _innerMain(int argc, char** argv) { // First, we need to create a "session" for interacting with the Slang -- cgit v1.2.3