/ concept-collection / matmul-bench
Sign in
concept-collection / matmul-bench
matmul-bench / src / methods / webgpu-globals.d.ts
20 lines · 487 BBlameHistoryRaw
1// lib.dom.d.ts has the WebGPU interface types (GPUDevice, GPUBuffer, ...) but
2// not these runtime flag namespaces, so tsc can't see them even though every
3// browser with navigator.gpu provides them.
4declare const GPUBufferUsage: {
5 MAP_READ: number
6 MAP_WRITE: number
7 COPY_SRC: number
8 COPY_DST: number
9 INDEX: number
10 VERTEX: number
11 UNIFORM: number
12 STORAGE: number
13 INDIRECT: number
14 QUERY_RESOLVE: number
17declare const GPUMapMode: {
18 READ: number
19 WRITE: number
moveopenescclose