1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 13:24:20 +01:00
dxvk/src/dxgi/dxgi_object.h
Philip Rebohle dd9a55ecc0
[util] Don't allow multiple inheritance for COM objects
This never made any sense whatsoever in the first place.
2019-10-14 01:42:24 +02:00

44 lines
939 B
C++

#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;
};
}