From e272aec6a9ddb8b0af82f72c061f5393f2b2bdab Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 19 Feb 2022 00:15:17 -0800 Subject: 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 --- tools/gfx-unit-test/sampler-array.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/gfx-unit-test/sampler-array.cpp') 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(); } -- cgit v1.2.3