mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-03 13:24:20 +01:00
dd9a55ecc0
This never made any sense whatsoever in the first place.
44 lines
939 B
C++
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;
|
|
|
|
};
|
|
|
|
}
|