Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 6, 2025
1 parent 9ed1a04 commit aef6086
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ looked into it.
What you can do is render to textures and then read them back. You can also run compute shaders
and read their results.

# Updating
## Bugs

## Updating

This updates to the latest dawn and depot_tools

Expand All @@ -49,12 +51,12 @@ npm ci
npm run update
```

# Building on all supported platforms
## Building on all supported platforms

Push a new version. Check the github actions. You should see build artifacts
added to the bottom of the latest action run.

# Building
## Building

This builds for the local OS (win64,macOS-intel,macOS-arm,linux)

Expand All @@ -63,9 +65,9 @@ npm ci
npm run build
```

## Prerequisites
### Prerequisites

### Windows
#### Windows

Before running the build script above you must have
Visual Studio C++ installed and have run the `vcvars64.bat` file.
Expand All @@ -78,7 +80,7 @@ And you must have `node.js` installed, at least version 18.
I recommend using [nvm-windows](https://github.com/coreybutler/nvm-windows) to install it
as it makes it easy to switch version

### MacOS
#### MacOS

Before running the build script above you must have
XCode installed and its command line tools
Expand All @@ -90,7 +92,7 @@ And you must have `node.js` installed, at least version 18.
I recommend using [nvm](https://github.com/nvm-sh/nvm) to install it
as it makes it easy to switch versions.

### Linux (Ubuntu)
#### Linux (Ubuntu)

Before running the build script above you need to install
the following dependencies
Expand All @@ -102,3 +104,7 @@ sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev mesa-com
And you must have `node.js` installed, at least version 18.
I recommend using [nvm](https://github.com/nvm-sh/nvm) to install it
as it makes it easy to switch versions.

## License

MIT: https://dawn.googlesource.com/dawn/+/HEAD/LICENSE
1 change: 1 addition & 0 deletions build/prep-for-publish.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import fs from 'node:fs';

function fixupGitignore() {
const s = fs.readFileSync('.gitignore', {encoding: 'utf8'});
Expand Down

0 comments on commit aef6086

Please sign in to comment.