Table of Contents

Class GPUOutOfMemoryError

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The GPUOutOfMemoryError interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation.

[Value("GPUOutOfMemoryError")]
public class GPUOutOfMemoryError : GPUError
Inheritance
GPUOutOfMemoryError
Inherited Members

Remarks

It represents one of the types of errors surfaced by PopErrorScope() and the GPUDevice.Uncapturederror event.

Out-of-memory errors should be relatively rare in a well-behaved app but are less predictable than GPUValidationErrors. This is because they are dependent on the device your app is running on as well as other apps that are using GPU resources at the time.

-The WebGPU API
-WebGPU Error Handling best practices

See also on MDN

Constructors

GPUOutOfMemoryError()

public GPUOutOfMemoryError()

GPUOutOfMemoryError(string)

The GPUOutOfMemoryError() constructor creates a new
GPUOutOfMemoryError object instance.

public GPUOutOfMemoryError(string message)

Parameters

message string

Remarks