Open xiaoiver opened 5 months ago
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
目前为 WGSL 提供 Shader Chunks 模块化功能用法如下:
但还不支持 shader defines