diff options
| author | Dietrich Geisler <dag368@cornell.edu> | 2020-06-24 17:22:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-24 14:22:58 -0700 |
| commit | 3fe4f5398d524333e955ecb91be5646e86f3b2da (patch) | |
| tree | 2a0537013773cd581f05701d573a4fd5eb01266b /examples/cpu-hello-world/main.cpp | |
| parent | ae41db80aa95ee7243d91a3ae4f56e6deb17f7f4 (diff) | |
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 <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'examples/cpu-hello-world/main.cpp')
| -rw-r--r-- | examples/cpu-hello-world/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
