()
| 3 | import { addElemIf } from '../build/utils.js'; |
| 4 | |
| 5 | export 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 |