Interface: GpuContextOptions

GpuContextOptions

Options for the WebGPU context.

Properties:
Name Type Attributes Default Description
forceFallbackAdapter boolean <optional>
false

Force the use of the fallback adapter

powerPreference GpuPowerPreference <optional>
default

An optional hint indicating what configuration of GPU is suitable for the WebGPU context, can be 'high-performance' or 'low-power'. Setting to 'high-performance' will prioritize rendering performance over power consumption, while setting to 'low-power' will prioritize power saving over rendering performance.

Members

forceFallbackAdapter boolean

Force the use of the fallback adapter

Default Value:
  • false

powerPreference GpuPowerPreference

An optional hint indicating what configuration of GPU is suitable for the WebGPU context, can be 'high-performance' or 'low-power'. Setting to 'high-performance' will prioritize rendering performance over power consumption, while setting to 'low-power' will prioritize power saving over rendering performance.

Default Value:
  • default