Table of Contents

Class WebGpuDeviceStatus

Reports whether the browser's WebGPU device has been lost.

public static class WebGpuDeviceStatus
Inheritance
object
WebGpuDeviceStatus

Remarks

Always false outside a WebGPU browser build. Once true it never goes back to false: a lost device cannot be revived from inside the player.

Properties

DeviceLost

True once the WebGPU device has reported itself lost.

public static bool DeviceLost { get; }

Property Value

bool

Methods

ForceLostForTests()

Makes DeviceLost report true, for tests that need to drive the degrade paths without a real browser.

public static void ForceLostForTests()

ResetForTests()

Clears what ForceLostForTests() set. Call it from test teardown: this is process-wide static state.

public static void ResetForTests()