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 /tools/render-test/cpu-compute-util.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 'tools/render-test/cpu-compute-util.cpp')
| -rw-r--r-- | tools/render-test/cpu-compute-util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/render-test/cpu-compute-util.cpp b/tools/render-test/cpu-compute-util.cpp index e8b9e8b32..dc3ea1afa 100644 --- a/tools/render-test/cpu-compute-util.cpp +++ b/tools/render-test/cpu-compute-util.cpp @@ -619,8 +619,8 @@ static SlangResult _newTexture(const InputTextureDesc& desc, slang::TypeLayoutRe /* static */SlangResult CPUComputeUtil::execute(const ExecuteInfo& info) { - CPPPrelude::UniformState* uniformState = (CPPPrelude::UniformState*)info.m_uniformState; - CPPPrelude::UniformEntryPointParams* uniformEntryPointParams = (CPPPrelude::UniformEntryPointParams*)info.m_uniformEntryPointParams; + void* uniformState = info.m_uniformState; + void* uniformEntryPointParams = info.m_uniformEntryPointParams; switch (info.m_style) { |
