mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-05 19:46:15 +01:00
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "d3d11_device.h"
|
|
#include "d3d11_context_state.h"
|
|
#include "d3d11_device_child.h"
|
|
|
|
namespace dxvk {
|
|
|
|
/**
|
|
* \brief Device context state implementation
|
|
*
|
|
* This is an opaque interface in D3D11, and we only
|
|
* implement the state block-like functionality, not
|
|
* the methods to disable certain context and device
|
|
* interfaces based on the emulated device IID.
|
|
*/
|
|
class D3D11DeviceContextState : public D3D11DeviceChild<ID3DDeviceContextState> {
|
|
|
|
public:
|
|
|
|
D3D11DeviceContextState(
|
|
ID3D11Device* pDevice);
|
|
|
|
~D3D11DeviceContextState();
|
|
|
|
HRESULT STDMETHODCALLTYPE QueryInterface(
|
|
REFIID riid,
|
|
void** ppvObject);
|
|
|
|
void STDMETHODCALLTYPE GetDevice(
|
|
ID3D11Device** ppDevice);
|
|
|
|
void SetState(const D3D11ContextState& State) {
|
|
m_state = State;
|
|
}
|
|
|
|
void GetState(D3D11ContextState& State) const {
|
|
State = m_state;
|
|
}
|
|
|
|
private:
|
|
|
|
Com<ID3D11Device> m_device;
|
|
D3D11ContextState m_state;
|
|
|
|
};
|
|
|
|
}
|