From dcc7c6f009afc0f55e79ced050b772ea9d3b25ae Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Thu, 21 Nov 2024 21:42:29 +0200 Subject: Enable some rendering tests (#5623) * render-test: Add copy-source usage for render targets I found that Slang-RHI/WGPU was not able to copy from render targets to staging buffers. This helps to address issue #4943. * Add entries to render API util infos Entries for glsl-cross and glsl-rewrite are added. Without glsl-cross, slang-test fails to select a back-end, and winds up crashing when tests/render/cross-compile-entry-point.slang is enabled tests/render/cross-compile0.hlsl fails similarly without glsl-rewrite. * Enable some rendering tests * Add expected test outputs --- tools/render-test/render-test-main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/render-test/render-test-main.cpp') diff --git a/tools/render-test/render-test-main.cpp b/tools/render-test/render-test-main.cpp index e3a895bbe..2e07a7689 100644 --- a/tools/render-test/render-test-main.cpp +++ b/tools/render-test/render-test-main.cpp @@ -675,7 +675,7 @@ void RenderTestApp::_initializeRenderPass() colorBufferDesc.size.depth = 1; colorBufferDesc.mipLevelCount = 1; colorBufferDesc.format = Format::R8G8B8A8_UNORM; - colorBufferDesc.usage = TextureUsage::RenderTarget; + colorBufferDesc.usage = TextureUsage::RenderTarget | TextureUsage::CopySource; colorBufferDesc.defaultState = ResourceState::RenderTarget; m_colorBuffer = m_device->createTexture(colorBufferDesc, nullptr); SLANG_ASSERT(m_colorBuffer); -- cgit v1.2.3