callDevice
이 페이지에서

callDevice()

함수, 런타임 분류

호출이 실행되는 디바이스의 보고서이며, gpuDevice()가 주는 것과 같습니다. 디바이스는 호출이 요청하는 방식대로 요청됩니다.

import { callDevice } from 'typeshade'
import { callDevice } from 'typeshade/runtime'

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

구문

function callDevice(): Promise<DeviceReport | null>

반환값

Promise<DeviceReport | null>

설명

WebGPU가 없으면 null입니다.

소스

src/core/host-entry.ts, 616행, 커밋 af54ddad5 기준

이 페이지 편집 문제 보고