[D3D12] Experimental incomplete custom sample positions, disabled by default

This commit is contained in:
Triang3l
2018-08-25 14:38:55 +03:00
parent 304544cc72
commit 66510b2e6f
8 changed files with 118 additions and 2 deletions

View File

@@ -730,6 +730,10 @@ bool RenderTargetCache::UpdateRenderTargets() {
binding.render_target->resource);
}
// Sample positions when loading depth must match sample positions when
// drawing.
command_processor_->SetSamplePositions(msaa_samples);
// Load the contents of the new render targets from the EDRAM buffer (will
// change the state of the render targets to copy destination).
RenderTarget* load_render_targets[5];
@@ -1394,8 +1398,9 @@ bool RenderTargetCache::ResolveCopy(SharedMemory* shared_memory,
descriptor_cpu_start);
command_list->SetGraphicsRootDescriptorTable(1, descriptor_gpu_start);
command_processor_->SetExternalGraphicsPipeline(resolve_pipeline);
command_processor_->SubmitBarriers();
command_processor_->SetSamplePositions(MsaaSamples::k1X);
command_processor_->SetExternalGraphicsPipeline(resolve_pipeline);
command_list->OMSetRenderTargets(1, &resolve_target->rtv_handle, TRUE,
nullptr);
D3D12_VIEWPORT viewport;