-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add webcodecs
IDL spec and generated code
#16
Conversation
041a209
to
6552e6a
Compare
I recommend temporarily changing |
Marking this as draft until #19 is resolved. |
This is a requirement for `webgl2`, which I'm going to add in a future PR.
e46eeda
to
60c6643
Compare
Sources/DOMKit/Generated.swift
Outdated
public class AudioTrack: JSBridgedClass { | ||
@inlinable public class var constructor: JSFunction { JSObject.global[Strings.AudioTrack].function! } | ||
public class AudioData: JSBridgedClass { | ||
@inlinable public class var constructor: JSFunction { JSObject.global[Strings.AudioData].function! } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the types are being printed in different orders each time. This doesn’t have to be fixed for this PR tho, I’ll try to open a PR shortly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at this again (especially after reviewing the other PRs), I don’t think this is an actual problem. Not sure why the diff got messed up here but all the other PRs solely contain additive changes.
…eam-recording # Conflicts: # Sources/DOMKit/Generated.swift # parse-idl/parse-all.js
…Kit into maxd/webcodecs # Conflicts: # Sources/DOMKit/Generated.swift
# Conflicts: # Sources/DOMKit/Generated.swift # parse-idl/parse-all.js
Heads up that a few types have been disabled because they depend on specs not included in the initial PR, so feel free to remove any of these that work now: WebAPIKit/Sources/WebIDLToSwift/IDLBuilder.swift Lines 19 to 22 in 45f476a
WebAPIKit/Sources/WebIDLToSwift/IDLBuilder.swift Lines 96 to 99 in 45f476a
|
Checked that list, only |
This is a requirement for
webgl2
, which I'm going to add in a future PR.