Shaders: emit a merged ES+GS pair as a vertex and a geometry shader (#313) #381

Open
github-bot wants to merge 8 commits from github-bot/gh-381 into main AGit
Owner

@⁠Revens2 on GitHub · 2026-11-25 00:12 UTC · original
Revens2:fix/issue-313 → main · +2506 −25 · 16 files · 8 commits · open

Step 4 of #138, for #313. Stacked on #373 (#312), itself on #367 (#311) and #309: the diff here includes theirs until they merge; the commit of this step is the last one. Base is main because the stacked branches are not in this repository.

What is in it

  • translate_merged_gs now returns two host shaders (MergedShaders): a vertex shader and a geometry shader, instead of stopping at GS emit. New emit/gs.rs holds the plan and its notes.
  • ES half as a DXIL vertex shader: each record dword it writes to LDS is a channel of a synthetic TEXCOORD<row> register (32-bit integers, dword k = row k / 4, channel k % 4). The rewrite is of the machine code: ds_write_b32..b128 becomes the exp param<row> of the same size, s_barrier a s_nop, the s_setpc_b64 handover an s_endpgm.
  • GS half as a DXIL geometry shader (triangles in, triangle strip out, stream 0, one instance): reads of an input vertex's record are loadInput of that signature; its own LDS writes/reads go to a private array at the offset from the first record written; the k-th GS_EMIT copies record k to the output signature (storeOutput) and calls emitStream; GS_CUT is cutStream; the runtime-table scalar load reads 0. The array and maxvertexcount come from the emit count of the code.
  • merged::limits, handoff::own_accesses, an Overrides hook in emit_program_with and Shader.geometry carry this; Vs I/O raising also accepts the ES stage.
  • A geometry container alone is still refused (its input vertices and runtime table come from the ES half). victory translate keeps counting those on the geometry line.

Tested

  • Synthetic GCN programs only: the record signature, the ES half's rewritten code and outputs, the GS plan (emit numbering, record/array sizes, 15 stores / 2 reads for 3 emits, a signature that does not fit is refused), and a pair end to end: DXIL program kinds, GS inputs equal VS outputs register for register, GS outputs equal the container's signature, and the DXIL validator accepts both modules (present on this machine, Windows).
  • cargo build --workspace --locked, cargo test --workspace --locked --no-fail-fast -- --test-threads=4: all green (243 passed in victory-shader, 0 failed).

Not tested / assumed (none read from the stage data or checked on a title program)

  • An output record has 4 dwords per signature register: dword 4 * row + col is that channel of the output with that register, records back to back; the written range must be exactly one record per emit or the program is refused.
  • Emits are numbered in code order, so emits on alternative arms are refused; triangle strip topology and one instance; the ES vertex id is in v0.
  • The GS input convention (vertex offsets in the halves of v0/v1) is the ISA's for a merged stage, not checked.
  • Nothing is bound by the host yet (#314: pipeline with GS between VS and PS); not run in game. How many of the 195 failing programs this unblocks is non verifie.

AI use
Written with Claude Code (Claude Sonnet 5.5). The tests are synthetic programs; no title shaders or game files were read.

🤖 Generated with Claude Code

**@⁠Revens2** on GitHub · 2026-11-25 00:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/381) `Revens2:fix/issue-313` → `main` · +2506 −25 · 16 files · 8 commits · open Step 4 of #138, for #313. **Stacked on #373 (#312), itself on #367 (#311) and #309**: the diff here includes theirs until they merge; the commit of this step is the last one. Base is `main` because the stacked branches are not in this repository. **What is in it** - `translate_merged_gs` now returns two host shaders (`MergedShaders`): a vertex shader and a geometry shader, instead of stopping at `GS emit`. New `emit/gs.rs` holds the plan and its notes. - ES half as a DXIL vertex shader: each record dword it writes to LDS is a channel of a synthetic `TEXCOORD<row>` register (32-bit integers, dword `k` = row `k / 4`, channel `k % 4`). The rewrite is of the machine code: `ds_write_b32`..`b128` becomes the `exp param<row>` of the same size, `s_barrier` a `s_nop`, the `s_setpc_b64` handover an `s_endpgm`. - GS half as a DXIL geometry shader (triangles in, triangle strip out, stream 0, one instance): reads of an input vertex's record are `loadInput` of that signature; its own LDS writes/reads go to a private array at the offset from the first record written; the k-th `GS_EMIT` copies record k to the output signature (`storeOutput`) and calls `emitStream`; `GS_CUT` is `cutStream`; the runtime-table scalar load reads 0. The array and `maxvertexcount` come from the emit count of the code. - `merged::limits`, `handoff::own_accesses`, an `Overrides` hook in `emit_program_with` and `Shader.geometry` carry this; `Vs` I/O raising also accepts the ES stage. - A geometry container alone is still refused (its input vertices and runtime table come from the ES half). `victory translate` keeps counting those on the `geometry` line. **Tested** - Synthetic GCN programs only: the record signature, the ES half's rewritten code and outputs, the GS plan (emit numbering, record/array sizes, 15 stores / 2 reads for 3 emits, a signature that does not fit is refused), and a pair end to end: DXIL program kinds, GS inputs equal VS outputs register for register, GS outputs equal the container's signature, and **the DXIL validator accepts both modules** (present on this machine, Windows). - `cargo build --workspace --locked`, `cargo test --workspace --locked --no-fail-fast -- --test-threads=4`: all green (243 passed in victory-shader, 0 failed). **Not tested / assumed (none read from the stage data or checked on a title program)** - An output record has 4 dwords per signature register: dword `4 * row + col` is that channel of the output with that register, records back to back; the written range must be exactly one record per emit or the program is refused. - Emits are numbered in code order, so emits on alternative arms are refused; triangle strip topology and one instance; the ES vertex id is in v0. - The GS input convention (vertex offsets in the halves of v0/v1) is the ISA's for a merged stage, not checked. - Nothing is bound by the host yet (#314: pipeline with GS between VS and PS); not run in game. How many of the 195 failing programs this unblocks is `non verifie`. **AI use** Written with Claude Code (Claude Sonnet 5.5). The tests are synthetic programs; no title shaders or game files were read. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The 195 "an address in an SGPR that is no root parameter" failures are the
GS half of one merged ES+GS stage (#138). Step 1 of its support, without
emitting anything:

- StageIo::Gs and io::raise for a geometry program. User data 0 and 1 of
  the merged stage (s8, s9) are the console runtime's table pointer when the
  root layout puts nothing there; resource tracking traces a load through it
  to resource::RUNTIME_TABLE instead of failing. Other stages and other
  unbound SGPRs fail as before.
- merged::pair_es_gs pairs the ES program (vertex container) with the GS
  program (geometry container): same wave size, one meaning per user-data
  dword, merged root layout. emit::translate_merged_gs runs the pair as far
  as emission.
- emit refuses a geometry program with GS_EMIT ("GS emit"). `translate`
  counts those on their own "geometry" line, not among the failures.

Not done: DXIL geometry emission, the ES to GS handoff through LDS, the
output records, GS_EMIT/GS_CUT, the host pipeline. The runtime table's
contents and the GS stage data are not read.

Refs #138

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
pair_es_gs keeps both halves' ranges of one descriptor table pointer
instead of calling them a user-data conflict. The runtime table pointer
is only inferred through resource::track_merged, i.e. for the merged
layout of a pair (translate_merged_gs) or, in victory translate, as a
stated assumption for an unpaired geometry program: a geometry program
traced alone no longer takes user data 0 and 1 as free.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
StageIo::Es and StageIo::Gs now carry MergedIo (LDS bytes from the common
record). merged::limits counts the vertices a GS program emits along its
longest path from its s_sendmsg GS_EMIT / GS_CUT / GS_EMIT_CUT messages,
refusing a message in a loop. The runtime table pointer is also resolved
for the ES half, which shares the SGPRs. victory translate counts the GS
programs with a bounded vertex count.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Review fixes: a GS program with an indirect jump has no vertex bound, and
the user-data overlap tests saturate the container-supplied SGPR count.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
handoff finds the record the ES half writes to LDS (whole-dword writes at
one base, then s_barrier and the s_setpc_b64 handover) and the GS half's
reads of its input vertices (the halves of the offsets in v0 and v1). The
GS half may only read dwords the ES half writes. emit::merged_halves
pairs two containers, traces and raises the ES half and checks the
handoff; victory translate counts the ES programs on their own line.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Review fixes: an ES half must hand over on every reachable path (a
reachable s_endpgm loses the record), the barrier flag holds only when a
barrier precedes every handover, v_bfe_u32 offsets are read in five bits,
and victory translate reports an ES half whose record analysis fails.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The ES half becomes a DXIL vertex shader: each record dword written to
LDS is a channel of a synthetic TEXCOORD register (32-bit integers),
s_barrier a nop and the s_setpc_b64 handover an end. The GS half becomes
a geometry shader (triangles in, triangle strip out, stream 0): reads of
an input vertex record are loadInput, its own LDS writes go to a private
array, the k-th GS_EMIT copies record k to the output signature and
emits, GS_CUT cuts the strip, the runtime table load reads zero.

translate_merged_gs now returns both shaders. Tests use synthetic GCN
programs only; the DXIL validator accepts both modules.

Assumed, not verified on a title program: record dword 4*row+col is that
channel of the output register, emits are numbered in code order,
triangle strip topology, one instance, ES vertex id in v0.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Review fixes: s_sendmsghalt emits/cuts and half-precision outputs are
refused, the emitted output signature marks the components the emits store,
an input vertex offset must be scaled to bytes, a second runtime table field
is refused (the one read is taken as the output base), and the returned
vertex shader says it is a vertex shader.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:42:06 +00:00
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 00:44 UTC · original

Review findings handled in 1c4de71 (with tests on synthetic programs):

  • s_sendmsghalt: a halting GS_EMIT / GS_CUT is refused (a halting GS_EMIT or GS_CUT); the lowering handled s_sendmsg only, so it would have been dropped silently.
  • Output signature usage: the emits now mark each component they store, so the emitted OSG1 says they are written (checked on the read-write mask of every row).
  • Input offset multiplier: a vertex read is accepted only when its offset half is scaled to bytes (x4); other scales are refused.
  • Returned vertex shader kind: MergedShaders::vertex is now HwStage::Vs (the geometry one Gs).
  • Runtime table loads: not proven, narrowed. Every load from the table still reads as zero, taken to be the base of the output records; what the translator can check is that the program reads one field of the table only (a second field is refused: more than one field read from the runtime table). That the one field is the output base, and is used as nothing else, is an assumption on a title program that nothing here checks; it stays in the list of what is assumed.
  • Also refused: a half-precision geometry output (it was passed through as raw bits).

cargo test -p victory-shader --lib --locked: 251 passed, 0 failed.

**@⁠Revens2** on GitHub · 2026-11-25 00:44 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#issuecomment-7148834466) Review findings handled in 1c4de71 (with tests on synthetic programs): - **`s_sendmsghalt`**: a halting `GS_EMIT` / `GS_CUT` is refused (`a halting GS_EMIT or GS_CUT`); the lowering handled `s_sendmsg` only, so it would have been dropped silently. - **Output signature usage**: the emits now mark each component they store, so the emitted `OSG1` says they are written (checked on the read-write mask of every row). - **Input offset multiplier**: a vertex read is accepted only when its offset half is scaled to bytes (x4); other scales are refused. - **Returned vertex shader kind**: `MergedShaders::vertex` is now `HwStage::Vs` (the geometry one `Gs`). - **Runtime table loads**: not proven, narrowed. Every load from the table still reads as zero, taken to be the base of the output records; what the translator can check is that the program reads one field of the table only (a second field is refused: `more than one field read from the runtime table`). That the one field is the output base, and is used as nothing else, is an assumption on a title program that nothing here checks; it stays in the list of what is assumed. - Also refused: a half-precision geometry output (it was passed through as raw bits). `cargo test -p victory-shader --lib --locked`: 251 passed, 0 failed.
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 07:10 UTC · original

Rebased on main (a26859f), stacked on #373; head now dc33623. Main's new valu test builds Parts without the gs field this PR adds, so gs: None is added in that test (folded into the last commit). cargo build --workspace --locked ok; cargo test -p victory-shader -p victory-gpu --locked: 137 + 256 passed, 0 failed. Ready for another review pass.

**@⁠Revens2** on GitHub · 2026-11-25 07:10 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#issuecomment-7155564004) Rebased on main (a26859f), stacked on #373; head now dc33623. Main's new valu test builds `Parts` without the `gs` field this PR adds, so `gs: None` is added in that test (folded into the last commit). `cargo build --workspace --locked` ok; `cargo test -p victory-shader -p victory-gpu --locked`: 137 + 256 passed, 0 failed. Ready for another review pass.
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 09:35 UTC · original

@⁠codex review (head rebased on origin/main; earlier findings were addressed before the rebase)

**@⁠Revens2** on GitHub · 2026-11-25 09:35 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#issuecomment-7158534653) @⁠codex review (head rebased on origin/main; earlier findings were addressed before the rebase)
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 09:35 UTC · original

Codex Review: Something went wrong. Try again later by commenting “@⁠codex review”.

Setup repeatedly failed. Update the setup script or commit, then try again later.
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 09:35 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#issuecomment-7158540662) Codex Review: Something went wrong. Try again later by commenting “@⁠codex review”. ``` Setup repeatedly failed. Update the setup script or commit, then try again later. ``` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:12 UTC · original · edited 2026-11-25 09:35 UTC

Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T09:35:39.482795Z
We couldn’t complete this review. Comment @codex review to try again.
dc33623 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 00:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#issuecomment-7148261965) · edited 2026-11-25 09:35 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"dc3362390e92529b65534e8f41a72e391ce108e8","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-25T09:35:39.482795Z">2026-11-25T09:35:39.482795Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `dc33623` | Manual request | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
@ -4819,2 +4942,4 @@
Ok(())
}
Fields::Sopp { .. } if name == "s_sendmsg" && self.x.gs.is_some() => {
self.gs_message(inst, (b, i))
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:21 UTC · original

P2 Badge Dispatch s_sendmsghalt geometry messages

merged::message_of and GsPlan recognize both s_sendmsg and s_sendmsghalt, so a halt-form GS_EMIT or GS_CUT is counted and assigned in the plan. This dispatch only calls gs_message for s_sendmsg; the halt form falls through as a no-op, leaving the returned shader with a reserved vertex or cut that it never emits. Handle both opcodes, including their halt behavior, or refuse the halt form.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 00:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#discussion_r4688458045) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Dispatch `s_sendmsghalt` geometry messages** `merged::message_of` and `GsPlan` recognize both `s_sendmsg` and `s_sendmsghalt`, so a halt-form `GS_EMIT` or `GS_CUT` is counted and assigned in the plan. This dispatch only calls `gs_message` for `s_sendmsg`; the halt form falls through as a no-op, leaving the returned shader with a reserved vertex or cut that it never emits. Handle both opcodes, including their halt behavior, or refuse the halt form. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -4359,0 +4461,4 @@
("storeOutput.i32", bits)
};
let args = [self.s.m.i32(id as u32), self.s.m.i32(0), self.s.m.i8(k), value];
self.s.op(self.cur, name, Attr::NoUnwind, void, 5, &args);
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:21 UTC · original

P2 Badge Mark geometry output components as written

When the GS writes outputs through this GS_EMIT path, the elements parsed from OSG1 have usage = 0, and these storeOutput calls never update the corresponding usage bits. Unlike the normal output lowering path, the resulting geometry signature is serialized as if none of those components were used, so it does not describe the values the shader stores and can mislead downstream stage linkage. Mark each component as it is stored.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 00:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#discussion_r4688458052) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Mark geometry output components as written** When the GS writes outputs through this `GS_EMIT` path, the elements parsed from `OSG1` have `usage = 0`, and these `storeOutput` calls never update the corresponding usage bits. Unlike the normal output lowering path, the resulting geometry signature is serialized as if none of those components were used, so it does not describe the values the shader stores and can mislead downstream stage linkage. Mark each component as it is stored. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -5462,0 +5594,4 @@
};
for k in 0..dwords {
let zero = self.s.m.i32(0);
self.write(inst, Reg::S(code + k), zero, None);
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:21 UTC · original

P2 Badge Preserve non-output runtime-table loads

Every scalar load traced to RUNTIME_TABLE reaches this branch without checking its address offset, and every result dword is replaced with zero. Rewriting the GS output array makes its output-base load irrelevant, but a GS that reads another runtime-table field will now use zero in its calculations or control flow and produce different geometry. Restrict this substitution to the identified output-base load or preserve other table reads.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 00:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#discussion_r4688458057) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Preserve non-output runtime-table loads** Every scalar load traced to `RUNTIME_TABLE` reaches this branch without checking its address offset, and every result dword is replaced with zero. Rewriting the GS output array makes its output-base load irrelevant, but a GS that reads another runtime-table field will now use zero in its calculations or control flow and produce different geometry. Restrict this substitution to the identified output-base load or preserve other table reads. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -0,0 +364,4 @@
let Some(Operand::Vector { reg: d, .. }) = *dst else {
return Err(unsupported("an LDS read without a destination"));
};
let byte = lin.add.wrapping_add(u32::from(*offset0) | u32::from(*offset1) << 8);
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:21 UTC · original

P2 Badge Account for the input-offset multiplier

Eval preserves the multiplier for an input-vertex offset, but this mapping computes the record dword using only the additive part and the DS instruction offset. A read using a scale other than the expected byte scale is therefore accepted as the same vertex/dword, then replaced by loadInput for a different component. Validate the multiplier before constructing the VertexRead, or account for it when resolving the record address.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 00:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#discussion_r4688458065) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Account for the input-offset multiplier** `Eval` preserves the multiplier for an input-vertex offset, but this mapping computes the record dword using only the additive part and the DS instruction offset. A read using a scale other than the expected byte scale is therefore accepted as the same vertex/dword, then replaced by `loadInput` for a different component. Validate the multiplier before constructing the `VertexRead`, or account for it when resolving the record address. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -0,0 +166,4 @@
outputs,
},
code,
..merged.es.clone()
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:21 UTC · original

