mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
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>
This commit is contained in:
parent
a976db3ec0
commit
3c6ca33832
4 changed files with 32 additions and 395 deletions
|
@ -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 {
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue