# three-gpu-pathtracer/r3f

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

### Components

- [Denoiser](/tools/docs/three-gpu-pathtracer/r3f/Denoiser.md): Attaches a denoiser to the nearest parent WebGPUPathTracer. Must be a child of WebGPUPathTracer. All properties on the denoiser instance can be set as props directly. The caller owns the instance and disposes it.
- [Upscaler](/tools/docs/three-gpu-pathtracer/r3f/Upscaler.md): Attaches an upscaler to the nearest parent WebGPUPathTracer. Must be a child of WebGPUPathTracer. All properties on the upscaler instance can be set as props directly. The caller owns the instance and disposes it.
- [WebGPUPathTracer](/tools/docs/three-gpu-pathtracer/r3f/WebGPUPathTracer.md): 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.

### Functions

- [usePathTracer](/tools/docs/three-gpu-pathtracer/r3f/functions.md): Returns the path tracer of the nearest parent WebGPUPathTracer component, an instance of the WebGPUPathTracer class from "three-gpu-pathtracer/webgpu", or null if there is none. Use it to notify the path tracer of scene changes with `setScene`, `updateMaterials`, `updateTransforms`, `updateLights`, `updateEnvironment`, or `reset`.
