MCPcopy Index your code
hub / github.com/dawn-gpu/node-webgpu / getGPU

Function getGPU

test/webgpu.js:5–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { addElemIf } from '../build/utils.js';
4
5export function getGPU() {
6 const options = [];
7 if (!!process.env.WEBGPU_USE_CI_AVAILABLE_RENDERER) {
8 options.push(...addElemIf(isWin, 'adapter=Microsoft'));
9 options.push(...addElemIf(isLinux, 'adapter=llvmpipe'));
10 }
11 return { gpu: create(options), globals };
12}
13

Callers 1

basic-tests.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected