1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-22 05:52:11 +01:00
dxvk/src/d3d10/d3d10_sampler.h

55 lines
1.3 KiB
C
Raw Normal View History

2018-08-11 20:42:28 +02:00
#pragma once
#include "d3d10_util.h"
namespace dxvk {
class D3D11Device;
class D3D11SamplerState;
class D3D10SamplerState : public ID3D10SamplerState {
public:
D3D10SamplerState(D3D11SamplerState* pParent)
: m_d3d11(pParent) { }
HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
void** ppvObject);
ULONG STDMETHODCALLTYPE AddRef();
ULONG STDMETHODCALLTYPE Release();
void STDMETHODCALLTYPE GetDevice(
ID3D10Device** ppDevice);
HRESULT STDMETHODCALLTYPE GetPrivateData(
REFGUID guid,
UINT* pDataSize,
void* pData);
HRESULT STDMETHODCALLTYPE SetPrivateData(
REFGUID guid,
UINT DataSize,
const void* pData);
HRESULT STDMETHODCALLTYPE SetPrivateDataInterface(
REFGUID guid,
const IUnknown* pData);
void STDMETHODCALLTYPE GetDesc(
D3D10_SAMPLER_DESC* pDesc);
D3D11SamplerState* GetD3D11Iface() {
return m_d3d11;
}
private:
D3D11SamplerState* m_d3d11;
};
}