webgpu: Implement ShaderCompilationInfo (#32642)

* ShaderCompilationInfo

* expectations

* Handle CompilationInfo promise in GPUShaderModule

* Fix my english
This commit is contained in:
Samson 2024-07-02 15:39:06 +02:00 committed by GitHub
parent bd0a5eb4b7
commit c0105de82b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 22103 additions and 682 deletions

View file

@ -486,7 +486,6 @@ dictionary GPUPipelineLayoutDescriptor : GPUObjectDescriptorBase {
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
interface GPUShaderModule {
[Throws]
Promise<GPUCompilationInfo> getCompilationInfo();
};
GPUShaderModule includes GPUObjectBase;
@ -515,9 +514,8 @@ interface GPUCompilationMessage {
[Exposed=(Window, DedicatedWorker), Pref="dom.webgpu.enabled"]
interface GPUCompilationInfo {
// codegen hates it
//[Cached, Frozen, Pure]
readonly attribute /*sequence<GPUCompilationMessage>*/ any messages;
//readonly attribute FrozenArray<GPUCompilationMessage> messages;
readonly attribute any messages;
};
enum GPUAutoLayoutMode {