Update wgpu and impl WGSLLanguageFeatures (#34928)

* Update wgpu and impl `WGSLLanguageFeatures`

dc9b2eb718
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Update expectations

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:
Samson 2025-01-10 18:41:11 +01:00 committed by GitHub
parent 7ac0dfb5b5
commit 4e51c7be43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 148 additions and 659 deletions

View file

@ -57,6 +57,11 @@ interface GPUSupportedFeatures {
readonly setlike<DOMString>;
};
[Exposed=(Window, DedicatedWorker), Pref="dom.webgpu.enabled"]
interface WGSLLanguageFeatures {
readonly setlike<DOMString>;
};
[Exposed=(Window, DedicatedWorker), Pref="dom.webgpu.enabled"]
interface GPUAdapterInfo {
readonly attribute DOMString vendor;
@ -77,6 +82,7 @@ interface GPU {
[NewObject]
Promise<GPUAdapter?> requestAdapter(optional GPURequestAdapterOptions options = {});
GPUTextureFormat getPreferredCanvasFormat();
[SameObject] readonly attribute WGSLLanguageFeatures wgslLanguageFeatures;
};
dictionary GPURequestAdapterOptions {