Skip to content

Commit

Permalink
Fix user-attribute-lookup wgpu crash (shader-slang#5510)
Browse files Browse the repository at this point in the history
The WGPU backend was crashing because of the
unbound sampler state. Fix the test by adding
a test sampler.

Issue 5277

Co-authored-by: Ellie Hermaszewska <[email protected]>
  • Loading branch information
cheneym2 and expipiplus1 authored Nov 7, 2024
1 parent 43df1da commit 64c6cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bugs/user-attribute-lookup.slang
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT: Sampler:name samplerState

//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
Expand Down

0 comments on commit 64c6cb1

Please sign in to comment.