summaryrefslogtreecommitdiffstats
path: root/tools/render-test
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2020-06-18 13:40:08 -0700
committerGitHub <noreply@github.com>2020-06-18 13:40:08 -0700
commit82ba914db9c3823ad7a0834d46b7fccedfe0acee (patch)
treea2361c042e6a03ff957bd4a921f73efbb89dc1b7 /tools/render-test
parent8c6e02bd094bbc0c9afb141265be9675f99ddb61 (diff)
parent5952e3b3d7f505a7e6d71ecd0793911224f5bac3 (diff)
Merge branch 'master' into dyndispatch
Diffstat (limited to 'tools/render-test')
-rw-r--r--tools/render-test/cpu-compute-util.cpp4
-rw-r--r--tools/render-test/slang-support.cpp2
2 files changed, 3 insertions, 3 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)
{
diff --git a/tools/render-test/slang-support.cpp b/tools/render-test/slang-support.cpp
index 3e5cc9a1c..da6ceb010 100644
--- a/tools/render-test/slang-support.cpp
+++ b/tools/render-test/slang-support.cpp
@@ -265,7 +265,7 @@ static gfx::StageType _translateStage(SlangStage slangStage)
{
// Add an include of the prelude
ComPtr<ISlangBlob> prelude;
- session->getDownstreamCompilerPrelude(SLANG_PASS_THROUGH_GENERIC_C_CPP, prelude.writeRef());
+ session->getLanguagePrelude(input.sourceLanguage, prelude.writeRef());
String preludeString = StringUtil::getString(prelude);