summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer/debug-command-encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/debug-layer/debug-command-encoder.cpp')
-rw-r--r--tools/gfx/debug-layer/debug-command-encoder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gfx/debug-layer/debug-command-encoder.cpp b/tools/gfx/debug-layer/debug-command-encoder.cpp
index b7b06c2f4..6838732a0 100644
--- a/tools/gfx/debug-layer/debug-command-encoder.cpp
+++ b/tools/gfx/debug-layer/debug-command-encoder.cpp
@@ -470,16 +470,17 @@ void DebugRayTracingCommandEncoder::deserializeAccelerationStructure(
baseObject->deserializeAccelerationStructure(getInnerObj(dest), source);
}
-void DebugRayTracingCommandEncoder::bindPipeline(
+Result DebugRayTracingCommandEncoder::bindPipeline(
IPipelineState* state, IShaderObject** outRootObject)
{
SLANG_GFX_API_FUNC;
auto innerPipeline = getInnerObj(state);
IShaderObject* innerRootObject = nullptr;
commandBuffer->rootObject.reset();
- baseObject->bindPipeline(innerPipeline, &innerRootObject);
+ Result result = baseObject->bindPipeline(innerPipeline, &innerRootObject);
commandBuffer->rootObject.baseObject.attach(innerRootObject);
*outRootObject = &commandBuffer->rootObject;
+ return result;
}
Result DebugRayTracingCommandEncoder::bindPipelineWithRootObject(