Commit Graph
13 Commits
Author SHA1 Message Date
Kevin Reid c150de0ba7 Add inherent pub const fn default() to various types.
The default functions are generated using a `macro_rules_attribute`
emulated derive macro, just fancy enough to work. It does not support
structs with generics, so `*Descriptor`s are left alone for now.

When Rust const traits stabilize, we can replace this with real const
traits.
2026-08-03 06:34:29 -04:00
Andy Leiserson 22c5a7020b fix(core): Add missing shader output vs. color target validation (#9939) 2026-07-28 23:25:53 +00:00
Andy Leiserson dd63d2244c More map_label changes (#9526) 2026-05-26 23:09:57 +00:00
Andy Leiserson 61e76ee746 fix(core): Use more checked arithmetic, part 2b (#9425) 2026-04-16 14:27:01 +02:00
Kevin Reid 0b4bdaf9ce Prevent deserializing or defaulting LoadOp::DontCare, for soundness. (#9428) 2026-04-14 20:37:12 -04:00
Erich Gubler 10ce22b2ea refactor!: subvert-rename dispatch* to dispatchWorkGroups* (#9362) 2026-04-11 20:58:22 +02:00
Tem3dy 924c62334d Add BlendState::ADDITIVE for additive blending (#9399) 2026-04-10 13:11:44 -04:00
Andy Leiserson 0afad95d9b docs: Clarify description of newly-optional fields in DepthStencilState (#9180) 2026-03-09 18:08:11 -04:00
Andy Leiserson b09a919c6a DepthStencilState validation fixes (#8840)
* Make `depth_compare` and `depth_write_enabled` optional

These fields are optional in the WebGPU API. Having them optional in the
wgpu API as well keeps validation logic centralized in wgpu-core.

Fixes #8830

* Remove `DepthStencilStateIdl`
2026-02-25 14:59:48 +01:00
Luo Zhihao c0f04c801c Validate strip_index_format equals index buffer format for indexed drawing with strip topology 2026-02-01 23:14:52 -08:00
Andy Leiserson 735e8d2a40 Fix validation related to depth bias and frag_depth
* Depth bias is only supported with triangle topologies (fixes #6071)
* If the shader outputs `frag_depth`, the pipeline must have a depth
  attachment
2026-01-30 09:36:29 -08:00
Connor Fitzgerald e3149bac9e LoadOp::DontCare (#8549) 2025-12-08 03:41:38 +00:00
Kevin Reid 2ca7ed99ba Break up wgpu-types/src/lib.rs into more files. (#8607) 2025-12-01 14:27:45 -05:00