gpu: use packed structs to wrap WebGPU's bitfield enums
This commit is contained in:
parent
232d0dc5ad
commit
47cd84f8ff
3 changed files with 61 additions and 26 deletions
|
|
@ -37,7 +37,7 @@ pub fn main() !void {
|
|||
const color_target = gpu.ColorTargetState{
|
||||
.format = app.swap_chain_format,
|
||||
.blend = &blend,
|
||||
.write_mask = .all,
|
||||
.write_mask = gpu.ColorWriteMask.all,
|
||||
};
|
||||
const fragment = gpu.FragmentState{
|
||||
.module = fs_module,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue