Code Monkey home page Code Monkey logo

webgpu-debugger's Introduction

webgpu-debugger

Note: This is still ALPHA code. See issues and other random TODO comments for things that need work

Development

  • Install node. Note: I recommend using nvm(mac/linux) or nvm-windows(windows).

  • run these commands:

    git clone https://github.com/webgpu/webgpu-debugger.git
    cd webgpu-debugger
    npm ci

Live development

npm start

It should open a browser to http://localhost:3000/example/. Edits to the code should end up showing up live in the browser.

Building

npm run build

This builds 3 libraries.

  1. the capture library dist/capture.js

    usage:

    import { webgpuDebugger } from 'dist/capture.js
    
    ...
      const trace = await webgpuDebugger.traceFrame();
  2. the replay library dist/replay.js

    stand alone usage:

    TBD

    usage with capture

    TBD
  3. the 'debugger' in dist/webgpu-debugger.js

    usage:

    import `dist/webgpu-debugger.js`;

    or

    <script src="dist/webgpu-debugger.js"></script>

Pushing changes

Before you push a change please run npm run check or, better yet, make it automatic by putting

npm run check

In .git/hooks/pre-push and then set the executable bit chmod u+x .git/hooks/pre-push

We use prettier to format code so if you find errors, some of them may be able to be fixed with npm run fix.

webgpu-debugger's People

Contributors

greggman avatar toji avatar kangz avatar sebavan 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.