The order they come in

The texture comes first. A target made later (rt_create_) at a level or a layer of it becomes a view of its storage. Its draws go into the texture's image, and nothing copies them.

The targets come first. This is the usual order: a game draws its shadow cascades, or its downsample chain, then binds the array or the mip chain as a texture. The texture's storage is made at the texture's shape. Each target over it that was drawn since memory had its pixels is copied into its subresource one time, the last take. Then the target moves to the new storage: its Surf becomes a view of it, and its old image goes once the frames that used it are done (vk_defer_image). From the next frame on, the target draws into the texture's image.

A bigger shape comes later. A target past the levels or layers of a storage, or a texture of more of them, gets a new storage of the union. The views of the old one move to it after one copy of what the GPU changed, as Eden's JoinImages does. A storage grows a bounded number of times: past that, the shape keeps its own storage and takes.


Made from docs/dev/one-image.md at 69237645142c. GPL-3.0-or-later.