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

支持 Shader Defines #155

Open
xiaoiver opened this issue Jan 18, 2024 · 1 comment
Open

支持 Shader Defines #155

xiaoiver opened this issue Jan 18, 2024 · 1 comment

Comments

@xiaoiver
Copy link
Contributor

目前为 WGSL 提供 Shader Chunks 模块化功能用法如下:

const compiler = device['WGSLComposer'];
const code = compiler.wgsl_compile(wgsl);
#define_import_path my_module

fn my_func() -> f32 {
	return 1.0;
}

但还不支持 shader defines

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Support

Currently, the Shader Chunks modular function provided for WGSL is used as follows:

const compiler = device['WGSLComposer'];
const code = compiler.wgsl_compile(wgsl);
#define_import_path my_module

fn my_func() -> f32 {
return 1.0;
}

But shader definitions are not yet supported

@xiaoiver xiaoiver changed the title 支持 支持 Shader Defines Jan 18, 2024
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

2 participants