# WebGPUPathTracer

component in `three-gpu-pathtracer/r3f`

```js
import { WebGPUPathTracer } from 'three-gpu-pathtracer/r3f';
```

Wrapper for the WebGPUPathTracer class that renders the fiber scene and camera. The settable
properties of the path tracer instance, such as `maxBounces`, `maxSamples` or `renderScale`, can
be set as props, and its events registered with `onComplete` and `onProgress`. Camera changes
restart the render automatically. Scene changes are not tracked: call the update functions on
the instance from `usePathTracer` after adding, moving, or restyling objects. The scene is
rasterized while the kernels compile, and with `dynamicLowRes` set to false the render fades in
over the rasterized scene.

## Props

- `enabled`, `boolean`, optional, default `true`: If false, the scene is rasterized normally instead.
- `renderPriority`, `number`, optional, default `1`: Priority of the frame callback used to render.
- `children`, `ReactNode`, optional: Children rendered with access to the path tracer context.
