脚本(Scripting)API 参考(API Reference)gpuShader本页总览Shader不透明的已编译着色器模块。通过 context:loadShader 创建。 构造器 new new(wgslAssetName: string) -> Shader 加载嵌入在 Rive 文件中的预编译 WGSL 着色器。 名称必须与编辑器中添加的着色器资源匹配(例如 "myEffect.wgsl")。 运行时不接受原始 WGSL 源代码字符串。