forked from doitsujin/dxvk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd3d11_class_linkage.h
45 lines (30 loc) · 1.11 KB
/
d3d11_class_linkage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 STDMETHODCALLTYPE QueryInterface(
REFIID riid,
void** ppvObject) final;
void STDMETHODCALLTYPE GetDevice(
ID3D11Device **ppDevice) final;
HRESULT STDMETHODCALLTYPE CreateClassInstance(
LPCSTR pClassTypeName,
UINT ConstantBufferOffset,
UINT ConstantVectorOffset,
UINT TextureOffset,
UINT SamplerOffset,
ID3D11ClassInstance **ppInstance);
HRESULT STDMETHODCALLTYPE GetClassInstance(
LPCSTR pClassInstanceName,
UINT InstanceIndex,
ID3D11ClassInstance **ppInstance);
private:
Com<D3D11Device> m_device;
};
}