From e38693cdbc77668d4ddf63d5301f8b9cb9285131 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 7 Aug 2024 20:53:05 -0700 Subject: [PATCH] [d3d9] Allow querying ID3D9VkInteropTexture from surfaces --- src/d3d9/d3d9_surface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d3d9/d3d9_surface.cpp b/src/d3d9/d3d9_surface.cpp index a9827a07a..a9e3d24da 100644 --- a/src/d3d9/d3d9_surface.cpp +++ b/src/d3d9/d3d9_surface.cpp @@ -74,6 +74,11 @@ namespace dxvk { return S_OK; } + if (riid == __uuidof(ID3D9VkInteropTexture)) { + *ppvObject = ref(m_texture->GetVkInterop()); + return S_OK; + } + if (logQueryInterfaceError(__uuidof(IDirect3DSurface9), riid)) { Logger::warn("D3D9Surface::QueryInterface: Unknown interface query"); Logger::warn(str::format(riid));