Add native geometry shader support #126

Closed
github-bot wants to merge 0 commits from github-bot/gh-126 into main AGit
Owner

@⁠nativ69 on GitHub · 2026-11-30 16:04 UTC · original
nativ69:feat/native-geometry-shaders → main · +3149 −751 · 19 files · 47 commits · closed without merging

Summary

  • Add native geometry shader translation and VS–GS–PS pipeline integration, including stage-specific resource bindings.
  • Support all 195 previously unsupported geometry shader inputs.
  • Preserve mixed-stage container compatibility and FoxHound's existing generated rectangle geometry shaders.

Validation

  • All 195 geometry shaders successfully translated, passed DXIL validation, and created D3D12 pipelines.
  • VS–GS–PS integration tests passed with stage-specific constants and SRVs.
  • All 25,782 non-GS shader and binding fingerprints remained unchanged.
  • All 25,378 successful non-GS pipeline outcomes matched the baseline.
  • Mixed-stage, rectangle GS and pipeline key regression tests passed.
  • Release build and targeted Clippy checks passed.

Limitations

In-game rendering has not been validated.
Existing non-GS translation, DXIL validation and compute pipeline failures remain unchanged.

Reference

Adapted from edsuuu/VI-BR-PORT#23, preserving FoxHound-specific implementations.

**@⁠nativ69** on GitHub · 2026-11-30 16:04 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/126) `nativ69:feat/native-geometry-shaders` → `main` · +3149 −751 · 19 files · 47 commits · closed without merging ## Summary - Add native geometry shader translation and VS–GS–PS pipeline integration, including stage-specific resource bindings. - Support all 195 previously unsupported geometry shader inputs. - Preserve mixed-stage container compatibility and FoxHound's existing generated rectangle geometry shaders. ## Validation - All 195 geometry shaders successfully translated, passed DXIL validation, and created D3D12 pipelines. - VS–GS–PS integration tests passed with stage-specific constants and SRVs. - All 25,782 non-GS shader and binding fingerprints remained unchanged. - All 25,378 successful non-GS pipeline outcomes matched the baseline. - Mixed-stage, rectangle GS and pipeline key regression tests passed. - Release build and targeted Clippy checks passed. ## Limitations In-game rendering has not been validated. Existing non-GS translation, DXIL validation and compute pipeline failures remain unchanged. ## Reference Adapted from edsuuu/VI-BR-PORT#23, preserving FoxHound-specific implementations.
Backported from VI-BR PR #23.
Original-Commit: 535de92e666c2853c8617a72db3d44f3dda05e39

Co-authored-by: OpenAI Codex <[email protected]>
Co-authored-by: Copilot <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 16:07:54 +00:00
github-bot closed this pull request 2026-12-01 01:10:26 +00:00
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-01 01:34 UTC · original

Thanks; 195 more geometry-shader inputs translating is worth having. On hold until:

  1. it is rebased onto the current main (see below; conflicts are to be expected in emit/lower.rs, where this changes about 1,300 lines);
  2. rendering in the game is checked, which the description says has not been done: at least one place where these geometry shaders draw, before and after;
  3. if possible, the mechanical moves in lower.rs are separated from the behaviour changes, so the review can read the latter.

Every translator change makes all users translate their shaders again once, so we collect translator PRs into one release; the next one is being tested now, and this would be for the one after. In code and comments, please name title shaders by their 16-digit hash, not by name.

Main's history was rewritten on 2026-12-01 (text-only changes; every commit hash changed), so a follow-up has to start from the current main, or this branch be rebased onto it.

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 01:34 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/126#issuecomment-7297656336) Thanks; 195 more geometry-shader inputs translating is worth having. On hold until: 1. it is rebased onto the current main (see below; conflicts are to be expected in `emit/lower.rs`, where this changes about 1,300 lines); 2. rendering in the game is checked, which the description says has not been done: at least one place where these geometry shaders draw, before and after; 3. if possible, the mechanical moves in `lower.rs` are separated from the behaviour changes, so the review can read the latter. Every translator change makes all users translate their shaders again once, so we collect translator PRs into one release; the next one is being tested now, and this would be for the one after. In code and comments, please name title shaders by their 16-digit hash, not by name. Main's history was rewritten on 2026-12-01 (text-only changes; every commit hash changed), so a follow-up has to start from the current main, or this branch be rebased onto it.
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-01 01:36 UTC · original

One more note: GitHub closed this pull request by itself when main's history was rewritten, and it cannot be reopened. That is not a rejection. The points above still apply; please open a new pull request from the current main when you have them.

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 01:36 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/126#issuecomment-7297684744) One more note: GitHub closed this pull request by itself when main's history was rewritten, and it cannot be reopened. That is not a rejection. The points above still apply; please open a new pull request from the current main when you have them.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.