脚本(Scripting)API 参考(API Reference)gpuBindGroupLayoutDesc本页总览BindGroupLayoutDesc用于创建 GPUBindGroupLayout 的描述符。始终从着色器派生—— 绑定映射遍历着色器 → 种类 / 可见性 / 纹理元数据 / 原生槽位, 因此调用者无需知道任何这些信息。 字段 shader 源着色器。没有着色器就无法构建布局。 groupIndex 此布局描述的 WGSL @group(N)。有效范围为 [0, 4)。 dynamicUBOs 其 UBO 条目应设置 hasDynamicOffset 的 WGSL @binding 值。 label