mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Use discardImageView in DiscardView1
This commit is contained in:
parent
5d4d32c613
commit
5643bf47fe
@ -133,6 +133,12 @@ namespace dxvk {
|
|||||||
sr.baseMipLevel + mip, sr.baseArrayLayer + layer, mipCount));
|
sr.baseMipLevel + mip, sr.baseArrayLayer + layer, mipCount));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Since we don't handle SRVs here, we can assume that the
|
||||||
|
// view covers all aspects of the underlying resource.
|
||||||
|
EmitCs([cView = view] (DxvkContext* ctx) {
|
||||||
|
ctx->discardImageView(cView, cView->formatInfo()->aspectMask);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user