Skip to content

shader: verify textured indexed mesh fallback - #802

Merged
R0Y00 merged 2 commits into
R0Y00:mainfrom
Jess-Doit:shader/mesh-textured-fallback
Nov 23, 2026
Merged

R0Y00 merged 2 commits into
R0Y00:mainfrom
Jess-Doit:shader/mesh-textured-fallback

Conversation

@Jess-Doit

@Jess-Doit Jess-Doit commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Change

Extend the indexed mesh fallback from #606 to the source-built textured draw at Shader Model 6.0. Separate the compute and graphics root signatures so compute can read its vertex buffer at t0 and graphics can bind the sampled texture at t0. The graphics root keeps b0 and b1.

Verification

Tested d8819fe on d998665 with Windows 10 22H2 build 19045.6456 and Windows SDK 10.0.26100.0 DXC.

  • GTX 1060 6 GB (32.0.15.6094), in-box WARP (10.0.19041.5794), and app-local WARP 1.0.22 with Agility 1.620.2 matched 128 export bytes and all 1,024 pixels for the baseline, rotated texture, and flipped UV. The stale texture, stale UV, stale b0, and stale b1 controls each changed 276 pixels with matching exports. All 35 fallback cases had zero D3D12 warnings and errors.
  • Debug and Release each passed 7 checks with 22 native mesh capability skips. App-local WARP passed all 14 checks, including the plain and traced native texture draws against the same CPU images, indexed fallback, descriptors, depth, compute-produced texture, lit mesh, and shadow mesh.
  • The textured fallback test reads both pixel CBVs and requires a matching export trace, a matching image, and clean diagnostics on successful draws when the debug layer is available.
$env:XBOX2WINDOWS_ADAPTER = 'GTX 1060'
$tests = '^((mesh_.+|compute_mesh_texture)_(hardware|warp)|offscreen_capability_table_self_test|offscreen_invalid_operation_warp|docs_links)$'
foreach ($preset in 'dev', 'release') {
    cmake --build "out/build/$preset" --parallel 3 --target offscreen_check
    ctest --test-dir "out/build/$preset" --no-tests=error -V -R $tests
}
# In a configured app-local Agility and WARP build
cmake --build out/build/app-local --parallel 3 --target offscreen_check
ctest --test-dir out/build/app-local --no-tests=error -V -R '^((mesh_.+|compute_mesh_texture)_warp|offscreen_capability_table_self_test)$'

Evidence and follow-up

Reuses the MIT-licensed textured fixture and CPU image reference. The three texture_case results remained byte-identical, and the compute-produced texture regression from #658 passed on app-local WARP. The experiment notes in docs/experiments.md document the fallback bindings and controls.

Checklist

  • Covers one reviewable behavior.
  • Includes test commands, results, and capability skips.
  • Includes stale texture, stale UV, and independent pixel CBV negative controls.
  • Updates the compatibility documentation.
  • Uses source-built fixtures.

AI-assisted.

@R0Y00
R0Y00 merged commit 20e4357 into R0Y00:main Nov 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants