mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 11:52:12 +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));
|
||||
}
|
||||
}
|
||||
|
||||
// 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