Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colorsign work, not for merge #2434

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft

Conversation

medievil1
Copy link
Contributor

this is for study and example... code is NOT clean and tidy...lol
does build and colorsign seems to work....
contains a mishmash of stuff I cobbled together after losing previous work do to HDD failure

PatrickvL and others added 16 commits October 2, 2022 01:38
…LORKEYOP, COLORKEYCOLOR (just like ALPHAKILL) in HLSL (both Fixed Function and regular template-based converted shaders).

For this, a conversion function was added for L6U5V5 texture format (again based on research medievil did : thanks!).
Also added tooling to the conversion functions, to make the code (somewhat) more readable and reduce the chance for errors.
…ource registration function (and only use GetDesc if the caller doesn't have access to those variables).

This results in seemingly correct values in g_HostTextureFormats[], but this hits the next hurdle : XboxColorSign isn't always set when it should be, resulting in unintentional signed_to_unsigned mapping for signed host formats like D3DFMT_L6V5U5 (if natively supported).

Another area that still needs improvement, is texture component swizzling (we can determine the requirements from kelvin_color_format_map).
…ess checks inter-INdependent, and apply a fix that helps the BumpMap samples (as discovered by medievil)
Instead, load it from file, just like our FixedFunctionPixelShader
(Note, that this CxbxPixelShaderTemplate.hlsl is already installed into the correct hlsl resource folder.)
added to XBconvert
somehow was disabled here already in master
// TODO : Better check pHostResource class type
@github-actions github-actions bot added HLE High Level Emulation graphics GPU and/or game graphics related user interface GUI related cmake cmake labels Sep 24, 2023
@RadWolfie
Copy link
Member

Hi @medievil1, would this pull request better off mark as draft than ready for review/merge status?

@medievil1
Copy link
Contributor Author

Hi @medievil1, would this pull request better off mark as draft than ready for review/merge status?

yes, just did not see the option

@medievil1 medievil1 marked this pull request as draft September 25, 2023 08:48
@medievil1 medievil1 marked this pull request as draft September 25, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake cmake graphics GPU and/or game graphics related HLE High Level Emulation user interface GUI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants