[D3D12] Request memory for memexport in shared memory

This commit is contained in:
Triang3l
2018-12-22 00:57:31 +03:00
parent 0aeff797e5
commit 6025599d3b
2 changed files with 208 additions and 27 deletions

View File

@@ -209,6 +209,13 @@ class D3D12CommandProcessor : public CommandProcessor {
const D3D12Shader* pixel_shader,
ID3D12RootSignature* root_signature);
// Returns dword count for one element for a memexport format, or 0 if it's
// not supported by the D3D12 command processor (if it's smaller that 1 dword,
// for instance).
// TODO(Triang3l): Check if any game uses memexport with formats smaller than
// 32 bits per element.
static uint32_t GetSupportedMemExportFormatSize(ColorFormat format);
bool cache_clear_requested_ = false;
std::unique_ptr<ui::d3d12::CommandList>