Hold a heap texture to the heap's base only where an image of it binds there

Content: the tree of `development` at bb29a64948, unchanged.
This commit is contained in:
Anees Iqbal committed 2026-10-26 13:19:18 +02:00
1 parent 88d1a345f2
commit 25653b5b1b
7 files changed
+173 -27

No files matched your search

+4 -1
View File
@@ -3298,7 +3298,10 @@ each item named states the rule in full.
placement heap's `newTextureWithDescriptor:offset:` is held to Metal's own alignment, not that
answer, for a texture whose image lies in memory of its own (a shadow of the heap's bytes, a
multisample texture's samples in Metal's tiles): no image binds to the heap's memory there, so
every offset Metal makes the texture at makes it here.
every offset Metal makes the texture at makes it here, and such a texture is held to no
alignment bound of the heap's memory base either, whatever alignment it answers. A texture an
image of does bind into that memory is refused `NotImplemented(HeapTextureAlignment)` where its
answer passes the base (256 KiB, the largest image alignment measured).
- **A heap's texture answers the size that placed it** (`Texture::allocated_size`, Metal's
`allocatedSize`): the size query's answer for its descriptor, a view's its texture's, as Metal
answers; `None` for a texture outside a heap, whose Metal answer the runtime does not model.