-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eagerly serialized, partially updatable 2D & 3D line strips #8650
Conversation
Web viewer failed to build. | Result | Commit | Link | Manifest | Note: This comment is updated whenever you push a commit. |
19b3032
to
e067f32
Compare
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12713445477 |
components::LineStrip2D::from_iter([[0., 3.], [1., 4.], [2., 2.], [3., 4.], [4., 2.], [5., 4.], [6., 3.]]), // | ||
] | ||
.serialized() | ||
.map(|batch| batch.with_descriptor_override(LineStrips2D::descriptor_strips())), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, we need to do this manually in the tests now… oh well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, we only need to do it for that specific test because that's the thing I'm testing for. In any other case I sure hope people will use the builder methods!
55800f3
to
ba709f9
Compare
e067f32
to
e30aa4b
Compare
…+ partial (#8666) Introduces a new attribute that, when paired with an eager archetype, will also generate a native companion type with back-and-forth conversion methods. This is especially useful for blueprint archetypes (although there are definitely non-blueprint examples too), which are heavily used all across the viewer, and would be very painful to use otherwise. ```rust /// Whether we should generate an extra Rust object comprised of native Rust types. /// /// The generated object will have the name of the archetype, prefixed by `Native`, /// e.g. `NativePoints3D`. /// /// Applies only to *eager* archetypes. No-op otherwise. attribute "attr.rust.archetype_native"; ``` With this, we now should have all the tools required to port every remaining archetype (both blueprint and data). * Part of #8650
This PR makes
LineStrips2D
andLineStrips3D
eagerly serialized and partially update-able.This demonstrates how to migrate an archetype in the simple case.