[code-reflection] RFR: Float4 arrayView support [v2]
duke
duke at openjdk.org
Fri Nov 7 19:03:31 UTC 2025
On Fri, 7 Nov 2025 18:49:49 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] = ...
>
> Ruby Chen has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits:
>
> - Merge branch 'code-reflection' into array-view
> - Cleaning up vector arrayView
> - Merge branch 'code-reflection' into array-view
> - Float4 arrayView support
@rbrchen
Your change (at version 1ab7a3a260f8ec23c9abfc800cf9a50774aff414) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/babylon/pull/646#issuecomment-3504320631
More information about the babylon-dev
mailing list