//TEST(compute):COMPARE_COMPUTE:-cpu -shaderobj //TEST_INPUT:ubuffer(data=[0], stride=4):out,name=outputBuffer RWStructuredBuffer outputBuffer; [numthreads(1, 1, 1)] void computeMain(uint tig : SV_GroupIndex) { // Test that we infer the type parameters to X from the type of f x(f); // Testthat we infer the type paramters to from a specialized generic (g) y(g); outputBuffer[tig] = p; } static int p = 0; func x(f : functype (A) -> B) { ++p; } float f(int) { return 1; } func y(g : functype (A, B) -> C) { p += 2; } void g(A, bool) { }