VICTORY_FILTER_3D: colour-grading tables filtered in the shader (experiment)
PS_CompositeNMB (6318f669e4f17d65) posterizes light in some runs: every pixel of its output is exactly one entry of its first 33^3 table (CS_LUT3DBlend4- WithTonalAdjustments) run through the 64^3 ACES table, i.e. the first table is read unfiltered (steps of 0.44 stops, green/magenta where the channels step apart; ops2 frames 1513/1587/1657). Everything static is right: the translated and the recorded root signature's sampler s1 is linear (filter 0x14), the view is a Texture3D of the 33^3 RGBA16F texture, the table's contents are smooth, and the card filters such a texture (bound by table, by heap index, with a point-sampler heap bound, left in UAV state). With VICTORY_FILTER_3D=1 a level-0 sample of a 3D texture with a linear, clamping immediate sampler is eight textureLoads weighted in the shader, so the card's sampler is out of the path: a run with it on says whether the sampling is what fails, and is the fix if so. Off by default; part of the shader cache key. Test: both forms agree on WARP and the card. examples/capture_probe: what a recorded frame bound for one pipeline (root signatures, heap slots, constant words, 3D table contents), read from the capture's files without a device. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
9a791323ba
commit
d246d10802
6 files changed
+694
No files matched your search
@@ -68,6 +68,7 @@ fn build() -> [u8; 32] {
|
||||
"VICTORY_WAVE_OWN_BITS",
|
||||
"VICTORY_WAVE_LOCAL",
|
||||
"VICTORY_F16_NEAREST",
|
||||
"VICTORY_FILTER_3D",
|
||||
"VICTORY_HELPER_OWN",
|
||||
"VICTORY_FIRSTLANE_OWN",
|
||||
"VICTORY_FIRST_HALF",
|
||||
|
||||
Reference in new issue
Block a user