Formalize material schema and constant layout contract
This commit is contained in:
@@ -308,6 +308,16 @@ Unity-like Shader Authoring (.shader)
|
||||
- material 仍然缺少基于 shader property 的正式类型校验、默认值回退和资源映射
|
||||
- renderer 目前虽然能消费 pass resources,但 material binding 仍偏 builtin-forward 特判
|
||||
|
||||
当前进展(`2026-04-03`):
|
||||
|
||||
- 已完成:shader schema 驱动的 property 类型校验与默认值回退
|
||||
- 已完成:source `.material` 的 `properties` authoring 入口
|
||||
- 已完成:material constant layout runtime contract
|
||||
- `Material` 现在会生成正式的 constant layout 元数据
|
||||
- layout 字段包含 `name / type / offset / size / alignedSize`
|
||||
- renderer 读取的已不再只是裸字节 payload,而是 `layout + payload` 组合
|
||||
- 下一步:把 texture / sampler / constant resource mapping 从 builtin forward 特判继续推进到更通用的 pass contract
|
||||
|
||||
### 阶段 C:把 Pass Binding 扩展为正式材质执行链路
|
||||
|
||||
目标:
|
||||
|
||||
Reference in New Issue
Block a user