From d4145519dd86f6d18b07393d989141bda4d4ceb3 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 16 Feb 2022 22:34:20 -0800 Subject: Various gfx fixes. (#2132) * Various gfx fixes. * Fix test case. * Fix crash. * Trigger build * Trigger build 2 * Fix vulkan unit tests. Co-authored-by: Yong He --- tools/gfx-unit-test/clear-texture-test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/gfx-unit-test/clear-texture-test.cpp') 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); { -- cgit v1.2.3