[code-reflection] Integrated: New dsl style schema extended to support 2D arrays bound by width*height
Gary Frost
gfrost at openjdk.org
Sun Dec 28 14:18:24 UTC 2025
On Sun, 28 Dec 2025 14:10:53 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> Extended the dsl style schema builder to accept 2D bound arrays,.
>
>
> public interface F32Array2D extends Buffer {
> @Reflect default void schema(){array(width()*height());};
> Schema<F32Array2D> schema = Schema.of(F32Array2D.class);
>
> int width();
>
> int height();
>
> float array(long idx);
>
> void array(long idx, float v);
> }
This pull request has now been integrated.
Changeset: b7ee0943
Author: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/b7ee0943de99b8ca2367bdf8c717d1dfaad0bde8
Stats: 208 lines in 5 files changed: 139 ins; 52 del; 17 mod
New dsl style schema extended to support 2D arrays bound by width*height
-------------
PR: https://git.openjdk.org/babylon/pull/794
More information about the babylon-dev
mailing list