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

Make PrimitiveBlocks work with BufferAccess #354

Merged
merged 10 commits into from
Sep 7, 2024
Merged

Conversation

tpietzsch
Copy link
Member

This PR explores how PrimitiveBlocks.of(...) (see #330) can be made to work with View chains ending in NativeImg backed by BufferAccess (see #299).

* Add generic parameter S to MemCopy<S,T>
  S is source, e.g., float[] or FloatBuffer
  T is target, e.g., float[] or FloatBuffer

* Generate MemCopy.java from velocity template
  (run bin/generate.groovy to generate)

* new method copyNDRangeRecursive() copies sub-region
  between flattened arrays (of different sizes)
@tpietzsch tpietzsch marked this pull request as ready for review September 7, 2024 21:23
@tpietzsch tpietzsch merged commit 7d939b0 into master Sep 7, 2024
1 check passed
@tpietzsch tpietzsch deleted the buffer-blocks branch September 7, 2024 21:24
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.

1 participant