summaryrefslogtreecommitdiffstats
path: root/examples/gpu-printing
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gpu-printing')
-rw-r--r--examples/gpu-printing/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/gpu-printing/main.cpp b/examples/gpu-printing/main.cpp
index a0acb8159..265b4c5ff 100644
--- a/examples/gpu-printing/main.cpp
+++ b/examples/gpu-printing/main.cpp
@@ -121,9 +121,7 @@ Result execute()
auto queue = gDevice->createCommandQueue(queueDesc);
auto commandBuffer = transientHeap->createCommandBuffer();
auto encoder = commandBuffer->encodeComputeCommands();
- auto rootShaderObject = gDevice->createRootShaderObject(gProgram);
- encoder->setPipelineState(gPipelineState);
- encoder->bindRootShaderObject(rootShaderObject);
+ auto rootShaderObject = encoder->bindPipeline(gPipelineState);
encoder->dispatchCompute(1, 1, 1);
encoder->endEncoding();
commandBuffer->close();