Skip to content

Commit 9e9fe2f

Browse files
committed
Update fnCore.ts
1 parent 812cf01 commit 9e9fe2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/typegpu/src/core/function/fnCore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ export function createFnCore(
139139
const fnAttribute = extra.type === 'vertex'
140140
? '@vertex '
141141
: extra.type === 'fragment'
142-
? '@fragment\n'
142+
? '@fragment '
143143
: extra.type === 'compute'
144-
? `@compute @workgroup_size(${extra.workgroupSize?.join(', ')})\n`
144+
? `@compute @workgroup_size(${extra.workgroupSize?.join(', ')}) `
145145
: '';
146146
ctx.addDeclaration(`${fnAttribute}fn ${id}${header}${body}`);
147147
return snip(id, returnType, /* origin */ 'runtime');

0 commit comments

Comments
 (0)