gpu: use packed structs to wrap WebGPU's bitfield enums

This commit is contained in:
Silver 2022-04-07 00:14:32 +01:00 committed by Stephen Gutekanst
parent 232d0dc5ad
commit 47cd84f8ff
3 changed files with 61 additions and 26 deletions

View file

@ -104,7 +104,7 @@ pub fn main() !void {
const color_target = gpu.ColorTargetState{
.format = window_data.swap_chain_format,
.blend = &blend,
.write_mask = .all,
.write_mask = gpu.ColorWriteMask.all,
};
const fragment = gpu.FragmentState{
.module = fs_module,