From 07cb307d9bc7f769ff084d42cb512d14ea4bbf78 Mon Sep 17 00:00:00 2001 From: Robert Plummer Date: Tue, 8 Oct 2019 10:35:48 -0400 Subject: [PATCH] fix: Add js highlighting --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 98b8bc03..e0dbc5a2 100644 --- a/README.md +++ b/README.md @@ -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 } }); - ```