[code-reflection] RFR: Float4 arrayView support
Ruby Chen
duke at openjdk.org
Fri Oct 31 22:04:49 UTC 2025
Preliminary `Float4` support for arrayViews. Currently only supported for `F32ArrayPadded` buffers, which can be accessed like a `Float4[]` as shown below:
Float4[] arr = buffer.float4ArrayView(); // for a F32ArrayPadded buffer
At the moment, to use an element in the array, the `Float4` must be loaded into a separate variable first, i.e.
Float4 a = arr[index * 4];
A value can be stored into the array through the following syntax:
arr[index * 4] = ...
-------------
Commit messages:
- Cleaning up vector arrayView
- Merge branch 'code-reflection' into array-view
- Float4 arrayView support
Changes: https://git.openjdk.org/babylon/pull/646/files
Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=646&range=00
Stats: 1644 lines in 13 files changed: 1222 ins; 399 del; 23 mod
Patch: https://git.openjdk.org/babylon/pull/646.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/646/head:pull/646
PR: https://git.openjdk.org/babylon/pull/646
More information about the babylon-dev
mailing list