mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
webgpu: Implement ShaderCompilationInfo (#32642)
* ShaderCompilationInfo * expectations * Handle CompilationInfo promise in GPUShaderModule * Fix my english
This commit is contained in:
parent
bd0a5eb4b7
commit
c0105de82b
9 changed files with 22103 additions and 682 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue