shader, gpu: type pixel outputs by integer render target formats #348
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!348
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/346/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?
@AnastasisKon on GitHub · 2026-11-27 13:27 UTC · original
AnastasisKon:vibe/target-comps-8b06a2→main· +174 −29 · 22 files · 1 commits · closed without mergingThe converter checks a pixel output's type against its color attachment, so a pipeline rendering to an R32Uint target refuses a float4 output and its draws drop (179 refused pipelines of one run, tester report #313; 179 and 135 in #280 and #265). The console's exports are raw dwords either way, so Options::target_comps (per SV_Target index: 5 u32, 4 i32) now retypes the signature elements in Lower::new, and the stores to them emit as storeOutput.i32. Described pipelines whose color formats are integer ones get their pixel shader translated with those comps (Shader::native_targets_shader, glue::make_host_pipe; the disk cache keys on the options as on any other variant), falling back to the plain translation - refused at conversion as before - when the container cannot be read back. Test: an_integer_render_target_types_its_output_u32 (victory-shader 356 pass). Documented in docs/native-host.md.
What this changes
How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victorycargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsChecklist
VICTORY_*variable and documentedPull request closed