summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-cuda.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-06-18 11:38:30 -0400
committerGitHub <noreply@github.com>2020-06-18 11:38:30 -0400
commit5a86cd4880f8f086631352cb5d67d60c58c087f4 (patch)
tree2f65acc5158f4c6632f299de6f4600f20b93c35a /source/slang/slang-emit-cuda.cpp
parent31ae3467242995ab822a29c4148c2e86df2f1eb8 (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 'source/slang/slang-emit-cuda.cpp')
-rw-r--r--source/slang/slang-emit-cuda.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp
index 25b06027d..06bbbea96 100644
--- a/source/slang/slang-emit-cuda.cpp
+++ b/source/slang/slang-emit-cuda.cpp
@@ -866,10 +866,10 @@ void CUDASourceEmitter::emitModuleImpl(IRModule* module)
//
// At the binary level, our generated CUDA compute kernels will take
// two pointer parameters: the first points to the per-entry-point
- // `uniform` parameter data, and the second poinst to the global-scope
+ // `uniform` parameter data, and the second points to the global-scope
// parameter data (if any).
//
- m_writer->emit("(UniformEntryPointParams* entryPointShaderParameters, UniformState* uniformState)");
+ m_writer->emit("(void* entryPointShaderParameters, void* uniformState)");
}
else
{