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

GPU: Hook Gods Eater Burst avatar read #16184

Merged
merged 4 commits into from
Oct 9, 2022

Conversation

unknownbrackets
Copy link
Collaborator

When you start a new game of Gods Eater Burst, it draws your customized character, and makes a screenshot. This character shows on the loading screen, on the right side.

This has up to now only worked in the software renderer. This hooks the function so we know to download the color buffer and depth buffer (yes) it requires. It uses depth to "stencil out" and set the alpha in the image it saves (although... it saves as a JPEG so I didn't check where the alpha goes... it does 5551 in this func. But it definitely needs it, or it's transparent and not shown when loading.)

This uses the depth download from #11676 to make that work. Note that the character's colors look a bit funny without #16179.

Currently only works in GLES - the depth download just gets zeros elsewhere, so it doesn't work. Should work on mobile GLES, though.

-[Unknown]

Right now, only with an explicit flag (not yet used.)
Currently not working since depth comes back as 0.
Currently, only used by one hook.
@unknownbrackets unknownbrackets added this to the v1.14.0 milestone Oct 9, 2022
@hrydgard
Copy link
Owner

hrydgard commented Oct 9, 2022

I have depth readback functionality hooked up for Vulkan in an old branch for the lens flare stuff, could try to get that part of it in later.

@hrydgard
Copy link
Owner

hrydgard commented Oct 9, 2022

Another thing, we should probably unify the naming of GPU readbacks a bit. "Pack" came from some OpenGL thingy, then we have "Download" and "Readback".

Download feels a bit networky, maybe we should unify on Readback?

@hrydgard hrydgard merged commit 28bc454 into hrydgard:master Oct 9, 2022
@unknownbrackets
Copy link
Collaborator Author

Yeah, that's fair. I think Readback is most unambiguous.

-[Unknown]

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