Identity domains: a storage cube written or read by face is the 2D-array element of its faces
The translator declares every storage cube and cube array as the 2D array of its faces, at layer 6 * cube + face (cube_as_array). Under the resident-table domains the binder supplies that view. Under the identity domains no class held it, so a kernel that writes a cube by face was refused with "texture argument S: a type the identity arrays hold no element of". In the private corpus on runtime-floor that refusal covered 30 guest functions alone, and 6 more together with a sampled cube read by face. Now: - Translator: identity_class takes a storage declaration that views a cube as an array as the 2D-array storage class, and a storage cube states no ImageViewShape fact under the identity domains. A sampled cube read by face (access::read or access::sample) still has no class and stays refused. - Runtime: a cube's or cube array's storage element, for a texture and for a texture view, is a VK_IMAGE_VIEW_TYPE_2D_ARRAY view of its 6N layers (storage_view_type). Vulkan takes that view of any cube-compatible image, so every device gets the same form, at no copy and no cost. The sampled element stays the cube view. - docs/API.md states the storage element a consumer holds for a cube. The runtime README says what a cube's storage view is, and its identity-domain gap list keeps only sampled cubes read by face. - The same README list adds the refusal of a storage texture written at a run-time level, with what Metal does on Intel Macs: an owned kernel's writes at levels 1 and 2, read from a buffer, landed exactly on a Radeon Pro 5300M and a UHD 630 under macOS 26.7.1, with Metal's validation off, with API validation, and with shader validation (job m3-max-70040, probe built in m3-max-70037). Under the resident-table domains nothing changes: both translator changes apply only under the identity domains.
This commit is contained in:
1 parent
d17a643504
commit
82f0ceca53
4 files changed
+54
-18
No files matched your search
+4
-1
@@ -188,7 +188,10 @@ and so do the command line, the compile worker and every validation tool. It hol
|
||||
the capped `maxComputeWorkGroupInvocations` on every axis. A texture slot's `gpuResourceID` is pushed as
|
||||
its `PushField::SlotGuestBase`, and its texture is the element at the ID's index of set 1's two
|
||||
fixed arrays, the same layout for every pipeline ([RESOURCE-ID.md](RESOURCE-ID.md)); it binds no
|
||||
descriptor of its own and declares no specialization constant. An argument buffer's texture is
|
||||
descriptor of its own and declares no specialization constant. A storage cube or cube array slot
|
||||
is declared as the 2D array of its faces and written and read by face at layer
|
||||
`6 · cube + face`, so the storage element a consumer holds for a cube texture is that 2D-array
|
||||
view of its layers. An argument buffer's texture is
|
||||
the element at the index of the `gpuResourceID` its member holds, with no handle table, so a
|
||||
slot and a member of one class index one array. No variant is chosen there: a
|
||||
texture reads through the plain form whatever texture its ID names, its `float` or `half` reads
|
||||
|
||||
Reference in new issue
Block a user