Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 453 Bytes

utils.rst

File metadata and controls

28 lines (15 loc) · 453 Bytes

Utils

The wgpu library provides a few utilities. Note that the functions below need to be explictly imported.

Get default device

.. autofunction:: wgpu.utils.get_default_device


Compute with buffers

.. autofunction:: wgpu.utils.compute_with_buffers



Shadertoy

from wgpu.utils.shadertoy import Shadertoy
.. autoclass:: wgpu.utils.shadertoy.Shadertoy
    :members: