blob: ba3588315110d9438ca4a383d7b36f3345ff54de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -output-using-type -emit-spirv-directly
// CHECK: type: int32_t
// CHECK-COUNT-256: 10
//TEST_INPUT:ubuffer(stride=4, count=256):out,name=outputBuffer
RWStructuredBuffer<int32_t> outputBuffer;
using namespace linalg;
[numthreads(32, 1, 1)]
void computeMain()
{
var result : CoopMat<int32_t, MemoryScope.Subgroup, 16, 16, CoopMatMatrixUse::MatrixAccumulator>;
result.fill(10);
result.Store<CoopMatMatrixLayout::RowMajor>(outputBuffer, 0, 16);
}
|