diff --git a/docs/developer-guide/installing.md b/docs/developer-guide/installing.md index bf322c2c28..af14d48e76 100644 --- a/docs/developer-guide/installing.md +++ b/docs/developer-guide/installing.md @@ -20,9 +20,9 @@ yarn add @luma.gl/webgpu ```typescript import {luma} from '@luma.gl/core'; -import {webgl2Adapter} '@luma.gl/webgpu'; +import {webgpuAdapter} from '@luma.gl/webgpu'; -const device = await luma.createDevice({type: 'webgpu', adapters: [webgl2Adapter], createCanvasContext: ...}); +const device = await luma.createDevice({type: 'webgpu', adapters: [webgpuAdapter], createCanvasContext: ...}); ``` It is possible to register more than one device adapter to create an application @@ -30,8 +30,8 @@ that can work in both WebGL and WebGPU environments. ```typescript import {luma} from '@luma.gl/core'; -import {webgl2Adapter} '@luma.gl/webgpu'; -import {webgpuAdapter} '@luma.gl/webgl'; +import {webgpuAdapter} from '@luma.gl/webgpu'; +import {webgl2Adapter} from '@luma.gl/webgl'; const webgpuDevice = luma.createDevice({type: 'best-available', adapters: [webgl2Adapter, webgpuAdapter], createCanvasContext: ...}); ```