summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/sampler-array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx-unit-test/sampler-array.cpp')
-rw-r--r--tools/gfx-unit-test/sampler-array.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/sampler-array.cpp b/tools/gfx-unit-test/sampler-array.cpp
index 58e48e13d..945c31b07 100644
--- a/tools/gfx-unit-test/sampler-array.cpp
+++ b/tools/gfx-unit-test/sampler-array.cpp
@@ -138,8 +138,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();
}