From d2382fcb4d9dea641d21e327564f99189b76b1f6 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Thu, 8 Jan 2026 11:41:13 -0500 Subject: [PATCH 1/4] Add `texture_and_sampler_let` language feature. Add support for the `texture_and_sampler_let` language feature. Spec PR: https://github.com/gpuweb/gpuweb/issues/5339 --- webgpu.h | 4 ++++ webgpu.json | 4 ++++ webgpu.yml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/webgpu.h b/webgpu.h index a2d5cea..4e4ed73 100644 --- a/webgpu.h +++ b/webgpu.h @@ -1244,6 +1244,10 @@ typedef enum WGPUWGSLLanguageFeatureName { WGPUWGSLLanguageFeatureName_PointerCompositeAccess = 0x00000004, WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout = 0x00000005, WGPUWGSLLanguageFeatureName_SubgroupId = 0x00000006, + /** + * Allow textures and samplers to be assigned in a let expression. + */ + WGPUWGSLLanguageFeatureName_TextureAndSamplerLet = 0x00000007, WGPUWGSLLanguageFeatureName_Force32 = 0x7FFFFFFF } WGPUWGSLLanguageFeatureName WGPU_ENUM_ATTRIBUTE; diff --git a/webgpu.json b/webgpu.json index 422be04..027b641 100644 --- a/webgpu.json +++ b/webgpu.json @@ -2397,6 +2397,10 @@ { "doc": "TODO\n", "name": "subgroup_id" + }, + { + "doc": "Allow textures and samplers to be assigned in a let expression.\n", + "name": "texture_and_sampler_let" } ], "name": "WGSL_language_feature_name" diff --git a/webgpu.yml b/webgpu.yml index 28d1a3a..595b910 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -1513,6 +1513,9 @@ enums: - name: subgroup_id doc: | TODO + - name: texture_and_sampler_let + doc: | + Allow textures and samplers to be assigned in a let expression. bitflags: - name: buffer_usage doc: | From d39c88e9c3ec181a01c8ed077a2b09b89930ef03 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Mon, 12 Jan 2026 10:39:44 -0500 Subject: [PATCH 2/4] Update webgpu.yml --- webgpu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgpu.yml b/webgpu.yml index 595b910..15e90e5 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -1515,7 +1515,7 @@ enums: TODO - name: texture_and_sampler_let doc: | - Allow textures and samplers to be assigned in a let expression. + TODO bitflags: - name: buffer_usage doc: | From 1be70d39cab0d176d86056d62ce00ffc10817528 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Mon, 12 Jan 2026 10:42:16 -0500 Subject: [PATCH 3/4] Update webgpu.h --- webgpu.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/webgpu.h b/webgpu.h index 4e4ed73..c8b017a 100644 --- a/webgpu.h +++ b/webgpu.h @@ -1244,9 +1244,6 @@ typedef enum WGPUWGSLLanguageFeatureName { WGPUWGSLLanguageFeatureName_PointerCompositeAccess = 0x00000004, WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout = 0x00000005, WGPUWGSLLanguageFeatureName_SubgroupId = 0x00000006, - /** - * Allow textures and samplers to be assigned in a let expression. - */ WGPUWGSLLanguageFeatureName_TextureAndSamplerLet = 0x00000007, WGPUWGSLLanguageFeatureName_Force32 = 0x7FFFFFFF } WGPUWGSLLanguageFeatureName WGPU_ENUM_ATTRIBUTE; From ba5637175951a418c9fa2b446f2168598e35524d Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Mon, 12 Jan 2026 10:44:34 -0500 Subject: [PATCH 4/4] Update webgpu.json --- webgpu.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgpu.json b/webgpu.json index 027b641..5b5503c 100644 --- a/webgpu.json +++ b/webgpu.json @@ -2399,7 +2399,7 @@ "name": "subgroup_id" }, { - "doc": "Allow textures and samplers to be assigned in a let expression.\n", + "doc": "TODO\n", "name": "texture_and_sampler_let" } ],