Pygfx

Latest version: v0.9.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 10

0.9.4

Fixed:

* Fixed issue related to winid (native widgets) on embedded Qt widgets on Windows (348).
* Fixed our example screenshot tests.

0.9.3

Changed:

* The offscreen `WgpuCanvas.draw()` method now returns a `memoryview` instead of a numpy array.
* The shadertoy util changed internally from using numpy to using a memoryview.

0.9.2

Fixed:

* Fixed that `get_preferred_format()` could crash (in `wgpuSurfaceGetSupportedFormats`) due to an upstream bug in wgpu-native (342)

Added:

* The shadertoy util now supports GLSL, so code from the shadertoy website can be directly copied and run with wgpu (343)

0.9.1

Changed:

* Improved documentation.

Added:

* Added `print_report()` to get a report on the internals of wgpu.
* Added `command_encoder.clear_buffer()`
* Added support for GLSL.

0.9.0

In this release the API is aligned with the latest webgpu.idl, and
we updated to the latest release of wgpu-native (v0.14.2.3).

Changed:

* To use the default `min_binding_size` in `create_bind_group_layout`, it should be `None` instead of zero.
* If the depth-stencil texture has not room for stencil data, the `stencil_read_mask` and `stencil_write_mask` fields in the `DepthStencilState` struct passed to `create_render_pipeline()` must be set to 0.
* In WGSL, `stage(compute)` must now be `compute`. Same for `vertex` and `fragment`.
* In WGSL, the list of reserved words has been extended, including e.g. `mod`, `matrix` and `ref`.
* In WGSL, `smoothStep` is now `smoothstep`.

Added:

* New IDL: texture has new props `weight`, `height`, `depth_or_array_layers`.
* New IDL: Buffer has new prop `map_state`.

0.8.4

Fixed:

* The offscreen canvas's mainloop prevents leaking callbacks better (322)
* Prevent error messages when Qt examples/apps are closed (326)

Page 5 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.