mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
D3D12: only lazy clear OutputAttachment textures with render target ops
Previously, lazy clearing always added DEPTH_STENCIL or RENDER_TARGET to textures because we cleared using ClearDepthStencilView or ClearRenderTargetView. Now, we're able to clear using copies. This also allows textures to actually use the small resource heap placement optimization. Doing so generates debug layer warnings when the small alignment is first tried but rejected. This CL silences those warnings. Bug: dawn:145 Change-Id: Id385846536b337cddcfdadc5739561c7adc30c8c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/26840 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
988f19e208
commit
c0fd9d0945
@@ -30,6 +30,7 @@
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
// TODO(natlee@microsoft.com): test compressed textures are cleared
|
||||
class TextureZeroInitTest : public DawnTest {
|
||||
protected:
|
||||
void SetUp() override {
|
||||
|
||||
Reference in New Issue
Block a user