We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
虽然我们的 Shader 代码使用了 TypeScript 语法,但在字符串中写计算逻辑总是不太好的体验。 未来我们希望提供 G 语言的 VS Code 扩展,提供高亮、诊断、自动补全等语言特性,提升开发者的编程体验。
这样开发者可以创建 .g 文件,使用类似 webpack 的 raw-loader 以字符串形式加载:
import myGCode from './my-code.g'; const compute = world.createComputePipeline({ shader: myGCode, dispatch: [1, 1, 1], // 线程网格 onCompleted: (result) => {}, });
The text was updated successfully, but these errors were encountered:
发布了 VS Code 扩展: https://marketplace.visualstudio.com/items?itemName=xiaoiver-antfin.vscode-gwebgpu
目前仅具备语法高亮特性,基于 TypeScript 的 TextMate grammars 裁剪扩展得到。
Sorry, something went wrong.
No branches or pull requests
虽然我们的 Shader 代码使用了 TypeScript 语法,但在字符串中写计算逻辑总是不太好的体验。 未来我们希望提供 G 语言的 VS Code 扩展,提供高亮、诊断、自动补全等语言特性,提升开发者的编程体验。
这样开发者可以创建 .g 文件,使用类似 webpack 的 raw-loader 以字符串形式加载:
The text was updated successfully, but these errors were encountered: