mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #514] PS-INPUT-SIGNATURE: select pixel shaders by source container signature #560
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#560
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/514
Author: @bobcatchris
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:pixel-input-signature📝 Commits (2)
bdc06d4d3d12: select shared-hash vertex shaders by container signature51444c8Select pixel shader translations by the source container input signature📊 Changes
6 files changed (+138 additions, -7 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+12 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+4 -3)📝
runtime/src/shader_library.h(+52 -3)📝
runtime/test/shader_library_test.cpp(+64 -0)📝
tests/test_shader_meta.py(+5 -0)📝
tools/shader_meta.py(+1 -1)📄 Description
Claimed in the coordination issue as: PS-INPUT-SIGNATURE
Depends on: #505
What and why
Two containers can hold the same pixel program while declaring
SV_Positiondifferently: one uses depth, the other reciprocal W. The first entry in the shader index can then bind a translation whose position convention does not match the source container, turning a red draw black or the reverse.This selects pixel shader translations by the source container's input signature. It follows #505, which introduces the shared signature-aware candidate selection used here.
Carried from the source patch:
github.com/Sigtryggur-Mani-Gudmundsson/graphics-runtime-patches@33ab48d3ea/README.md (pixel-shaders-with-the-same-program-and-different-position-inputs)No game data, keys, or decryption are included.
Tested
shader_library_testwith the full two-commit stack: OKpython -I tests/test_shader_meta.py— OKpython -I tests/test_docs_links.py— OKpython -I tests/test_docs_cli_flags.py— OKpython -I tests/test_ci_registration.py— OKpython -m compileall -q tools tests— OKgit diff --checkcleanThe source report measured the two cases on an RTX 4070 Ti: 4096 black pixels with the original lookup and 4096 red pixels after the fix for the reciprocal-W case, and the reverse for the depth case. I did not repeat that GPU measurement locally.
GPUs tested: n/a locally; source report used NVIDIA GeForce RTX 4070 Ti
AI-assisted: yes
Checklist
mainplus the stated dependency and merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.