Git Product home page Git Product logo

iggpu's Introduction

IGGPU: A utility library for cross-compiling apps using GLFW+Dawn to native and WASM targets

Version 0.2

Overview

I've used this library in a lot of my personal projects, and a lot of it is stable enough that I think it makes sense to isolate into a separate library.

I'll be adding in more general features from side projects over time, for now it's very basic.

Features

  • Configures Google Dawn for native builds
  • Simplifies nasty project boilerplate around setting up a WASM WebGPU app

Potential issues (and how to fix them):

  • Undeclared identifier IDxcCompiler3 in Dawn D3D12 code
    • (Windows 10) Make sure your Windows SDK version is at least 10.0.20348.0
  • wgpu::(everything) is undefined:
    • When working IGGPU code, you'll first have to run a build of the dawn dependencies, since some of the headers are generated code.
    • I've provided a minimal_example executable target that will build them as a dependency if you're too lazy to build in CLI like I am.

Building samples:

Native:

mkdir out/debug
cd out/debug
cmake ../..
make iggpu_simple_triangle_sample
./samples/simple_triangle/iggpu_simple_triangle_sample

Web (more interesting, eh?)

mkdir out/web
cd out/web
emcmake cmake ../..
emmake make iggpu_simpe_triangle_sample
node ../../simple_server.js

# Navigate to http://localhost:8000/samples/simple_triangle/iggpu_simple_triangle_sample.html

iggpu's People

Contributors

sessamekesh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.