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

shader_recompiler: Shader param fixups #1199

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

squidbus
Copy link
Contributor

@squidbus squidbus commented Oct 2, 2024

  • Use GetAttributeInfo to construct attribute infos more to simplify correct construction.
  • Allow passing num_components to GetAttributeInfo. Currently still always 4 but more correct this way.
  • Add asserts to make sure input parameters array is not overrun.
  • Fix missing boolean parameter and incorrect pointer type in one of the input attribute declarations.
  • Use existing constants for params and fragment outputs array sizes.
  • Misc style cleanup.

@squidbus
Copy link
Contributor Author

squidbus commented Oct 2, 2024

Fixes regression in CUSA05133

@georgemoralis georgemoralis merged commit 7209b7d into shadps4-emu:main Oct 3, 2024
10 checks passed
@squidbus squidbus deleted the params-fixup branch October 15, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants