mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 09:23:53 +01:00
37 lines
891 B
C++
37 lines
891 B
C++
|
#include "d3d11_cmdlist.h"
|
||
|
#include "d3d11_device.h"
|
||
|
|
||
|
namespace dxvk {
|
||
|
|
||
|
D3D11CommandList::D3D11CommandList(
|
||
|
D3D11Device* pDevice,
|
||
|
UINT ContextFlags)
|
||
|
: m_device (pDevice),
|
||
|
m_contextFlags(ContextFlags) { }
|
||
|
|
||
|
|
||
|
D3D11CommandList::~D3D11CommandList() {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
HRESULT STDMETHODCALLTYPE D3D11CommandList::QueryInterface(REFIID riid, void** ppvObject) {
|
||
|
COM_QUERY_IFACE(riid, ppvObject, IUnknown);
|
||
|
COM_QUERY_IFACE(riid, ppvObject, ID3D11DeviceChild);
|
||
|
COM_QUERY_IFACE(riid, ppvObject, ID3D11CommandList);
|
||
|
|
||
|
Logger::warn("D3D11CommandList::QueryInterface: Unknown interface query");
|
||
|
return E_NOINTERFACE;
|
||
|
}
|
||
|
|
||
|
|
||
|
void STDMETHODCALLTYPE D3D11CommandList::GetDevice(ID3D11Device **ppDevice) {
|
||
|
*ppDevice = ref(m_device);
|
||
|
}
|
||
|
|
||
|
|
||
|
UINT D3D11CommandList::GetContextFlags() {
|
||
|
return m_contextFlags;
|
||
|
}
|
||
|
|
||
|
}
|