From 31973b05d847a3a851d1c1c1d46133301ca0ee61 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Fri, 11 Oct 2024 12:00:56 +0200 Subject: [PATCH 1/5] Add WebGPU --- features/{draft/spec => }/webgpu.yml | 3 +-- features/{draft/spec => }/webgpu.yml.dist | 0 2 files changed, 1 insertion(+), 2 deletions(-) rename features/{draft/spec => }/webgpu.yml (98%) rename features/{draft/spec => }/webgpu.yml.dist (100%) diff --git a/features/draft/spec/webgpu.yml b/features/webgpu.yml similarity index 98% rename from features/draft/spec/webgpu.yml rename to features/webgpu.yml index 6c14afc4d6b..98c987bc32e 100644 --- a/features/draft/spec/webgpu.yml +++ b/features/webgpu.yml @@ -1,6 +1,5 @@ -draft_date: 2024-09-09 name: WebGPU -description: TODO +description: WebGPU is an API for performing operations, such as rendering and computation, on a Graphics Processing Unit. spec: https://gpuweb.github.io/gpuweb/ compat_features: - api.GPU diff --git a/features/draft/spec/webgpu.yml.dist b/features/webgpu.yml.dist similarity index 100% rename from features/draft/spec/webgpu.yml.dist rename to features/webgpu.yml.dist From 63f03eda499375aab45528ab5bf69f60547f6743 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 21 Oct 2024 11:54:56 +0200 Subject: [PATCH 2/5] Use compute_from to match caniuse --- features/webgpu.yml | 2 ++ features/webgpu.yml.dist | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/features/webgpu.yml b/features/webgpu.yml index 91e856ff39d..02b39897875 100644 --- a/features/webgpu.yml +++ b/features/webgpu.yml @@ -1,6 +1,8 @@ name: WebGPU description: WebGPU is an API for performing operations, such as rendering and computation, on a Graphics Processing Unit. spec: https://gpuweb.github.io/gpuweb/ +status: + compute_from: api.GPU compat_features: - api.GPU - api.GPU.getPreferredCanvasFormat diff --git a/features/webgpu.yml.dist b/features/webgpu.yml.dist index e4615c9f6b5..1d1dcb4541d 100644 --- a/features/webgpu.yml.dist +++ b/features/webgpu.yml.dist @@ -3,8 +3,12 @@ status: baseline: false - support: {} + support: + chrome: "113" + chrome_android: "121" + edge: "113" compat_features: + # ⬇️ Same status as overall feature ⬇️ # baseline: false # support: # chrome: "113" @@ -287,7 +291,6 @@ compat_features: - api.WGSLLanguageFeatures.size - api.WGSLLanguageFeatures.values - # ⬇️ Same status as overall feature ⬇️ # baseline: false # support: {} - api.GPUCanvasContext.getConfiguration From 7c8901964ce3d64ec05ad30796d68a5ad7c9cc3a Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 21 Oct 2024 14:01:44 +0200 Subject: [PATCH 3/5] Apply suggestions from code review Co-authored-by: Daniel D. Beck --- features/webgpu.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/features/webgpu.yml b/features/webgpu.yml index 02b39897875..660e0947a8a 100644 --- a/features/webgpu.yml +++ b/features/webgpu.yml @@ -1,8 +1,9 @@ name: WebGPU -description: WebGPU is an API for performing operations, such as rendering and computation, on a Graphics Processing Unit. +description: The `navigator.gpu` API performs operations on such as rendering and computation on dedicated graphics hardware (also known as a Graphics Processing Unit). spec: https://gpuweb.github.io/gpuweb/ +caniuse: webgpu status: - compute_from: api.GPU + compute_from: api.Navigator.gpu compat_features: - api.GPU - api.GPU.getPreferredCanvasFormat From c737ebc8078cfd97b85f13084c1936643932a83c Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 21 Oct 2024 14:05:23 +0200 Subject: [PATCH 4/5] npm run dist --- features/webgpu.yml.dist | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/webgpu.yml.dist b/features/webgpu.yml.dist index 1d1dcb4541d..5fabc8030bc 100644 --- a/features/webgpu.yml.dist +++ b/features/webgpu.yml.dist @@ -5,10 +5,8 @@ status: baseline: false support: chrome: "113" - chrome_android: "121" edge: "113" compat_features: - # ⬇️ Same status as overall feature ⬇️ # baseline: false # support: # chrome: "113" @@ -269,6 +267,7 @@ compat_features: # edge: "129" - api.GPUCanvasContext.configure.toneMapping + # ⬇️ Same status as overall feature ⬇️ # baseline: false # support: # chrome: "113" From e01a9e1cebf4a7f753bcc772db51cc6b3446a4bf Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Mon, 21 Oct 2024 15:51:58 +0200 Subject: [PATCH 5/5] Fix on on --- features/webgpu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/webgpu.yml b/features/webgpu.yml index 660e0947a8a..ad56784528e 100644 --- a/features/webgpu.yml +++ b/features/webgpu.yml @@ -1,5 +1,5 @@ name: WebGPU -description: The `navigator.gpu` API performs operations on such as rendering and computation on dedicated graphics hardware (also known as a Graphics Processing Unit). +description: The `navigator.gpu` API performs operations such as rendering and computation on dedicated graphics hardware (also known as a Graphics Processing Unit). spec: https://gpuweb.github.io/gpuweb/ caniuse: webgpu status: