mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-18 22:54:15 +01:00
[d3d10] Add GetD3D11Resource helper
This commit is contained in:
parent
a8f3a5219b
commit
8b87db87f8
@ -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) {
|
||||||
|
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user