pygfx.renderers.wgpu
General functions and classes to operate more closely with the wgpu backend.
Print a report on the internal status of WGPU. |
|
|
Select whether a powerful or battery-friendly GPU is selected. |
|
Select a specific adapter / GPU. |
|
Enable specific features (as strings) on the wgpu device. |
|
Turns Scenes into rasterized images using wgpu. |
|
Decorator for WGPU rendering functions. |
Get the globally shared instance. |
|
|
An object to store global data to share between multiple wgpu renderers. |
Classes and functions required to implement custom shaders:
Define what a shader object must look like from the pov from the pipeline. |
|
|
Base shader object to compose and template shaders using jinja2. |
|
Simple object to hold together some information about a binding, for internal use. |
|
Simple wrapper for a GPUSampler. |
|
Simple wrapper for a GPUTextureView. |
|
Register a source for shader snippets. |
|
Load wgsl code from pygfx builtin shader snippets. |
Lower level functions that may or may not be needed in custom shaders:
|
Return the number of channels from a vertex-buffer format. |
|
Convert any pygfx-allowed buffer format to the wgpu.IndexFormat. |
|
Convert any pygfx-allowed buffer format to the wgpu.VertexFormat. |
|
Convert any pygfx-allowed texture format to the wgpu.TextureFormat. |