diff options
| author | Anders Leino <aleino@nvidia.com> | 2024-11-13 18:08:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-13 08:08:14 -0800 |
| commit | 91f19bedb902fb8b97c9b9da9fcb9c82e6f1c785 (patch) | |
| tree | cbb68b387a07f08258ca0b533569c48b3906d5a4 /tools/render-test | |
| parent | 2be4fa42278173c2a1ef78c776cbf9a952cce83e (diff) | |
Various fixes to enable some WGSL graphics tests (#5548)
* Update Slang-RHI to get WGPU backend fixes
* render-test: Use device local memory type for vertex buffers
This helps to avoid https://github.com/shader-slang/slang-rhi/issues/104
* Fix bug in WGSL emitter layout code.
There was a "kinds" vs. "kind flags" mismatch, and also getBindingOffsetForKinds was not
being used.
This patch enables a bunch of tests for WGPU.
This helps to address issue #4943.
* format code
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'tools/render-test')
| -rw-r--r-- | tools/render-test/render-test-main.cpp | 2 |
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 e64954029..d128be453 100644 --- a/tools/render-test/render-test-main.cpp +++ b/tools/render-test/render-test-main.cpp @@ -597,7 +597,7 @@ SlangResult RenderTestApp::initialize( BufferDesc vertexBufferDesc; vertexBufferDesc.size = kVertexCount * sizeof(Vertex); - vertexBufferDesc.memoryType = MemoryType::Upload; + vertexBufferDesc.memoryType = MemoryType::DeviceLocal; vertexBufferDesc.usage = BufferUsage::VertexBuffer; vertexBufferDesc.defaultState = ResourceState::VertexBuffer; |
