summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.h
diff options
context:
space:
mode:
authorDietrich Geisler <dag368@cornell.edu>2020-07-31 17:51:52 -0400
committerGitHub <noreply@github.com>2020-07-31 14:51:52 -0700
commit011a743668e7cd0b7cf97d27e3bed7d519794aeb (patch)
tree49cf484df958aa705ff910631e8f732a6f0a57b9 /source/slang/slang-compiler.h
parent4549597709e29b85b5f95503f4f2258c16db12be (diff)
Binary for Heterogeneous Example (#1467)
* Binary Heterogeneous Example This PR introduces the ability to insert the binary of a non-CPU target by using the -heterogeneous flag. Specifically, this PR updates the emitting logic to produce a variable of name `__[name_of_entryPoint]` when the heterogeneous flag is present. * Prelude path fix Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-compiler.h')
-rwxr-xr-xsource/slang/slang-compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h
index 146cf9ed0..19f56031d 100755
--- a/source/slang/slang-compiler.h
+++ b/source/slang/slang-compiler.h
@@ -1265,6 +1265,9 @@ namespace Slang
bool m_obfuscateCode = false;
+ // Determine whether to output heterogeneity-related code
+ bool m_heterogeneous = false;
+
// Name pool for looking up names
NamePool namePool;