diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-18 15:06:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-18 15:06:14 -0700 |
| commit | 515d8eb0cd719ae31db2f6e03751011a123bc0ba (patch) | |
| tree | 3e78893a74af856fb29158078bed7099a567f5dd /examples/cpu-hello-world/main.cpp | |
| parent | e2d21026d115dc61296b47dcc990534f1844bc7f (diff) | |
| parent | aa6aca498cd1f7fbbdb143e72dd48b1d714c8fbb (diff) | |
Merge branch 'master' into feature/prelude-fix
Diffstat (limited to 'examples/cpu-hello-world/main.cpp')
| -rw-r--r-- | examples/cpu-hello-world/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cpu-hello-world/main.cpp b/examples/cpu-hello-world/main.cpp index 6e06f64bc..8f22aac6d 100644 --- a/examples/cpu-hello-world/main.cpp +++ b/examples/cpu-hello-world/main.cpp @@ -61,8 +61,8 @@ static SlangResult _innerMain(int argc, char** argv) // directory called 'slang-cpp-prelude.h'. // // We need to tell slang either the contents of the prelude, or suitable include/s - // that will work. The actual API call to set the prelude is `setDownstreamCompilerPrelude` - // and this just sets for a specific backend a bit of text placed before generated code. + // that will work. The actual API call to set the prelude is `setPrelude` + // and this just sets for a specific language a bit of text placed before generated code. // // Most downstream C++ compilers work on files. In that case slang may generate temporary // files that contain the generated code. Typically the generated files will not be in the @@ -184,7 +184,7 @@ static SlangResult _innerMain(int argc, char** argv) // We don't have any entry point parameters so that's passed as NULL // We need to cast our definition of the uniform state to the undefined CPPPrelude::UniformState as // that type is just a name to indicate what kind of thing needs to be passed in. - func(&varyingInput, NULL, (CPPPrelude::UniformState*)&uniformState); + func(&varyingInput, NULL, &uniformState); // bufferContents holds the output |
