//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type interface IFoo { bool requirement(T v1); } struct Bar, B : IFoo> { [Differentiable] T doThing(T a) { return a * T(2.0); } } struct Foo : IFoo { bool requirement(float v) { return v > 0.5; } } //TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer RWStructuredBuffer outputBuffer; [numthreads(1, 1, 1)] void computeMain(int3 dispatchThreadID : SV_DispatchThreadID) { int tid = dispatchThreadID.x; Bar obj; outputBuffer[tid] = obj.doThing(2.0f); // CHECK: 4 }