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. --- source/slang/slang-emit-cuda.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-emit-cuda.cpp') 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 { -- cgit v1.2.3