mirror of
https://github.com/rt64/rt64.git
synced 2024-12-26 21:18:31 +00:00
D3D12: Fix bogus warning for sample positions.
This commit is contained in:
parent
f10ad63044
commit
d864d7ab9b
@ -1344,6 +1344,9 @@ namespace RT64 {
|
||||
void D3D12CommandList::end() {
|
||||
assert(open);
|
||||
|
||||
// It's required to reset the sample positions before the command list ends.
|
||||
resetSamplePositions();
|
||||
|
||||
d3d->Close();
|
||||
open = false;
|
||||
targetFramebuffer = nullptr;
|
||||
@ -1352,7 +1355,6 @@ namespace RT64 {
|
||||
activeGraphicsPipelineLayout = nullptr;
|
||||
activeGraphicsPipeline = nullptr;
|
||||
activeTopology = D3D_PRIMITIVE_TOPOLOGY_UNDEFINED;
|
||||
activeSamplePositions = false;
|
||||
descriptorHeapsSet = false;
|
||||
}
|
||||
|
||||
@ -1413,12 +1415,11 @@ namespace RT64 {
|
||||
if (msaaDepthTarget && interfaceTexture->desc.multisampling.sampleLocationsEnabled) {
|
||||
setSamplePositions(interfaceTexture);
|
||||
d3d->ResourceBarrier(1, &resourceBarrier);
|
||||
resetSamplePositionsRequired = true;
|
||||
}
|
||||
else {
|
||||
barrierVector.emplace_back(resourceBarrier);
|
||||
}
|
||||
|
||||
resetSamplePositionsRequired = resetSamplePositionsRequired || msaaDepthTarget;
|
||||
}
|
||||
|
||||
if (resetSamplePositionsRequired) {
|
||||
|
Loading…
Reference in New Issue
Block a user