1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 07:08:50 +01:00
dxvk/src/dxgi/dxgi_object.h
2017-12-12 12:50:52 +01:00

44 lines
903 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;
};
}