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

improved shdr_data module #148

Open
2 tasks
ScanMountGoat opened this issue Apr 8, 2023 · 1 comment
Open
2 tasks

improved shdr_data module #148

ScanMountGoat opened this issue Apr 8, 2023 · 1 comment
Labels
enhancement New feature or request ssbh_data High level data access

Comments

@ScanMountGoat
Copy link
Member

ScanMountGoat commented Apr 8, 2023

There are a few goals for this module. This should cover the necessary functionality for https://github.com/ScanMountGoat/Smush-Material-Research. Perfectly rebuilding the shader binaries is not a goal at this time. The large amount of header and footer information makes it unrealistic to research all of it.

  • export nushdb metadata for uniforms, buffers, etc from the footer for use with decompiled shaders
  • extract the program binary code itself for each shader
@ScanMountGoat ScanMountGoat added enhancement New feature or request ssbh_data High level data access labels Apr 8, 2023
@ScanMountGoat
Copy link
Member Author

ScanMountGoat commented Apr 8, 2023

The easiest is probably to create functions that take a Shdr from ssbh_lib as input and return some data. The returned data could be higher level or lower level representations of the binary data depending on the use case. Creating conversion APIs similar to the other ssbh_data types won't work well due to all the missing fields. This module is a niche use case, so the API likely won't be very stable over time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ssbh_data High level data access
Projects
None yet
Development

No branches or pull requests

1 participant