2017-10-11 09:51:48 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "d3d11_include.h"
|
|
|
|
|
|
|
|
#include "../util/com/com_private_data.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
2019-10-14 01:42:07 +02:00
|
|
|
template<typename Base>
|
|
|
|
class D3D11DeviceChild : public ComObject<Base> {
|
2017-10-11 09:51:48 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
HRESULT STDMETHODCALLTYPE GetPrivateData(
|
2017-10-11 09:51:48 +02:00
|
|
|
REFGUID guid,
|
|
|
|
UINT *pDataSize,
|
|
|
|
void *pData) final {
|
|
|
|
return m_privateData.getData(
|
|
|
|
guid, pDataSize, pData);
|
|
|
|
}
|
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
HRESULT STDMETHODCALLTYPE SetPrivateData(
|
2017-10-11 09:51:48 +02:00
|
|
|
REFGUID guid,
|
|
|
|
UINT DataSize,
|
|
|
|
const void *pData) final {
|
|
|
|
return m_privateData.setData(
|
|
|
|
guid, DataSize, pData);
|
|
|
|
}
|
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
HRESULT STDMETHODCALLTYPE SetPrivateDataInterface(
|
2017-10-11 09:51:48 +02:00
|
|
|
REFGUID guid,
|
|
|
|
const IUnknown *pUnknown) final {
|
|
|
|
return m_privateData.setInterface(
|
|
|
|
guid, pUnknown);
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
ComPrivateData m_privateData;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|