Skip to content

Commit

Permalink
[d3d9] Add ID3D9VkInteropTexture to volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Oct 29, 2024
1 parent e499f2e commit 97bf614
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/d3d9/d3d9_interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ ID3D9VkInteropInterface : public IUnknown {
/**
* \brief D3D9 texture interface for Vulkan interop
*
* Provides access to the backing resource of a
* D3D9 texture or surface.
* Provides access to the backing image of a
* D3D9 texture, surface, or volume.
*/
MIDL_INTERFACE("d56344f5-8d35-46fd-806d-94c351b472c1")
ID3D9VkInteropTexture : public IUnknown {
Expand Down
5 changes: 5 additions & 0 deletions src/d3d9/d3d9_volume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ namespace dxvk {
return S_OK;
}

if (riid == __uuidof(ID3D9VkInteropTexture)) {
*ppvObject = ref(m_texture->GetVkInterop());
return S_OK;
}

if (logQueryInterfaceError(__uuidof(IDirect3DVolume9), riid)) {
Logger::warn("D3D9Volume::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
Expand Down

0 comments on commit 97bf614

Please sign in to comment.