Skip to content
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

Returning back an array per pixel #25

Open
ZeepXanflorp opened this issue Jul 15, 2017 · 2 comments
Open

Returning back an array per pixel #25

ZeepXanflorp opened this issue Jul 15, 2017 · 2 comments

Comments

@ZeepXanflorp
Copy link

This is more of a question than an issue:

I'm trying to write a bhuddabrot with webmonkeys, where each calculation based on a pixel returns a cloud of points which are then laid upon each other to create the final image. in OpenCL this is achieved using a shared array. After some digging, it looks like WebGL is written so that is returns one vector per calculation, and cannot return an array or access a shared grid in memory. Is this correct, or have I mis-understood the examples?

@VictorTaelin
Copy link
Owner

Sorry, I do not understand the question.

WebGL is written so that is returns one vector per calculation

And similar sentences make no sense to me...

@ZeepXanflorp
Copy link
Author

I'm sorry my question did not make much sense - I'm not too good at the terminology. I see a lot of the examples have a kernel calculation that return a single value, usually placing that single value into an array (often called nums). However, per kernel calculation, I want to return an array of numbers, not just one. I.e. set all the values of nums each kernel calculation. What is a good example of this?

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

No branches or pull requests

2 participants