Skip to content

upf-gti/jswgpuengine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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;
    // ...
} );