Closed kainino0x closed 1 month ago
@cwfitzgerald @rajveermalviya @Kangz see above about the things I did differently than what we discussed (no need to review fully but feel free). Let me know if you think any of those changes are not good.
No notes here
Can be reviewed as separate commits.
BindingNotUsed
/VertexBufferNotUsed
enum valuesUndefined
s that don't need to existUndefined
This is a bit different from the thing we previously discussed and agreed on:
BindingNotUsed
=VertexBufferNotUsed
=0 withUndefined
=1 so that zero-init will triggerNotUsed
. See https://github.com/webgpu-native/webgpu-headers/issues/242#issuecomment-2310857163WGPUTextureFormat_ColorTargetNotUsed
, opting to continue usingWGPUTextureFormat_Undefined
for this, because there's basically no chance thatWGPUColorTargetState.format
becomes optional. (Even if it did become "dynamic state" or something, I think we would use a different sentinel value thanundefined
in the JS API so that it had to be named explicitly.)Fixes #234 Fixes #242 EDIT: also fixes #45 (done in Dawn except for the NotUsed changes: https://crbug.com/377820810)