// hello-world.slang StructuredBuffer buffer0; StructuredBuffer buffer1; RWStructuredBuffer result; [shader("compute")] [numthreads(1,1,1)] void computeMain(uint3 threadId : SV_DispatchThreadID) { uint index = threadId.x; result[index] = buffer0[index] + buffer1[index]; }