summaryrefslogtreecommitdiff
path: root/tools/gfx-unit-test/clear-texture-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx-unit-test/clear-texture-test.cpp')
-rw-r--r--tools/gfx-unit-test/clear-texture-test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx-unit-test/clear-texture-test.cpp b/tools/gfx-unit-test/clear-texture-test.cpp
index 13db72402..4ad82f313 100644
--- a/tools/gfx-unit-test/clear-texture-test.cpp
+++ b/tools/gfx-unit-test/clear-texture-test.cpp
@@ -41,6 +41,8 @@ namespace gfx_test
rtvDesc.type = IResourceView::Type::RenderTarget;
rtvDesc.format = Format::R32G32B32A32_FLOAT;
rtvDesc.renderTarget.shape = IResource::Type::Texture2D;
+ rtvDesc.subresourceRange.layerCount = 1;
+ rtvDesc.subresourceRange.mipLevelCount = 1;
rtv = device->createTextureView(srcTexture, rtvDesc);
{