diff options
| author | Anders Leino <aleino@nvidia.com> | 2024-11-21 21:42:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-21 11:42:29 -0800 |
| commit | dcc7c6f009afc0f55e79ced050b772ea9d3b25ae (patch) | |
| tree | 088c82898aad638a392d38091764c343a8ce3aa4 /source/core | |
| parent | dbc28b4fe9b0a6e8215640c04a9f245c150150a8 (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 'source/core')
| -rw-r--r-- | source/core/slang-render-api-util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-render-api-util.cpp b/source/core/slang-render-api-util.cpp index 1e77c2ac6..7c1f41abe 100644 --- a/source/core/slang-render-api-util.cpp +++ b/source/core/slang-render-api-util.cpp @@ -13,7 +13,7 @@ namespace Slang /* static */ const RenderApiUtil::Info RenderApiUtil::s_infos[] = { {RenderApiType::Vulkan, "vk,vulkan", ""}, {RenderApiType::D3D12, "dx12,d3d12", ""}, - {RenderApiType::D3D11, "dx11,d3d11", "hlsl,hlsl-rewrite,slang"}, + {RenderApiType::D3D11, "dx11,d3d11", "hlsl,hlsl-rewrite,glsl-rewrite,glsl-cross,slang"}, {RenderApiType::Metal, "mtl,metal", ""}, {RenderApiType::CPU, "cpu", ""}, {RenderApiType::CUDA, "cuda", "cuda,ptx"}, |
