Skip to content

Commit

Permalink
breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Dec 10, 2024
1 parent 9d957d8 commit 6b1b187
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docs/snippets/all/archetypes/image_send_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

// Log the ImageFormat and indicator once, as static.
let format = rerun::components::ImageFormat::rgb8([width as _, height as _]);
rec.log_static("images", &[&format as _, &rerun::Image::indicator() as _])?;
rec.log_static(
"images",
&[
&format as &dyn rerun::ComponentBatch,
&rerun::Image::indicator(),
],
)?;

// Split up the image data into several components referencing the underlying data.
let image_size_in_bytes = width * height * 3;
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/all/archetypes/mesh3d_partial_updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
(glam::Vec3::from(vertex_positions[1]) * factor).into(),
(glam::Vec3::from(vertex_positions[2]) * factor).into(),
];
rec.log("triangle", &[&vertex_positions as _])?;
rec.log("triangle", &vertex_positions)?;
}

Ok(())
Expand Down

0 comments on commit 6b1b187

Please sign in to comment.