diff --git a/dist/index.d.ts b/dist/index.d.ts index 84c4b72..48fbec5 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1313,7 +1313,7 @@ interface GPURenderPipelineDescriptor } interface GPURequestAdapterOptions { - featureLevel?: any; + featureLevel?: string; /** * Optionally provides a hint indicating what class of adapter should be selected from * the system's available adapters. @@ -2070,6 +2070,10 @@ interface GPUCanvasContext { * Removes the context configuration. Destroys any textures produced while configured. */ unconfigure(): undefined; + /** + * Returns the context configuration. + */ + getConfiguration(): GPUCanvasConfiguration | null; /** * Get the {@link GPUTexture} that will be composited to the document by the {@link GPUCanvasContext} * next. diff --git a/generated/index.d.ts b/generated/index.d.ts index 7aa39c7..da463fd 100644 --- a/generated/index.d.ts +++ b/generated/index.d.ts @@ -1301,7 +1301,7 @@ interface GPURenderPipelineDescriptor } interface GPURequestAdapterOptions { - featureLevel?: any; + featureLevel?: string; powerPreference?: GPUPowerPreference; forceFallbackAdapter?: boolean; } @@ -1929,6 +1929,10 @@ interface GPUCanvasContext { * Removes the context configuration. Destroys any textures produced while configured. */ unconfigure(): undefined; + /** + * Returns the context configuration. + */ + getConfiguration(): GPUCanvasConfiguration | null; /** * Get the {@link GPUTexture} that will be composited to the document by the {@link GPUCanvasContext} * next. diff --git a/gpuweb b/gpuweb index a9b1fa0..7cffc10 160000 --- a/gpuweb +++ b/gpuweb @@ -1 +1 @@ -Subproject commit a9b1fa003e64a031a7a9ddf0df365165fbec6556 +Subproject commit 7cffc109d9e971dfa4a950466b798a4cdf3294a7