summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/nested-parameter-block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx-unit-test/nested-parameter-block.cpp')
-rw-r--r--tools/gfx-unit-test/nested-parameter-block.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/gfx-unit-test/nested-parameter-block.cpp b/tools/gfx-unit-test/nested-parameter-block.cpp
index b21b0bcf2..774a94c5f 100644
--- a/tools/gfx-unit-test/nested-parameter-block.cpp
+++ b/tools/gfx-unit-test/nested-parameter-block.cpp
@@ -128,9 +128,8 @@ namespace gfx_test
auto commandBuffer = transientHeap->createCommandBuffer();
auto encoder = commandBuffer->encodeComputeCommands();
- auto rootObject = encoder->bindPipeline(pipelineState);
- rootObject->copyFrom(shaderObject, transientHeap);
-
+ encoder->bindPipelineWithRootObject(pipelineState, shaderObject);
+
encoder->dispatchCompute(1, 1, 1);
encoder->endEncoding();
commandBuffer->close();