1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import * as init from 'ext:deno_webgpu/00_init.js';
//import * as webgpu from 'ext:deno_webgpu/01_webgpu.js';
import * as webgpuSurface from 'ext:deno_webgpu/02_surface.js';
globalThis. = webgpuSurface.;
/*
import { applyToGlobal, nonEnumerable } from 'ext:rustyscript/rustyscript.js';
applyToGlobal({
GPU: nonEnumerable((webgpu) => webgpu.GPU, loadWebGPU),
GPUAdapter: nonEnumerable(
(webgpu) => webgpu.GPUAdapter,
loadWebGPU,
),
GPUAdapterInfo: nonEnumerable(
(webgpu) => webgpu.GPUAdapterInfo,
loadWebGPU,
),
GPUBuffer: nonEnumerable(
(webgpu) => webgpu.GPUBuffer,
loadWebGPU,
),
GPUBufferUsage: nonEnumerable(
(webgpu) => webgpu.GPUBufferUsage,
loadWebGPU,
),
GPUCanvasContext: nonEnumerable(webgpuSurface.GPUCanvasContext),
GPUColorWrite: nonEnumerable(
(webgpu) => webgpu.GPUColorWrite,
loadWebGPU,
),
GPUCommandBuffer: nonEnumerable(
(webgpu) => webgpu.GPUCommandBuffer,
loadWebGPU,
),
GPUCommandEncoder: nonEnumerable(
(webgpu) => webgpu.GPUCommandEncoder,
loadWebGPU,
),
GPUComputePassEncoder: nonEnumerable(
(webgpu) => webgpu.GPUComputePassEncoder,
loadWebGPU,
),
GPUComputePipeline: nonEnumerable(
(webgpu) => webgpu.GPUComputePipeline,
loadWebGPU,
),
GPUDevice: nonEnumerable(
(webgpu) => webgpu.GPUDevice,
loadWebGPU,
),
GPUDeviceLostInfo: nonEnumerable(
(webgpu) => webgpu.GPUDeviceLostInfo,
loadWebGPU,
),
GPUError: nonEnumerable(
(webgpu) => webgpu.GPUError,
loadWebGPU,
),
GPUBindGroup: nonEnumerable(
(webgpu) => webgpu.GPUBindGroup,
loadWebGPU,
),
GPUBindGroupLayout: nonEnumerable(
(webgpu) => webgpu.GPUBindGroupLayout,
loadWebGPU,
),
GPUInternalError: nonEnumerable(
(webgpu) => webgpu.GPUInternalError,
loadWebGPU,
),
GPUPipelineError: nonEnumerable(
(webgpu) => webgpu.GPUPipelineError,
loadWebGPU,
),
GPUUncapturedErrorEvent: nonEnumerable(
(webgpu) => webgpu.GPUUncapturedErrorEvent,
loadWebGPU,
),
GPUPipelineLayout: nonEnumerable(
(webgpu) => webgpu.GPUPipelineLayout,
loadWebGPU,
),
GPUQueue: nonEnumerable(
(webgpu) => webgpu.GPUQueue,
loadWebGPU,
),
GPUQuerySet: nonEnumerable(
(webgpu) => webgpu.GPUQuerySet,
loadWebGPU,
),
GPUMapMode: nonEnumerable(
(webgpu) => webgpu.GPUMapMode,
loadWebGPU,
),
GPUOutOfMemoryError: nonEnumerable(
(webgpu) => webgpu.GPUOutOfMemoryError,
loadWebGPU,
),
GPURenderBundle: nonEnumerable(
(webgpu) => webgpu.GPURenderBundle,
loadWebGPU,
),
GPURenderBundleEncoder: nonEnumerable(
(webgpu) => webgpu.GPURenderBundleEncoder,
loadWebGPU,
),
GPURenderPassEncoder: nonEnumerable(
(webgpu) => webgpu.GPURenderPassEncoder,
loadWebGPU,
),
GPURenderPipeline: nonEnumerable(
(webgpu) => webgpu.GPURenderPipeline,
loadWebGPU,
),
GPUSampler: nonEnumerable(
(webgpu) => webgpu.GPUSampler,
loadWebGPU,
),
GPUShaderModule: nonEnumerable(
(webgpu) => webgpu.GPUShaderModule,
loadWebGPU,
),
GPUShaderStage: nonEnumerable(
(webgpu) => webgpu.GPUShaderStage,
loadWebGPU,
),
GPUSupportedFeatures: nonEnumerable(
(webgpu) => webgpu.GPUSupportedFeatures,
loadWebGPU,
),
GPUSupportedLimits: nonEnumerable(
(webgpu) => webgpu.GPUSupportedLimits,
loadWebGPU,
),
GPUTexture: nonEnumerable(
(webgpu) => webgpu.GPUTexture,
loadWebGPU,
),
GPUTextureView: nonEnumerable(
(webgpu) => webgpu.GPUTextureView,
loadWebGPU,
),
GPUTextureUsage: nonEnumerable(
(webgpu) => webgpu.GPUTextureUsage,
loadWebGPU,
),
GPUValidationError: nonEnumerable(
(webgpu) => webgpu.GPUValidationError,
loadWebGPU,
),
})*/