diff options
Diffstat (limited to 'tools/gfx/debug-layer/debug-device.cpp')
| -rw-r--r-- | tools/gfx/debug-layer/debug-device.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/gfx/debug-layer/debug-device.cpp b/tools/gfx/debug-layer/debug-device.cpp index 7790149b6..45374b64f 100644 --- a/tools/gfx/debug-layer/debug-device.cpp +++ b/tools/gfx/debug-layer/debug-device.cpp @@ -26,6 +26,20 @@ using namespace Slang; namespace debug { +SlangResult DebugDevice::queryInterface(SlangUUID const& uuid, void** outObject) noexcept +{ + void* intf = getInterface(uuid); + if (intf) + { + addRef(); + *outObject = intf; + return SLANG_OK; + } + + // Fallback to trying to get the interface from the debugged object + return baseObject->queryInterface(uuid, outObject); +} + Result DebugDevice::getNativeDeviceHandles(InteropHandles* outHandles) { return baseObject->getNativeDeviceHandles(outHandles); |
