We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36a23bf commit 2ef3f32Copy full SHA for 2ef3f32
src/webgpu/util/binary_stream.ts
@@ -117,12 +117,12 @@ export default class BinaryStream {
117
118
/** writeF64() writes a float64 to the buffer at the next 64-bit aligned offset */
119
writeF64(value: number) {
120
- this.view.setFloat64(this.alignedOffset(8), value);
+ this.view.setFloat64(this.alignedOffset(8), value, /* littleEndian */ true);
121
}
122
123
/** readF64() reads a float64 from the buffer at the next 64-bit aligned offset */
124
readF64(): number {
125
- return this.view.getFloat64(this.alignedOffset(8));
+ return this.view.getFloat64(this.alignedOffset(8), /* littleEndian */ true);
126
127
128
/**
0 commit comments