Class

HDRWebGPUBackend

HDRWebGPUBackend()

An HDR-enabled WebGPU backend for three.js, extending the standard WebGPUBackend. This class configures the WebGPU context to support High Dynamic Range rendering by setting the output color space to "rec2100-hlg". You should never have the need to use this!

Constructor

# new HDRWebGPUBackend()

View Source three/HDRWebGPUBackend.js, line 14

Extends

  • WebGPUBackend

Methods

# async init(renderer) → {Promise.<void>}

Initializes the backend, including requesting a WebGPU device and configuring the context. This method overrides the parent init to set a specific HDR color space.

Parameters:
Name Type Description
renderer WebGLRenderer

The three.js renderer instance.

View Source three/HDRWebGPUBackend.js, line 24

A promise that resolves when the initialization is complete.

Promise.<void>

HDRWebGPUBackend()

An HDR-enabled WebGPU backend for three.js, extending the standard WebGPUBackend. This class configures the WebGPU context to support High Dynamic Range rendering by setting the output color space to "rec2100-hlg". You should never have the need to use this!

Constructor

# new HDRWebGPUBackend()

View Source three/HDRWebGPUBackend.js, line 14

Extends

  • WebGPUBackend

Methods

# async init(renderer) → {Promise.<void>}

Initializes the backend, including requesting a WebGPU device and configuring the context. This method overrides the parent init to set a specific HDR color space.

Parameters:
Name Type Description
renderer WebGLRenderer

The three.js renderer instance.

View Source three/HDRWebGPUBackend.js, line 24

A promise that resolves when the initialization is complete.

Promise.<void>