2018-01-23 09:23:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-01-23 12:03:26 +01:00
|
|
|
#include "d3d11_cmdlist.h"
|
2018-01-23 09:23:31 +01:00
|
|
|
#include "d3d11_context.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
class D3D11DeferredContext : public D3D11DeviceContext {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
D3D11DeferredContext(
|
|
|
|
D3D11Device* pParent,
|
|
|
|
Rc<DxvkDevice> Device,
|
|
|
|
UINT ContextFlags);
|
|
|
|
|
|
|
|
D3D11_DEVICE_CONTEXT_TYPE STDMETHODCALLTYPE GetType() final;
|
|
|
|
|
|
|
|
UINT STDMETHODCALLTYPE GetContextFlags() final;
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE Flush() final;
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE ExecuteCommandList(
|
|
|
|
ID3D11CommandList* pCommandList,
|
|
|
|
WINBOOL RestoreContextState) final;
|
|
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE FinishCommandList(
|
|
|
|
WINBOOL RestoreDeferredContextState,
|
|
|
|
ID3D11CommandList **ppCommandList) final;
|
|
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE Map(
|
|
|
|
ID3D11Resource* pResource,
|
|
|
|
UINT Subresource,
|
|
|
|
D3D11_MAP MapType,
|
|
|
|
UINT MapFlags,
|
|
|
|
D3D11_MAPPED_SUBRESOURCE* pMappedResource) final;
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE Unmap(
|
|
|
|
ID3D11Resource* pResource,
|
|
|
|
UINT Subresource) final;
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
const UINT m_contextFlags;
|
|
|
|
|
2018-01-23 12:03:26 +01:00
|
|
|
Com<D3D11CommandList> m_commandList;
|
|
|
|
|
|
|
|
Com<D3D11CommandList> CreateCommandList();
|
|
|
|
|
|
|
|
void EmitCsChunk(Rc<DxvkCsChunk>&& chunk) final;
|
2018-01-23 09:23:31 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|