P2 Badge Return the ES shader with the vertex stage kind

..merged.es.clone() preserves stage = HwStage::Es; emit_program_with copies that into HostShader.stage even though the emitted DXIL is a vertex shader. Consumers that dispatch on this field, as the existing translator host check does, will treat the returned vertex shader as a non-vertex stage. Keep the ES stage for machine-code and root-data mapping, but set the returned host shader's stage to Vs.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 00:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/381#discussion_r4688458073) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Return the ES shader with the vertex stage kind** `..merged.es.clone()` preserves `stage = HwStage::Es`; `emit_program_with` copies that into `HostShader.stage` even though the emitted DXIL is a vertex shader. Consumers that dispatch on this field, as the existing translator host check does, will treat the returned `vertex` shader as a non-vertex stage. Keep the ES stage for machine-code and root-data mapping, but set the returned host shader's stage to `Vs`. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
This pull request has changes conflicting with the target branch.
  • crates/victory-shader/src/emit/lower.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/381/head:github-bot/gh-381'
git switch 'github-bot/gh-381'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-381'
git switch 'github-bot/gh-381'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-381'
git switch 'github-bot/gh-381'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-381'
git switch 'main'
git merge --squash 'github-bot/gh-381'
git switch 'main'
git merge --ff-only 'github-bot/gh-381'
git switch 'main'
git merge 'github-bot/gh-381'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.