yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
439e025c1
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv 2 3//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer 4RWStructuredBuffer<int32_t> outputBuffer; 5 6[numthreads(1, 1, 1)] 7void computeMain() 8{ 9 let result = CoopVec<int32_t, 4>(1,2,3,4,5); 10 // CHECK: error 41400: static assertion failed, number of arguments to CoopVec constructor must match number of elements 11 12 for(int i = 0; i < result.getCount(); ++i) 13 outputBuffer[i] = result[i]; 14}