Skip to content

Commit

Permalink
[d3d9] Allow getting ID3D9VkInteropTexture from surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Aug 8, 2024
1 parent 7c9e1ed commit bdfd301
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/d3d9/d3d9_surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit bdfd301

Please sign in to comment.