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

Xenoblade X shader database #25

Closed
6 tasks done
ScanMountGoat opened this issue Apr 28, 2024 · 2 comments
Closed
6 tasks done

Xenoblade X shader database #25

ScanMountGoat opened this issue Apr 28, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ScanMountGoat
Copy link
Owner

ScanMountGoat commented Apr 28, 2024

This requires finding a shader decompiler that's easy to build and use as an external tool similar to Ryujinx.ShaderTools. xc3_shader will need additional tests to make sure that the GLSL syntax works with the existing analysis code.

  • parse legacy shader metadata format
  • add xc3_shader subcommand to disassemble all camdo shaders
  • annotate database with resource names for better readability
  • parse shader assembly
  • convert shader assembly to graph
  • add xc3_shader subcommand to create xcx.json from disassembled outputs
@ScanMountGoat ScanMountGoat added the enhancement New feature or request label Apr 28, 2024
@ScanMountGoat
Copy link
Owner Author

This tool is precompiled and should work in theory. https://github.com/decaf-emu/decaf-emu/blob/master/tools/gfd-tool/gfdtool.cpp

@ScanMountGoat ScanMountGoat self-assigned this Jun 22, 2024
@ScanMountGoat
Copy link
Owner Author

The assembly parser can use pest with a modified version of the original grammar.
https://pest.rs/
https://github.com/decaf-emu/decaf-emu/blob/e6c528a20a41c34e0f9eb91dd3da40f119db2dee/tools/latte-assembler/resources/grammar.txt

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

No branches or pull requests

1 participant