Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wgpuEngine Node Package

Important

Currently in development!

Node package for our newly developed 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:

npm install jswgpuengine

Quick start

Add first an import map to shorten paths if needed:

<script type="importmap">
{
    "imports": {
        "@upf-gti/jswgpuengine": "/node_modules/@upf-gti/jswgpuengine/index.js"
    }
}
</script>
import { Module } from '@upf-gti/jswgpuengine';

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

Used by

Contributors

Languages