Replace Instances<T>::empty() with Instances<T>::default() and make it return an empty table for vector data instead of one empty row (#2689)

Make Instances<T>::default() return an empty table for everything, even vector, and replace ::empty() with ::default()
This commit is contained in:
Keavon Chambers 2025-06-04 21:00:21 -07:00 committed by GitHub
parent cb4289169d
commit 2696abc6b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 110 additions and 115 deletions

View file

@ -912,7 +912,7 @@ async fn render_texture<'a: 'n>(
#[node_macro::node(category(""))]
async fn upload_texture<'a: 'n>(_: impl ExtractFootprint + Ctx, input: ImageFrameTable<Color>, executor: &'a WgpuExecutor) -> TextureFrameTable {
let mut result_table = TextureFrameTable::empty();
let mut result_table = TextureFrameTable::default();
for instance in input.instance_ref_iter() {
let image = instance.instance;