forked from doitsujin/dxvk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[d3d11] Added class linkage stub, required for FX11 samples
- Loading branch information
Showing
3 changed files
with
103 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#include "d3d11_class_linkage.h" | ||
#include "d3d11_device.h" | ||
|
||
namespace dxvk { | ||
|
||
D3D11ClassLinkage::D3D11ClassLinkage( | ||
D3D11Device* pDevice) | ||
: m_device(pDevice) { | ||
|
||
} | ||
|
||
|
||
D3D11ClassLinkage::~D3D11ClassLinkage() { | ||
|
||
} | ||
|
||
|
||
HRESULT D3D11ClassLinkage::QueryInterface(REFIID riid, void** ppvObject) { | ||
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; | ||
} | ||
|
||
|
||
void D3D11ClassLinkage::GetDevice(ID3D11Device** ppDevice) { | ||
*ppDevice = m_device.ref(); | ||
} | ||
|
||
|
||
HRESULT D3D11ClassLinkage::CreateClassInstance( | ||
LPCSTR pClassTypeName, | ||
UINT ConstantBufferOffset, | ||
UINT ConstantVectorOffset, | ||
UINT TextureOffset, | ||
UINT SamplerOffset, | ||
ID3D11ClassInstance **ppInstance) { | ||
Logger::err("D3D11ClassLinkage::CreateClassInstance: Not implemented yet"); | ||
return E_NOTIMPL; | ||
} | ||
|
||
|
||
HRESULT D3D11ClassLinkage::GetClassInstance( | ||
LPCSTR pClassInstanceName, | ||
UINT InstanceIndex, | ||
ID3D11ClassInstance **ppInstance) { | ||
Logger::err("D3D11ClassLinkage::GetClassInstance: Not implemented yet"); | ||
return E_NOTIMPL; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#pragma once | ||
|
||
#include "d3d11_device_child.h" | ||
|
||
namespace dxvk { | ||
|
||
class D3D11Device; | ||
|
||
// TODO implement properly | ||
class D3D11ClassLinkage : public D3D11DeviceChild<ID3D11ClassLinkage> { | ||
|
||
public: | ||
|
||
D3D11ClassLinkage( | ||
D3D11Device* pDevice); | ||
|
||
~D3D11ClassLinkage(); | ||
|
||
HRESULT QueryInterface( | ||
REFIID riid, | ||
void** ppvObject) final; | ||
|
||
void GetDevice( | ||
ID3D11Device **ppDevice) final; | ||
|
||
HRESULT CreateClassInstance( | ||
LPCSTR pClassTypeName, | ||
UINT ConstantBufferOffset, | ||
UINT ConstantVectorOffset, | ||
UINT TextureOffset, | ||
UINT SamplerOffset, | ||
ID3D11ClassInstance **ppInstance); | ||
|
||
HRESULT GetClassInstance( | ||
LPCSTR pClassInstanceName, | ||
UINT InstanceIndex, | ||
ID3D11ClassInstance **ppInstance); | ||
|
||
private: | ||
|
||
Com<D3D11Device> m_device; | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters