//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -output-using-type -emit-spirv-directly // CHECK: type: float // CHECK-COUNT-256: 241.0 //TEST_INPUT:ubuffer(stride=4, count=256):out,name=outputBuffer RWStructuredBuffer outputBuffer; using namespace linalg; typealias CoopMatAType = CoopMat; typealias CoopMatBType = CoopMat; typealias CoopMatCType = CoopMat; [numthreads(32, 1, 1)] void computeMain() { // ( 3.0 * 5.0 ) * 16 + 1.0 = 241.0 let matA = CoopMatAType(3.0); let matB = CoopMatBType(5.0); let matC = CoopMatCType(1.0); let result = coopMatMulAdd(matA, matB, matC); result.Store(outputBuffer, 0, 16); }