yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f370947c6
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): 2 3RWStructuredBuffer<float> buf; 4 5// 6// This test checks that we correctly diagnose passing too many operands to a spriv inst 7// 8void foo(const int constParam) 9{ 10 spirv_asm 11 { 12 // Make sure we diagnose the first offending operand 13 OpLoad 14 %a 15 %b 16 %c 17 %d 18 // CHECK: too-many-operands.slang([[#@LINE+1]]): warning {{.*}}: too many operands for OpLoad 19 %r : $$int = OpIAdd %r %r 20 }; 21}