gpuUtils

gpuUtils

Members

(static) bindGroup

Creates a bind group.

Source:

(static) bindLayout

Creates a bind group layout.

Source:

(static) bufferCreator

Creates a buffer for the matrix data.

Source:

(static) bufferDestroyer

Destroys the buffers.

Source:

(static) computingPipelines

Runs the computing pipelines to map into the GPU shaders

Source:

(static) deviceConnect

Class representing device connection and management for WebGPU.

Properties:
Name Type Description
adapter GPUAdapter | null

The GPU adapter object. Set to null if no adapter is connected.

device GPUDevice | null

The GPU device object. Set to null if no device is connected.

lostListener EventListener | null

The event listener for device loss. Set to null if no listener is attached.

Source:

(static) dispatchers

Dispatches a compute shader operation on the GPU.

Source:

(static, constant) exports.matrixChanger

Changes the matrix layout by removing the sizes.

Source:

(static) groupEntry

Creates a group entry to be bound into the layout group.

Source:

(static) layoutEntry

Creates a layout entry to be bound into the layout group.

Source:

(static) matrixSize

Returns the sizes of two square matrices.

Source:

(static) resultHolder

Creates a buffer to hold the result matrix.

Source:

(static) shaderModule

Function returns a shader module back for usage in the compute section

Source: