Skip to content

Added Canvas Elements as valid input to Kernel #566

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

Merged
merged 3 commits into from
Jan 17, 2020

Conversation

InkLabApp
Copy link
Contributor

This small change only allows single canvas elements as kernel input. They have
the exact same properties and use cases as html images, bit if you need to use
a canvas directly it is more efficient than converting it to an image first.

Because canvas and image have a very similar API in webGL it did not seem to cause any issue. However, I ran into troubles running your test cases on my machine (unmodified source) so I can not confidently say it has passed.

pjewell-biociphers and others added 3 commits January 14, 2020 15:35
This small change only allows single canvas elements as kernel input. They have
the exact same properties and use cases as html images, bit if you need to use
a canvas directly it is more efficient than converting it to an image first.
This small change only allows single canvas elements as kernel input. They have
the exact same properties and use cases as html images, bit if you need to use
a canvas directly it is more efficient than converting it to an image first.
Copy link
Member

@robertleeplummerjr robertleeplummerjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

@robertleeplummerjr robertleeplummerjr merged commit 13f70f4 into gpujs:develop Jan 17, 2020
robertleeplummerjr added a commit that referenced this pull request Jan 18, 2020
ammyk9 pushed a commit to ammyk9/gpu.js that referenced this pull request Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants