mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-01-25 16:08:02 +00:00
fix: Add js highlighting
This commit is contained in:
parent
90292bba6e
commit
07cb307d9b
@ -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 } });
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user