Shaders: normalized buffer codes give the nearest float, cube gradients take DXIL's base-2 logarithm, d16 data of integer views keeps its bits, unordered views of vertex programs are declared

- VIctory da82e444: the host's division was a step off for some codes, and a
  material index cut from one was the code below.
- DexNom/VIctory 921d8d3b (its cube part, with its test): the level was taken
  from a natural logarithm DXIL does not have, 1.44 times too high; the
  instruction's least level was lost.
- VIctory 4243a96a, for buffers a program picks from the heap.
- VIctory a1a2077a.
Every shader is translated anew.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 10:50:14 -06:00
1 parent 1cfc476831
commit 31f662bc9b
9 files changed
+501 -36

No files matched your search

+1 -1
View File
@@ -1164,7 +1164,7 @@ fn translated_compute_matches_pc() {
typed_view(DXGI_FORMAT_R8_UNORM, 1),
typed_view(DXGI_FORMAT_R16_FLOAT, 2),
typed_view(DXGI_FORMAT_R8G8B8A8_SNORM, 4),
View::Cube(4, &cube_texels),
View::Cube(4, 1, &cube_texels),
])
.collect();
let root_cbv = floats(64, -0.125);