summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/nested-parameter-block.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-02-19 00:15:17 -0800
committerGitHub <noreply@github.com>2022-02-19 00:15:17 -0800
commite272aec6a9ddb8b0af82f72c061f5393f2b2bdab (patch)
tree11ec24a9464f5922e896bfff6e125c2d6279d4b3 /tools/gfx-unit-test/nested-parameter-block.cpp
parente993ff5f8d21d77dd3fb579f7afc51c6dcad834c (diff)
Optimize d3d12 mutable shader object implementation. (#2138)
* Optimize d3d12 mutable shader object implementation. * Disable mismatched clear value warning message from d3d sdk. * Fix. * Fix. * gfx: Avoid redundant d3d12 QueryInterface call. Co-authored-by: Yong He <yhe@nvidia.com>
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();