From c864aa03f719e461b59c588f6816d43d17041446 Mon Sep 17 00:00:00 2001 From: Frank Yellin Date: Wed, 6 Nov 2024 12:30:45 -0800 Subject: [PATCH] Fix codegen --- wgpu/backends/wgpu_native/_api.py | 1 + wgpu/resources/codegen_report.md | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/backends/wgpu_native/_api.py b/wgpu/backends/wgpu_native/_api.py index 6d452fcc..cdc93b5e 100644 --- a/wgpu/backends/wgpu_native/_api.py +++ b/wgpu/backends/wgpu_native/_api.py @@ -3247,6 +3247,7 @@ def set_blend_constant(self, color: Union[List[float], structs.Color]): check_struct("Color", color) color = _tuple_from_color(color) red, green, blue, alpha = color + # H: r: float, g: float, b: float, a: float c_color = new_struct_p( "WGPUColor *", r=red, diff --git a/wgpu/resources/codegen_report.md b/wgpu/resources/codegen_report.md index 43b9ac43..3c69e6ac 100644 --- a/wgpu/resources/codegen_report.md +++ b/wgpu/resources/codegen_report.md @@ -37,5 +37,4 @@ * Wrote 236 enum mappings and 47 struct-field mappings to wgpu_native/_mappings.py * Validated 140 C function calls * Not using 65 C functions -* Notice: made a struct multiline. Rerun codegen to validate the struct. * Validated 82 C structs