[code-reflection] Integrated: Float4 arrayView support
Ruby Chen
duke at openjdk.org
Sat Nov 8 12:07:39 UTC 2025
On Mon, 27 Oct 2025 23:56:01 GMT, Ruby Chen <duke at openjdk.org> wrote:
> 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] = ...
This pull request has now been integrated.
Changeset: 0b587086
Author: Ruby Chen <ruby.r.chen at gmail.com>
Committer: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/0b58708658078ac1e7b4c46ea171d22d30e039d4
Stats: 1645 lines in 13 files changed: 1222 ins; 400 del; 23 mod
Float4 arrayView support
-------------
PR: https://git.openjdk.org/babylon/pull/646
More information about the babylon-dev
mailing list