aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/WebGPU.webidl
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2024-09-04 13:31:07 +0200
committerGitHub <noreply@github.com>2024-09-04 11:31:07 +0000
commit3c6ca338327c5ee1db7cf7c83325771ad0a6b43d (patch)
tree2d775ec3203b6acd5b8c0935a6f82a5e33fca499 /components/script/dom/webidls/WebGPU.webidl
parenta976db3ec05304387055034cd1f2f3f3c5fb65f5 (diff)
downloadservo-3c6ca338327c5ee1db7cf7c83325771ad0a6b43d.tar.gz
servo-3c6ca338327c5ee1db7cf7c83325771ad0a6b43d.zip
webgpu: Support pipeline-overridable constants (#33291)
* Impl pipeline constants Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * More relaxed lifetimes Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Update expectations Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Replace convert function with `From` implementation Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/script/dom/webidls/WebGPU.webidl')
-rw-r--r--components/script/dom/webidls/WebGPU.webidl3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/webidls/WebGPU.webidl b/components/script/dom/webidls/WebGPU.webidl
index 2de46855b19..b3a9c1841b6 100644
--- a/components/script/dom/webidls/WebGPU.webidl
+++ b/components/script/dom/webidls/WebGPU.webidl
@@ -625,8 +625,11 @@ interface mixin GPUPipelineBase {
dictionary GPUProgrammableStage {
required GPUShaderModule module;
USVString entryPoint;
+ record<USVString, GPUPipelineConstantValue> constants;
};
+typedef double GPUPipelineConstantValue; // May represent WGSL's bool, f32, i32, u32, and f16 if enabled.
+
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
interface GPUComputePipeline {
};