Skip to content

Add default image provider - #2127

Merged
andyfinnell merged 3 commits into
TextureGroup:masterfrom
andyfinnell:feature/default-image-downloader
Oct 22, 2025
Merged

andyfinnell merged 3 commits into
TextureGroup:masterfrom
andyfinnell:feature/default-image-downloader

Conversation

@andyfinnell

@andyfinnell andyfinnell commented Oct 19, 2025 •

Copy link
Copy Markdown
Collaborator

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.
@andyfinnell
andyfinnell merged commit e696302 into TextureGroup:master Oct 22, 2025
11 checks passed
@andyfinnell
andyfinnell deleted the feature/default-image-downloader branch October 22, 2025 16:37
Sign up for free to 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