An open API service indexing awesome lists of open source software.

https://github.com/upf-gti/jswgpuengine

wgpuEngine Node Package
https://github.com/upf-gti/jswgpuengine

3d node npm webgpu wgpuengine

Last synced: 2 months ago
JSON representation

wgpuEngine Node Package

Awesome Lists containing this project

README

          

# wgpuEngine Node Package

> [!IMPORTANT]
> Currently in development!

Node package for our newly developed [wgpuEngine](https://github.com/upf-gti/wgpuEngine). Since bindings from the C++ original engine are not completely integrated, this package only provides a simple and work-in-progress interface to start developing some demos and prototypes.

## Installation

Install the package using npm:

```bash
npm install jswgpuengine
```

## Quick start

Add first an import map to shorten paths if needed:

```html

{
"imports": {
"@upf-gti/jswgpuengine": "/node_modules/@upf-gti/jswgpuengine/index.js"
}
}

```

```js

import { Module } from '@upf-gti/jswgpuengine';

Module.runEngine( () => {
const engine = Module.Engine.instance;
// ...
} );
```