summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-20 12:14:31 -0700
committerGitHub <noreply@github.com>2017-06-20 12:14:31 -0700
commit338232bff7144c6a0e7964984765f01d9f9eecb7 (patch)
treee62d8f184bf04df0906fcc6c8a04803febe35376 /examples
parent40617db15d87ece6e7cc88da23f747f8f827c69a (diff)
parent327f2b7ec50a7480b458d6d3ba8e2ca7fcdb8498 (diff)
Merge pull request #36 from tfoleyNV/entry-point-indexing
Overhaul handling of entry points and translation units.
Diffstat (limited to 'examples')
-rw-r--r--examples/hello/hello.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hello/hello.cpp b/examples/hello/hello.cpp
index c9121b790..8e48b3c13 100644
--- a/examples/hello/hello.cpp
+++ b/examples/hello/hello.cpp
@@ -100,8 +100,8 @@ HRESULT initialize( ID3D11Device* dxDevice )
char const* vertexProfileName = "vs_4_0";
char const* fragmentProfileName = "ps_4_0";
- spAddTranslationUnitEntryPoint(slangRequest, translationUnitIndex, vertexEntryPointName, spFindProfile(slangSession, vertexProfileName));
- spAddTranslationUnitEntryPoint(slangRequest, translationUnitIndex, fragmentEntryPointName, spFindProfile(slangSession, fragmentProfileName));
+ spAddEntryPoint(slangRequest, translationUnitIndex, vertexEntryPointName, spFindProfile(slangSession, vertexProfileName));
+ spAddEntryPoint(slangRequest, translationUnitIndex, fragmentEntryPointName, spFindProfile(slangSession, fragmentProfileName));
int compileErr = spCompile(slangRequest);
if(auto diagnostics = spGetDiagnosticOutput(slangRequest))