Skip to content

Commit c31b0e2

Browse files
committed
change fp64 buffer type from double4 to double
1 parent 5085ecf commit c31b0e2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/Feature/HLSLLib/dot.fp64.test

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#--- source.hlsl
2-
StructuredBuffer<double4> X : register(t0);
3-
StructuredBuffer<double4> Y : register(t1);
2+
StructuredBuffer<double> X : register(t0);
3+
StructuredBuffer<double> Y : register(t1);
44

55
RWStructuredBuffer<double> Out : register(u2);
66

77

88
[numthreads(1,1,1)]
99
void main() {
10-
Out[0] = dot(X[0].x, Y[0].x);
10+
Out[0] = dot(X[0], Y[0]);
1111
Out[1] = dot(double(1.125), double(7.29));
1212

13-
Out[2] = dot(X[0].y, Y[0].y);
13+
Out[2] = dot(X[1], Y[1]);
1414
Out[3] = dot(double(-2.5), double(3.14));
1515

16-
Out[4] = dot(X[0].z, Y[0].z);
16+
Out[4] = dot(X[2], Y[2]);
1717
Out[5] = dot(double(-4.75), double(-1.1));
1818

19-
Out[6] = dot(X[0].w, Y[0].w);
19+
Out[6] = dot(X[3], Y[3]);
2020
Out[7] = dot(double(6.625), double(-3.5));
2121
}
2222
//--- pipeline.yaml
@@ -29,11 +29,11 @@ Shaders:
2929
Buffers:
3030
- Name: X
3131
Format: Float64
32-
Stride: 32
32+
Stride: 8
3333
Data: [ 1.125, -2.5, -4.75, 6.625 ]
3434
- Name: Y
3535
Format: Float64
36-
Stride: 32
36+
Stride: 8
3737
Data: [ 7.29, 3.14, -1.1, -3.5 ]
3838
- Name: Out
3939
Format: Float64

0 commit comments

Comments
 (0)