mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-07 07:46:19 +01:00
42 lines
925 B
C++
42 lines
925 B
C++
|
#include "d3d11_device.h"
|
||
|
#include "d3d11_sampler.h"
|
||
|
|
||
|
namespace dxvk {
|
||
|
|
||
|
D3D11SamplerState::D3D11SamplerState(
|
||
|
D3D11Device* device,
|
||
|
const D3D11_SAMPLER_DESC& desc,
|
||
|
const Rc<DxvkSampler>& sampler)
|
||
|
: m_device(device),
|
||
|
m_desc(desc),
|
||
|
m_sampler(sampler) {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
D3D11SamplerState::~D3D11SamplerState() {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
HRESULT D3D11SamplerState::QueryInterface(REFIID riid, void** ppvObject) {
|
||
|
COM_QUERY_IFACE(riid, ppvObject, IUnknown);
|
||
|
COM_QUERY_IFACE(riid, ppvObject, ID3D11DeviceChild);
|
||
|
COM_QUERY_IFACE(riid, ppvObject, ID3D11SamplerState);
|
||
|
|
||
|
Logger::warn("D3D11SamplerState::QueryInterface: Unknown interface query");
|
||
|
return E_NOINTERFACE;
|
||
|
}
|
||
|
|
||
|
|
||
|
void D3D11SamplerState::GetDevice(ID3D11Device** ppDevice) {
|
||
|
*ppDevice = m_device.ref();
|
||
|
}
|
||
|
|
||
|
|
||
|
void D3D11SamplerState::GetDesc(D3D11_SAMPLER_DESC* pDesc) {
|
||
|
*pDesc = m_desc;
|
||
|
}
|
||
|
|
||
|
}
|