We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812cf01 commit 9e9fe2fCopy full SHA for 9e9fe2f
packages/typegpu/src/core/function/fnCore.ts
@@ -139,9 +139,9 @@ export function createFnCore(
139
const fnAttribute = extra.type === 'vertex'
140
? '@vertex '
141
: extra.type === 'fragment'
142
- ? '@fragment\n'
+ ? '@fragment '
143
: extra.type === 'compute'
144
- ? `@compute @workgroup_size(${extra.workgroupSize?.join(', ')})\n`
+ ? `@compute @workgroup_size(${extra.workgroupSize?.join(', ')}) `
145
: '';
146
ctx.addDeclaration(`${fnAttribute}fn ${id}${header}${body}`);
147
return snip(id, returnType, /* origin */ 'runtime');
0 commit comments