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

Depth readback with built-in stretchblit #16905

Merged
merged 4 commits into from
Feb 4, 2023
Merged

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Feb 3, 2023

This:

  • Moves the shader-based depth convert/readback from DepthBufferGLES.cpp to DepthBufferCommon.cpp
  • Makes it compatible with three of the four backends, all except D3D9 (not sure why that one doesn't work, if it did we could remove some code)
  • Adds the ability to scale the image while doing the conversion. This makes it more usable and compatible than other solutions I've found, for things related to GPU readback ideas and plans #16900 .

The new stretch capability is not actually used yet, that's for upcoming PRs.

@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Feb 3, 2023
@hrydgard hrydgard added this to the v1.15.0 milestone Feb 3, 2023
@hrydgard hrydgard added the Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. label Feb 3, 2023
@hrydgard hrydgard merged commit 26b26a6 into master Feb 4, 2023
@hrydgard hrydgard deleted the readback-with-stretchblit branch February 4, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. GE emulation Backend-independent GPU issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant