1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-14 09:23:53 +01:00
dxvk/src/d3d10/d3d10_util.h

48 lines
1.2 KiB
C
Raw Normal View History

#pragma once
#include "d3d10_include.h"
namespace dxvk {
/**
* \brief Converts misc. resource flags
*
* Converts the D3D11 misc. resource flags to
* their D3D10 equivalents and vice versa.
* \param [in] MiscFlags Original bit mask
* \returns Converted bit mask
*/
UINT ConvertD3D10ResourceFlags(UINT MiscFlags);
UINT ConvertD3D11ResourceFlags(UINT MiscFlags);
/**
* \brief Retrieves D3D10 device from D3D11 object
*
* \param [in] pObject The D3D11 device child
* \param [out] ppDevice The D3D10 device pointer
*/
void GetD3D10Device(
ID3D11DeviceChild* pObject,
ID3D10Device** ppDevice);
/**
* \brief Retrieves D3D11 device from D3D11 object
*
* \param [in] pObject The D3D11 device child
* \param [out] ppDevice The D3D11 device pointer
*/
void GetD3D11Device(
ID3D11DeviceChild* pObject,
ID3D11Device** ppDevice);
/**
* \brief Retrieves D3D11 context from D3D11 object
*
* \param [in] pObject The D3D11 device child
* \param [out] ppContext The D3D11 immediate context
*/
void GetD3D11Context(
ID3D11DeviceChild* pObject,
ID3D11DeviceContext** ppContext);
}