//DISABLED_TEST(compute):COMPARE_COMPUTE: //TEST_INPUT: cbuffer(data=[1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0], stride=4):name impl //TEST_INPUT: ubuffer(data=[0], stride=4):out,name outputBuffer //TEST_INPUT: type Pair, Pair , Base> > RWStructuredBuffer outputBuffer; import globalTypeParamArrayShared; float doCompute(T t) { return t.compute(1.0); } [numthreads(1, 1, 1)] void computeMain< TImpl : IBase>( uniform ParameterBlock impl, uint3 dispatchThreadID : SV_DispatchThreadID) { uint tid = dispatchThreadID.x; float outVal = doCompute(impl); outputBuffer[tid] = outVal; }