diff options
Diffstat (limited to 'tools/gfx/debug-layer.cpp')
| -rw-r--r-- | tools/gfx/debug-layer.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/gfx/debug-layer.cpp b/tools/gfx/debug-layer.cpp index 067581559..50cacc6c2 100644 --- a/tools/gfx/debug-layer.cpp +++ b/tools/gfx/debug-layer.cpp @@ -705,6 +705,7 @@ DebugCommandBuffer::DebugCommandBuffer() m_renderCommandEncoder.commandBuffer = this; m_computeCommandEncoder.commandBuffer = this; m_resourceCommandEncoder.commandBuffer = this; + m_rayTracingCommandEncoder.commandBuffer = this; } void DebugCommandBuffer::encodeRenderCommands( @@ -1084,6 +1085,25 @@ void DebugRayTracingCommandEncoder::memoryBarrier( baseObject->memoryBarrier(count, innerAS.getBuffer(), sourceAccess, destAccess); } +void DebugRayTracingCommandEncoder::bindPipeline( + IPipelineState* state, IShaderObject** outRootObject) +{ + SLANG_GFX_API_FUNC; + auto innerPipeline = getInnerObj(state); + baseObject->bindPipeline(innerPipeline, commandBuffer->rootObject.baseObject.writeRef()); + *outRootObject = &commandBuffer->rootObject; +} + +void DebugRayTracingCommandEncoder::dispatchRays( + const char* rayGenShaderName, + int32_t width, + int32_t height, + int32_t depth) +{ + SLANG_GFX_API_FUNC; + baseObject->dispatchRays(rayGenShaderName, width, height, depth); +} + const ICommandQueue::Desc& DebugCommandQueue::getDesc() { SLANG_GFX_API_FUNC; |
