Skip to content

How to set data to a field? #17

Description

@JenLyndle

I have a field declared like this:
let scalarField = ti.field(
ti.types.vector(ti.types.vector(ti.f32, 2), 3),
2
);
basically this should hold data like this:
[
[[0,3], [4,5], [6,7]],
[[6,7], [8,9], [10,11]]
]
Am not sure how to populate this field. fromArray works for 1D f32/i32 values, but am not sure how to put this data into the field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions