Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: Pryzmera – Fast PDF viewer fully rendering on the GPU (opens external site)

170 points by RedMindZ 2 days ago pryzmera.com 69 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (2)

  1. This looks great! Any plans to make the renderer available as a package for web apps?
    Replies (1)
    1. Thank you!

      I never thought about that. Rendering uses the 'wgpu' crate under the hood, so in theory it should be simple to run it in a web app with WebGPU; At the same time, I am not sure what would be the value of the renderer without the tessellation pipeline that populates it, because other than transparency, rendering is mostly very simple; for example, rendering colored triangles is done with a shader that is 10 lines long, and 8 of those lines aren't even executable code. And on the technical side, the renderer's code is rather entangled with the application, so pulling it out could get difficult.

      Do you have a use in mind for Pryzmera's renderer? If you do, let me know, I might be able to guide you to a solution that would better fit your needs.