summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/root-shader-parameter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx-unit-test/root-shader-parameter.cpp')
-rw-r--r--tools/gfx-unit-test/root-shader-parameter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/root-shader-parameter.cpp b/tools/gfx-unit-test/root-shader-parameter.cpp
index b01cb62f3..b13935c11 100644
--- a/tools/gfx-unit-test/root-shader-parameter.cpp
+++ b/tools/gfx-unit-test/root-shader-parameter.cpp
@@ -113,8 +113,7 @@ namespace gfx_test
auto commandBuffer = transientHeap->createCommandBuffer();
{
auto encoder = commandBuffer->encodeComputeCommands();
- auto root = encoder->bindPipeline(pipelineState);
- root->copyFrom(rootObject, transientHeap);
+ encoder->bindPipelineWithRootObject(pipelineState, rootObject);
encoder->dispatchCompute(1, 1, 1);
encoder->endEncoding();
}