File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,11 @@ class ServiceWorkerGlobalScope: public WorkerGlobalScope {
491
491
492
492
#ifdef WORKERD_EXPERIMENTAL_ENABLE_WEBGPU
493
493
// WebGPU
494
+ JSG_NESTED_TYPE_NAMED (api::gpu::GPUAdapter, GPUAdapter);
495
+ JSG_NESTED_TYPE_NAMED (api::gpu::GPUOutOfMemoryError, GPUOutOfMemoryError);
496
+ JSG_NESTED_TYPE_NAMED (api::gpu::GPUValidationError, GPUValidationError);
497
+ JSG_NESTED_TYPE_NAMED (api::gpu::GPUInternalError, GPUInternalError);
498
+ JSG_NESTED_TYPE_NAMED (api::gpu::GPUDeviceLostInfo, GPUDeviceLostInfo);
494
499
JSG_NESTED_TYPE_NAMED (api::gpu::GPUBufferUsage, GPUBufferUsage);
495
500
JSG_NESTED_TYPE_NAMED (api::gpu::GPUShaderStage, GPUShaderStage);
496
501
JSG_NESTED_TYPE_NAMED (api::gpu::GPUMapMode, GPUMapMode);
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export const read_sync_stack = {
9
9
10
10
const adapter = await navigator . gpu . requestAdapter ( ) ;
11
11
ok ( adapter ) ;
12
+ ok ( adapter instanceof GPUAdapter ) ;
12
13
13
14
const device = await adapter . requestDevice ( ) ;
14
15
ok ( device ) ;
You can’t perform that action at this time.
0 commit comments