Open kvark opened 4 years ago
@jimblandy is this still a problem?
This suggested optimization still applies to the current architecture.
In servo we currently construct passes immediately (as we also relay on wgpu for Validate the encoder state) in webgpu thread (IPC message is sent for every pass command).
Is your feature request related to a problem? Please describe. When implementing WebGPU behind a GPU process, we get the data serialized.
Describe the solution you'd like When "serialize-pass" feature is enabled, we'd want to be able to provide a
Deserializer
generic object into wgpu-core, and let it deserialize individual commands, possibly never reconstructing the wholeComputePass
.Describe alternatives you've considered It would be a waste to try to allocate the storage, deserialize into it, only to pass it to
wgpu
.Additional context Gecko and Servo would benefit from that