diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-06-18 11:38:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-18 11:38:30 -0400 |
| commit | 5a86cd4880f8f086631352cb5d67d60c58c087f4 (patch) | |
| tree | 2f65acc5158f4c6632f299de6f4600f20b93c35a /examples/cpu-hello-world/main.cpp | |
| parent | 31ae3467242995ab822a29c4148c2e86df2f1eb8 (diff) | |
Improvements around C++ code generation (#1396)
* * Remove UniformState and UniformEntryPointParams types
* Put all output C++ source in an anonymous namespace
* If SLANG_PRELUDE_NAMESPACE is set, make what it defines available in generated file.
* Fix signature issue in performance-profile.slang
* Context -> KernelContext to avoid ambiguity.
* Fix issues around dynamic dispatch and anonymous namespace.
* Fix typo.
Diffstat (limited to 'examples/cpu-hello-world/main.cpp')
| -rw-r--r-- | examples/cpu-hello-world/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpu-hello-world/main.cpp b/examples/cpu-hello-world/main.cpp index 6e06f64bc..4302e6069 100644 --- a/examples/cpu-hello-world/main.cpp +++ b/examples/cpu-hello-world/main.cpp @@ -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 |
