Skip to content

Conversation

@andyfinnell
Copy link
Collaborator

@andyfinnellandyfinnell commented Oct 19, 2025

Summary

Right now image nodes hardcode logic to use either PINRemoteImage or the basic image downloader. Additionally, Texture is missing annotations for nullability and sendable for several of the image blocks and types.

Introduce ASDefaultImageDownloader as a singleton. It takes blocks to return the default image downloader and image cache. Update both image nodes to use this. By default ASDefaultImageDownloader uses the same logic the image nodes used to, so there's no change in runtime behavior.

Test plan

Run the Kittens example and verify it works.

## Summary Right now image nodes hardcode logic to use either PINRemoteImage or the basic image downloader. Additionally, Texture is missing annotations for nullability and sendable for several of the image blocks and types. Introduce ASDefaultImageDownloader as a singleton. It takes blocks to return the default image downloader and image cache. Update both image nodes to use this. By default ASDefaultImageDownloader uses the same logic the image nodes used to, so change in behavior. ## Test plan Run the Kittens example and verify it works.
@andyfinnellandyfinnell merged commit e696302 into TextureGroup:masterOct 22, 2025
11 checks passed
@andyfinnellandyfinnell deleted the feature/default-image-downloader branch October 22, 2025 16:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@andyfinnell@rcancro