fix: Add js highlighting

This commit is contained in:
Robert Plummer 2019-10-08 10:35:48 -04:00
parent 90292bba6e
commit 07cb307d9b

View File

@ -834,7 +834,7 @@ NOTE: When exporting a kernel and using `constants` the following constants are
* `Boolean`
Here is an example used to/from file:
```
```js
import { GPU } from 'gpu.js';
import * as fs from 'fs';
const gpu = new GPU();
@ -847,7 +847,6 @@ fs.writeFileSync('./my-exported-kernel.js', 'module.exports = ' + kernelString);
import * as MyExportedKernel from './my-exported-kernel';
import gl from 'gl';
const myExportedKernel = MyExportedKernel({ context: gl(1,1), constants: { v1: 100 } });
```