mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 14:44:26 +00:00
92953cf50f
Arrange for passing an invalid `BindGroupLayout` to `CreatePipelineLayout` or `CreateBindGroup` to produce an invalid `PipelineLayout`/`BindGroup`, instead of trying to pass the `BindGroupLayout`'s bogus `RawId` (which is zero) over to the GPU process, causing a panic in deserialization (thank you, Rust!). Arrange for a `PipelineLayout` constructed with a zero `RawId` to mark itself invalid, as most other WebGPU content objects do. This permits `WebGPUChild::DeviceCreatePipelineLayout` to return zero if the descriptor is invalid. Differential Revision: https://phabricator.services.mozilla.com/D145036