Repository navigation
Measure D16 point and linear sampling through a runtime sampler heap - #2
Open
passerbyyhx wants to merge 1 commit into
Conversation
Use the same translated sampler table, PSO and bound heap for point, linear and point again. Record a paired f32 alongside the packed word and verify both DXIL sampler dependencies. Keep the cross-device measurement opt-in and report the measured edge codes.
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds an opt-in Windows measurement for the heap-loaded sampler case discussed in Marvisak#2030 and Marvisak#2006. The fixture reuses one translated compute shader, one pipeline and the same physical sampler slot for point → linear → point. Each dispatch records both the D16 result and its paired f32 sample. The fixture also verifies in DXIL that both sampling operations use a handle loaded from the sampler heap.
At
e87c4f1, the RTX 4090 Laptop and WARP gave these results:ffaf3f7fb0003bfe3bfdffef3f7ff0003c003bffff6fandffef3f7fb0003bfe3bfePoint references round the exact fraction
code / 65535once to binary16. Linear references round the paired f32 read on the same device. The first and last rows have identical f32 bits but different reference D16 values. This narrows what a future correction must distinguish. Three independent processes reproduced the readbacks on both devices.The fixture prints the point discrepancies and checks its controls. The regular D16 tests still pass; strict shader Clippy and the asset check passed. The report includes the complete matrix and the command for running the measurement.
Complete measurements and reference calculation · Coordination claim