1
0
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:
Philip Rebohle 2021-02-21 02:51:59 +01:00
parent 5d4d32c613
commit 5643bf47fe
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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);
});
}