diff --git a/wgpu/_classes.py b/wgpu/_classes.py index 4c17b776..63b4c632 100644 --- a/wgpu/_classes.py +++ b/wgpu/_classes.py @@ -341,7 +341,17 @@ def configure( if self._surface_info["method"] == "screen": self._configure_screen(**self._config) - def _configure_screen(self, **kwargs): + def _configure_screen( + self, + *, + device, + format, + usage, + view_formats, + color_space, + tone_mapping, + alpha_mode, + ): raise NotImplementedError() # IDL: undefined unconfigure(); @@ -354,7 +364,7 @@ def unconfigure(self): self._config = None self._drop_texture() - def _unconfigure_screen(self, **kwargs): + def _unconfigure_screen(self): raise NotImplementedError() # IDL: GPUTexture getCurrentTexture(); diff --git a/wgpu/backends/wgpu_native/_api.py b/wgpu/backends/wgpu_native/_api.py index 6219479b..54e99bd7 100644 --- a/wgpu/backends/wgpu_native/_api.py +++ b/wgpu/backends/wgpu_native/_api.py @@ -508,13 +508,13 @@ def _get_capabilities_screen(self, adapter): def _configure_screen( self, *, - device: "GPUDevice", - format: "enums.TextureFormat", - usage: "flags.TextureUsage" = 0x10, - view_formats: "List[enums.TextureFormat]" = [], - color_space: str = "srgb", - tone_mapping: "structs.CanvasToneMapping" = {}, - alpha_mode: "enums.CanvasAlphaMode" = "opaque", + device, + format, + usage, + view_formats, + color_space, + tone_mapping, + alpha_mode, ): capabilities = self._get_capabilities(device.adapter) diff --git a/wgpu/resources/codegen_report.md b/wgpu/resources/codegen_report.md index 7c72d1fc..8b30cd2f 100644 --- a/wgpu/resources/codegen_report.md +++ b/wgpu/resources/codegen_report.md @@ -18,9 +18,9 @@ * Diffs for GPUTextureView: add size, add texture * Diffs for GPUBindingCommandsMixin: change set_bind_group * Diffs for GPUQueue: add read_buffer, add read_texture, hide copy_external_image_to_texture -* Validated 37 classes, 112 methods, 45 properties +* Validated 37 classes, 121 methods, 45 properties ### Patching API for backends/wgpu_native/_api.py -* Validated 37 classes, 112 methods, 0 properties +* Validated 37 classes, 108 methods, 0 properties ## Validating backends/wgpu_native/_api.py * Enum field FeatureName.texture-compression-bc-sliced-3d missing in wgpu.h * Enum field FeatureName.clip-distances missing in wgpu.h