[D3D12] SHM: Range fixes, logging, testing

This commit is contained in:
Triang3l
2018-07-26 01:01:48 +03:00
parent bd54e905b2
commit 812a35caff
2 changed files with 33 additions and 9 deletions

View File

@@ -147,6 +147,15 @@ bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
return false;
}
// Shared memory test.
if (index_buffer_info != nullptr && index_buffer_info->guest_base != 0) {
uint32_t index_size = index_buffer_info->format == IndexFormat::kInt32
? sizeof(uint32_t)
: sizeof(uint16_t);
shared_memory_->UseRange(index_buffer_info->guest_base,
index_buffer_info->count * index_size);
}
return true;
}