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

How to specify offset for the buffer #70

Open
YGCuber opened this issue Jul 23, 2022 · 0 comments
Open

How to specify offset for the buffer #70

YGCuber opened this issue Jul 23, 2022 · 0 comments

Comments

@YGCuber
Copy link

YGCuber commented Jul 23, 2022

I just started to learn how to use vuh. The library is easy and smooth.
But I have the question. I would like to use one big buffer as Array that contains the group of images (not one).
How to specify offset to the image N in the buffer, to process it by kernel?
So I have one block of the memory that I pass to the shader but inside I need to know what data to process.
I don't wont to reject invokation if the current invocation offset is out of the image N, it is the bad way. There is should be another solution, I think.

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

1 participant