*Inheritance: EventDispatcher →*

# InspectorBase

InspectorBase is the base class for all inspectors. Can only be used with [WebGPURenderer](WebGPURenderer.html).

## Constructor

### new InspectorBase()

Creates a new InspectorBase.

## Properties

### .currentFrame : Object

The current frame being processed.

### .enabled : boolean

Indicates whether the inspector is enabled.

Default is `true`.

### .isRunning : boolean

Indicates whether the inspector is running.

Default is `false`.

### .nodeFrame

Returns the node frame for the current renderer.

## Methods

### .begin()

Called when a frame begins.

### .beginCompute( uid : string, computeNode : ComputeNode )

Called when a compute operation begins.

**uid**

A unique identifier for the render context.

**computeNode**

The compute node being executed.

### .beginRender( uid : string, scene : Scene, camera : Camera, renderTarget : RenderTarget )

Called when a render operation begins.

**uid**

A unique identifier for the render context.

**scene**

The scene being rendered.

**camera**

The camera being used for rendering.

**renderTarget**

The render target, if any.

### .computeAsync( computeNode : ComputeNode, dispatchSizeOrCount : number | Array.<number> )

When a compute operation is performed.

**computeNode**

The compute node being executed.

**dispatchSizeOrCount**

The dispatch size or count.

### .copyFramebufferToTexture( framebufferTexture : Texture )

Called when a framebuffer copy operation is performed.

**framebufferTexture**

The texture associated with the framebuffer.

### .copyTextureToTexture( srcTexture : Texture, dstTexture : Texture )

Called when a texture copy operation is performed.

**srcTexture**

The source texture.

**dstTexture**

The destination texture.

### .dispose()

Frees all internal resources of the inspector.

### .finish()

Called when a frame ends.

### .finishCompute( uid : string, computeNode : ComputeNode )

Called when a compute operation ends.

**uid**

A unique identifier for the render context.

**computeNode**

The compute node being executed.

### .finishRender( uid : string )

Called when an animation loop ends.

**uid**

A unique identifier for the render context.

### .getRenderer() : Renderer

Returns the renderer associated with this inspector.

**Returns:** The associated renderer.

### .inspect( node : Node )

Inspects a node.

**node**

The node to inspect.

### .setRenderer( renderer : Renderer ) : InspectorBase

Sets the renderer for this inspector.

**renderer**

The renderer to associate with this inspector.

**Returns:** This inspector instance.

## Source

[src/renderers/common/InspectorBase.js](https://github.com/mrdoob/three.js/blob/master/src/renderers/common/InspectorBase.js)