From 5a86cd4880f8f086631352cb5d67d60c58c087f4 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 18 Jun 2020 11:38:30 -0400 Subject: 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. --- examples/cpu-hello-world/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/cpu-hello-world/main.cpp') 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 -- cgit v1.2.3