-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
webgpu: upgrade webgpu/types #7528
Conversation
@shaoboyan Please take a look the changes in |
fromPixels2DContext = | ||
document.createElement('canvas').getContext( | ||
'2d', {willReadFrequently}); | ||
fromPixels2DContext = document.createElement('canvas').getContext( |
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.
Just a format, right?
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.
Yes, it's automatically adjusted.
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.
LGTM for the importExternalTexture
related changes.
backend.device.importExternalTexture(externalTextureDescriptor)); | ||
} | ||
|
||
const externalTextureDescriptor = {source: pixels as HTMLVideoElement}; |
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.
Nit: Remove externalTextureDescriptor
, use backend.device.importExternalTexture({source: pixels as HTMLVideoElement})
?
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.
LGTM
This PR also uses the platform supported max buffer size, otherwise the limit is 256M.
Meanwhile, it removes expired which is not supported anymore.
To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.
This change is