Skip to content
New issue

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

请问如何支持编写wgsl的shader #2566

Open
exment opened this issue Feb 21, 2025 · 3 comments
Open

请问如何支持编写wgsl的shader #2566

exment opened this issue Feb 21, 2025 · 3 comments
Assignees

Comments

@exment
Copy link

exment commented Feb 21, 2025

现在引擎只支持glsl
请问有支持webgpu的计划不
最好能优先使用webgpu 然后当判断webgpu不支持的时候回退到webgl
然后shader能支持编写wgsl

@zhuxudong
Copy link
Member

你好!我们计划在今年接入 WebGPU,届时会通知到你。另外我们推荐使用 ShaderLab 语法 去编写 Shader,这样你就不用感知底层语言的差异,ShaderLab 到时会同时支持 GLSL/WGSL 的编译。

@exment
Copy link
Author

exment commented Feb 21, 2025

好的哈 谢谢!

@exment
Copy link
Author

exment commented Feb 21, 2025

希望能写标准的wgsl语法,更顺手,更符合直觉。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants