pygfx.renderers.wgpu.register_wgpu_render_function

pygfx.renderers.wgpu.register_wgpu_render_function(wobject_cls, material_cls)

Decorator for WGPU rendering functions.

Parameters:
  • wobject_cls (WorldObject) – The world object that this function knows how to render.

  • material_cls (Material) – The world object that this function knows how to render.