2018-01-23 09:23:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-01-23 12:03:26 +01:00
|
|
|
#include "d3d11_context.h"
|
2018-01-23 09:23:31 +01:00
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
class D3D11CommandList : public D3D11DeviceChild<ID3D11CommandList> {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
D3D11CommandList(
|
|
|
|
D3D11Device* pDevice,
|
|
|
|
UINT ContextFlags);
|
|
|
|
|
|
|
|
~D3D11CommandList();
|
|
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE QueryInterface(
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject) final;
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE GetDevice(
|
|
|
|
ID3D11Device **ppDevice) final;
|
|
|
|
|
2018-01-23 12:16:28 +01:00
|
|
|
UINT STDMETHODCALLTYPE GetContextFlags() final;
|
2018-01-23 09:23:31 +01:00
|
|
|
|
2018-04-03 19:52:14 +02:00
|
|
|
void AddChunk(
|
2018-06-04 23:31:49 +02:00
|
|
|
Rc<DxvkCsChunk>&& Chunk);
|
2018-01-23 12:03:26 +01:00
|
|
|
|
|
|
|
void EmitToCommandList(
|
|
|
|
ID3D11CommandList* pCommandList);
|
|
|
|
|
|
|
|
void EmitToCsThread(
|
2018-03-03 20:59:17 +01:00
|
|
|
DxvkCsThread* CsThread);
|
2018-01-23 12:03:26 +01:00
|
|
|
|
2018-01-23 09:23:31 +01:00
|
|
|
private:
|
|
|
|
|
|
|
|
D3D11Device* const m_device;
|
|
|
|
UINT const m_contextFlags;
|
|
|
|
|
2018-01-23 12:03:26 +01:00
|
|
|
std::vector<Rc<DxvkCsChunk>> m_chunks;
|
|
|
|
|
2018-01-23 09:23:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|