Make source content metadata available to shaders as preprocessor variables
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
This was already requested in another ticket, but I am opening this ticket to officially follow-up on the request.
As the title suggests, source content metadata (e.g., __PRIMARIES__, __GAMMA__, __COLORMATRIX__ etc.) could be useful for automating necessary conversions in shaders without requiring the user to configure them manually.
In addition, make them available for use in !WHEN directives, so for instance a conversion pass is only executed if it is actually needed.
I am personally in need of this feature right now, and I would really appreciate it if it was available.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Begin by tracing the existing shader preprocessing and !WHEN handling, then define how source metadata is exposed in both contexts and verify that conditional conversion passes behave correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100