Skip to content

Latest commit

 

History

History

unplugin-typegpu

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

unplugin-typegpu

🚧 Under Construction 🚧 - GitHub

Build plugins for TypeGPU that enable:

  • Seamless JavaScript -> WGSL transpilation
  • [🚧 TODO] Improved debugging with automatic naming of resources

Currently supported:

  • babel
// babel.config.js (React Native with Expo)

module.exports = function (api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    plugins: ['unplugin-typegpu/babel']
  };
};
  • rollup
// vite.config.js

import { defineConfig } from 'vite';
import typegpu from 'unplugin-typegpu/rollup';

export default defineConfig({
  plugins: [typegpu()],
});

Getting Started

npm install unplugin-typegpu

TypeGPU is created by Software Mansion

swm

Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – Hire us.