Skip to content

Commit 3703735

Browse files
committed
fix mat3x4f offset computer
1 parent 3422651 commit 3703735

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webgpu/lessons/resources/js/wgsl-data-types.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const b = {
3232
mat4x3h: { numElements: 16, align: 8, size: 32, pad: [3, 1], type: 'u16', View: Uint16Array },
3333
mat2x4f: { numElements: 8, align: 16, size: 32, type: 'f32', View: Float32Array },
3434
mat2x4h: { numElements: 8, align: 8, size: 16, type: 'u16', View: Uint16Array },
35-
mat3x4f: { numElements: 12, align: 16, size: 48, pad: [3, 1], type: 'f32', View: Float32Array },
36-
mat3x4h: { numElements: 12, align: 8, size: 24, pad: [3, 1], type: 'u16', View: Uint16Array },
35+
mat3x4f: { numElements: 12, align: 16, size: 48, type: 'f32', View: Float32Array },
36+
mat3x4h: { numElements: 12, align: 8, size: 24, type: 'u16', View: Uint16Array },
3737
mat4x4f: { numElements: 16, align: 16, size: 64, type: 'f32', View: Float32Array },
3838
mat4x4h: { numElements: 16, align: 8, size: 32, type: 'u16', View: Uint16Array },
3939

0 commit comments

Comments
 (0)