ScarletNX / ScarletNX documentation / Render targets as views of their textures · ← previous · next →
Risks
- A target moves to another storage while a command buffer that is recording uses its old image. The move must take
effect at a submission's boundary, with the old image deferred, as
tex_image_swap does.
- Eviction under memory pressure frees a storage that several views use. Each view must find out (a generation on the
storage), as the texture memo's checks find a freed texture now.
- A game that draws a subresource in one format and samples it in another of the same texel size. The view format
must be in the storage's list, so the list is fixed when the storage is made. A format that comes later and is not
in the list makes a new storage, one time.
← previous · next →