blob: aac2bb4cc822ed88831211635c562feea55092a8 (
plain)
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
|
#pragma once
#include "dxgi_include.h"
#include "../util/com/com_private_data.h"
namespace dxvk {
template<typename Base>
class DxgiObject : public ComObject<Base> {
public:
HRESULT STDMETHODCALLTYPE GetPrivateData(
REFGUID Name,
UINT* pDataSize,
void* pData) final {
return m_privateData.getData(
Name, pDataSize, pData);
}
HRESULT STDMETHODCALLTYPE SetPrivateData(
REFGUID Name,
UINT DataSize,
const void* pData) final {
return m_privateData.setData(
Name, DataSize, pData);
}
HRESULT STDMETHODCALLTYPE SetPrivateDataInterface(
REFGUID Name,
const IUnknown* pUnknown) final {
return m_privateData.setInterface(
Name, pUnknown);
}
private:
ComPrivateData m_privateData;
};
}
|