1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-18 13:54:16 +01:00

[d3d10] Add GetD3D11Resource helper

This commit is contained in:
Philip Rebohle 2018-08-11 20:57:10 +02:00
parent a8f3a5219b
commit 8b87db87f8
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 19 additions and 0 deletions

View File

@ -37,6 +37,15 @@ namespace dxvk {
} }
void GetD3D11Resource(
ID3D10Resource* pSrcResource,
ID3D11Resource** ppDstResource) {
pSrcResource->QueryInterface(
__uuidof(ID3D11Resource),
reinterpret_cast<void**>(ppDstResource));
}
void GetD3D10Device( void GetD3D10Device(
ID3D11DeviceChild* pObject, ID3D11DeviceChild* pObject,
ID3D10Device** ppDevice) { ID3D10Device** ppDevice) {

View File

@ -15,6 +15,16 @@ namespace dxvk {
UINT ConvertD3D10ResourceFlags(UINT MiscFlags); UINT ConvertD3D10ResourceFlags(UINT MiscFlags);
UINT ConvertD3D11ResourceFlags(UINT MiscFlags); UINT ConvertD3D11ResourceFlags(UINT MiscFlags);
/**
* \brief Retrieves D3D11 resource from D3D10 resource
*
* \param [in] pSrcResource The D3D10 resource
* \param [out] ppDstResource The D3D11 resource
*/
void GetD3D11Resource(
ID3D10Resource* pSrcResource,
ID3D11Resource** ppDstResource);
/** /**
* \brief Retrieves D3D10 device from D3D11 object * \brief Retrieves D3D10 device from D3D11 object
* *