mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Delete `GlobalTypeKind`. Break out `Writer::write_global`'s code into two new functions, `write_simple_global` and `write_interface_block`. This introduces some repeated code, but the way we need to produce interface blocks and normal globals are sufficiently different that I think it's clearer overall to just separate them entirely. Much of the details are handled by their callees. Loosen the interface block code to support arbitrary types.