Skip to content

How annotations/bindings are determined #34

Discussion options

You must be logged in to vote

The bindings for uniforms, input/output attributes, textures, and buffers have been applied to the recently uploaded annotated shader dump. For anyone curious as to how the bindings work, please consult the annotation code in smush_materials. The shdr_data module in ssbh_data was also updated recently with new information.

There are some differences between the shaders generated by Ryujinx at runtime and those generated with Ryujinx.ShaderTools that was causing the confusion. I don't have a way to test every single shader, but the new logic is straightforward and matches up with with manually mapping values in Ryujinx and looking at decompiled and dissassembled code.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ScanMountGoat
Comment options

Answer selected by ScanMountGoat
Comment options

You must be logged in to vote
2 replies
@ScanMountGoat
Comment options

@Trainmaster9977
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants