2017-12-12 01:07:07 +01:00
|
|
|
#include "d3d11_class_linkage.h"
|
|
|
|
#include "d3d11_device.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
D3D11ClassLinkage::D3D11ClassLinkage(
|
|
|
|
D3D11Device* pDevice)
|
|
|
|
: m_device(pDevice) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
D3D11ClassLinkage::~D3D11ClassLinkage() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
HRESULT STDMETHODCALLTYPE D3D11ClassLinkage::QueryInterface(REFIID riid, void** ppvObject) {
|
2017-12-12 01:07:07 +01:00
|
|
|
COM_QUERY_IFACE(riid, ppvObject, IUnknown);
|
|
|
|
COM_QUERY_IFACE(riid, ppvObject, ID3D11DeviceChild);
|
|
|
|
COM_QUERY_IFACE(riid, ppvObject, ID3D11ClassLinkage);
|
|
|
|
|
|
|
|
Logger::warn("D3D11ClassLinkage::QueryInterface: Unknown interface query");
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
void STDMETHODCALLTYPE D3D11ClassLinkage::GetDevice(ID3D11Device** ppDevice) {
|
2017-12-12 01:07:07 +01:00
|
|
|
*ppDevice = m_device.ref();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
HRESULT STDMETHODCALLTYPE D3D11ClassLinkage::CreateClassInstance(
|
2017-12-12 01:07:07 +01:00
|
|
|
LPCSTR pClassTypeName,
|
|
|
|
UINT ConstantBufferOffset,
|
|
|
|
UINT ConstantVectorOffset,
|
|
|
|
UINT TextureOffset,
|
|
|
|
UINT SamplerOffset,
|
|
|
|
ID3D11ClassInstance **ppInstance) {
|
|
|
|
Logger::err("D3D11ClassLinkage::CreateClassInstance: Not implemented yet");
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
HRESULT STDMETHODCALLTYPE D3D11ClassLinkage::GetClassInstance(
|
2017-12-12 01:07:07 +01:00
|
|
|
LPCSTR pClassInstanceName,
|
|
|
|
UINT InstanceIndex,
|
|
|
|
ID3D11ClassInstance **ppInstance) {
|
|
|
|
Logger::err("D3D11ClassLinkage::GetClassInstance: Not implemented yet");
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|