//TEST(compute):COMPARE_COMPUTE: //TEST(compute):COMPARE_COMPUTE:-cpu //TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=block0.buffer //TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):name=block1.buffer // Ensure that Slang `ParameterBlock` type is lowered // to HLSL in the fashion that we expect. struct P { RWStructuredBuffer buffer; }; ParameterBlock

block0; ParameterBlock

block1; [numthreads(4, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) { uint tid = dispatchThreadID.x; int inVal = block1.buffer[tid]; int outVal = inVal; block0.buffer[tid] = outVal; }