Repository navigation
Move the renderer into its own crate - #26
Merged
Merged
Conversation
shiftpaper-render holds the renderer, the depth map code and the shader, with no Wayland code, so other front ends can draw with it. The caller now creates the wgpu instance and adapter and picks the output format, which lets each platform choose the backends and formats it offers. Depth maps go to the GPU as R16Float instead of R16Unorm, which is optional on phones, and the device asks for downlevel limits, so the renderer also runs on GLES. CI checks the crate builds for Android.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
shiftpaper-rendernow holds the renderer, the depth map code and the shader, with no Wayland code, so other front ends can use it.Bgra8UnormSrgbR16Floatinstead ofR16Unorm, and the device asks for downlevel limits, so the renderer also runs on GLES and on GPUs without 16-bit normalised texturesgit mv, so their history carries overaarch64-linux-android. Both PKGBUILDs test it tooFormat, clippy and tests pass locally. The daemon hasn't been run on the desktop with
R16Floatdepth yet.