Native host: shaders that need the view-address table (t1) are refused; the D3D12 path binds it #306
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#306
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Olima34 on GitHub · 2026-11-27 10:49 UTC · original
The native host refuses every shader whose translation needs the view-address table (
native/shaders.rs,unsupported(): "needs view addresses or write marks"). That table is root SRVt1inMEMORY_SPACE("View addresses" inemit/mod.rs), with four dwords per heap index:The D3D12 path already builds and binds it:
descriptor/host.rsview_addresses()/note_address()/write_address, bound indraw.rs. The native host has nothing equivalent.What it costs. In a boot-time dump of refused compute (M5 Pro, Series S, main + #304), 7 compute shaders are refused for this alone. All 7 need view addresses, and none needs write marks.
0c748826,48828947,550d92da,a2d0209f,c3873dc0,fcd8ef10) read a buffer view's title address as a number, then walk title memory at computed addresses through the page table. That shape looks like BVH traversal.00bc6a9breads a heap view's address or a texture view's sizes.Plan. Follow the pattern of #264's per-heap stride table:
NativeHost::mirrorwith the existingwrite_address;t1;view_addressescomes out ofunsupported().It'll come with a Metal test: a compute reads a heap view's address, then reads memory at it. It costs 16 bytes per heap index, and we'll report the size for 16 GB Macs.
@Olima34 on GitHub · 2026-11-27 10:49 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 10:50 UTC · original
Claimed by @Olima34. Open a draft pull request with
Refs #306in its description within 24 hours, or the claim expires.@Olima34 on GitHub · 2026-11-27 16:21 UTC · original
/release
Done: #311 is merged (the view-address table, with the zero-field refusal and its tests). This can be closed.