//TEST(compute):COMPARE_COMPUTE: -shaderobj //TEST(compute):COMPARE_COMPUTE:-cpu -shaderobj // test specialization of nested generic functions //TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer RWStructuredBuffer outputBuffer; interface IGetF { float getF(); } struct GetFImpl : IGetF { float getF() { return 1.0; } }; struct GetFImpl2 : IGetF { float getF() { return -1.0; } }; struct GenStruct { T x; float genGet(U y) { return x.getF() + y.getF(); } }; [numthreads(1, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) { uint tid = dispatchThreadID.x; GenStruct obj1; GetFImpl2 obj2; float outVal = obj1.genGet(obj2); outputBuffer[tid] = int(outVal); }