startup: add 32-bit integer and float render-target variants for translated pixel stages #2148
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2148
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2148/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@tedin7 on GitHub · 2026-11-25 01:43 UTC · original
tedin7:x2w-1999f-rtv-int-float-variants→main· +87 −15 · 8 files · 2 commits · merged 2026-11-25 07:45 UTCPart of #1999
What this unblocks: translated pixel stages can now write R32G32B32A32, R32G32 and R32 integer targets and R32G32/R32 float targets (item F), not only R32 integer and RGBA32 float.
Changes:
tools/startup/gfx2hlsl.py:mrt_kindaccepts UINT/SINT formats 3, 17, 42 and 4, 18, 43 (all channels 32 bits wide, so export words are the stored words). 8/16-bit integer formats stay refused (unverified UINT/SINT RTV format <n>).tests/startup_stream_setup.*,startup_stream_draw.cpp,startup_stream_consumer.cpp: onestream_mrt_formattable (typeless resource, bytes per pixel) replaces the R32-only special cases.tests/startup_mrt_check.py(existingstartup_mrt_{fxc,dxc}_{warp,hardware}): exact readback of every stored word for each new integer format (second UNORM target kept), exact float words with NaN payload and negative denormal for R32G32_FLOAT / R32_FLOAT, plus refusal controls for eight narrow integer formats (no manifest written) and the existing stale-signedness control.tests/startup_gfx2hlsl_export_mask_check.py: signature and refusal checks without a device.docs/startup-runtime.mdupdated.Verification:
python3 -B tests/startup_gfx2hlsl_export_mask_check.py-> 0 failed;python3 -B tests/docs_links_check.py-> pass;python3 -B tests/startup_gfx2hlsl_refusals_check.py-> pass.ctest --preset release --no-tests=error -R "^startup_mrt_"is still to be executed, and the C++ test changes are uncompiled. This stays Draft until it passes.AI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 02:33 UTC · original · edited 2026-11-25 02:37 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
a298821ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.