Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update tests
  • Loading branch information
Aleksander Katan committed Aug 27, 2025
commit 981da9e8a8f9d3805e0721d8beadec6429362ce1
10 changes: 5 additions & 5 deletions packages/typegpu/tests/tgsl/wgslGenerator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ describe('wgslGenerator', () => {
});

expect(asWgsl(testFn)).toMatchInlineSnapshot(`
"fn testFn_0() {
"fn testFn() {
var matrix = mat4x4f();
var column = matrix[1];
var element = column[0];
Expand All @@ -974,12 +974,12 @@ describe('wgslGenerator', () => {
});

expect(asWgsl(testFn)).toMatchInlineSnapshot(`
"var<workgroup> index_1: u32;
"var<workgroup> index: u32;

var<workgroup> matrix_2: mat4x4f;
var<workgroup> matrix: mat4x4f;

fn testFn_0() {
var element = matrix_2[index_1];
fn testFn() {
var element = matrix[index];
}"
`);
});
Expand Down