yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
705d00ab8
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target metal 2//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target wgsl 3 4RWStructuredBuffer<float> outputBuffer; 5 6[shader("compute")] 7[numthreads(1, 1, 1)] 8void computeMain() 9{ 10 // CHECK: error 56102: division by matrix is not supported 11 float3x3 divisor = float3x3(2.5); 12 divisor[1][1] = 1.5; 13 outputBuffer[0] = (float3x3(15) / divisor)[0][0]; 14} 15