summaryrefslogtreecommitdiffstats
path: root/tools/render-test
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2024-11-21 21:42:29 +0200
committerGitHub <noreply@github.com>2024-11-21 11:42:29 -0800
commitdcc7c6f009afc0f55e79ced050b772ea9d3b25ae (patch)
tree088c82898aad638a392d38091764c343a8ce3aa4 /tools/render-test
parentdbc28b4fe9b0a6e8215640c04a9f245c150150a8 (diff)
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
Diffstat (limited to 'tools/render-test')
-rw-r--r--tools/render-test/render-test-main.cpp2
1 files changed, 1 insertions, 1 deletions
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);