summaryrefslogtreecommitdiffstats
path: root/tools/render-test/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/main.cpp')
-rw-r--r--tools/render-test/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/render-test/main.cpp b/tools/render-test/main.cpp
index f72a05824..767c33e14 100644
--- a/tools/render-test/main.cpp
+++ b/tools/render-test/main.cpp
@@ -131,12 +131,9 @@ SlangResult RenderTestApp::initialize(Renderer* renderer, ShaderCompiler* shader
// in the test file
if ((gOptions.shaderType == Options::ShaderProgramType::Graphics || gOptions.shaderType == Options::ShaderProgramType::GraphicsCompute)
- && bindingStateDesc.findBindingIndex(Resource::BindFlag::ConstantBuffer, -1, 0) < 0)
+ && bindingStateDesc.findBindingIndex(Resource::BindFlag::ConstantBuffer, 0) < 0)
{
- BindingState::ShaderBindSet shaderBindSet;
- shaderBindSet.setAll(bindingStateDesc.makeCompactSlice(0));
-
- bindingStateDesc.addResource(BindingType::Buffer, m_constantBuffer, shaderBindSet);
+ bindingStateDesc.addResource(BindingType::Buffer, m_constantBuffer, BindingState::RegisterRange::makeSingle(0) );
m_numAddedConstantBuffers++;
}