Interface: GpuContextOptions

GpuContextOptions

Options for the WebGPU context.

Properties:
Name Type Description
forceFallbackAdapter boolean

Force the use of the fallback adapter

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.

Members

forceFallbackAdapter boolean

Force the use of the fallback adapter

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.