mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-27 04:35:27 +00:00
The independent review found binding rules that diverged from D3D12: changing descriptor heaps kept tables bound in the old heaps, setting the same root signature again cleared its tables, and unsupported draw shapes were drawn as one triangle. Now heap changes and a different root signature invalidate tables, while redundant sets keep them. Table bases are checked against the bound heap of their type when bound. Textured draws other than one instance of three vertices fail, and zero vertices or instances draw nothing. Descriptor handle offsets can no longer carry into another heap's ID. SRVs of array or multi-level textures are rejected. A texture whose state excludes pixel-shader reads is not sampled. Vertex buffer offsets are overflow-checked. The tests now cover swapped root parameters, a second sampler slot, off-centre and out-of-range coordinates, state transitions, draw shapes and resource bounds. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>