qdwang
V2EX  ›  问与答

关于 WebGL 的问题

  •  
  •   qdwang · Oct 27, 2022 · 522 views
    This topic created in 1297 days ago, the information mentioned may be changed or developed.

    有个关于 WebGL 的问题,想请教一下大家。

    我有一张 16bit 的大图片,用 WebGL 渲染出来了,并且在 frag shader 上加了一些效果。

    问题是,如何快速的获取渲染出来的数据?readPixels速度太慢了,可能是因为里面可能做了不必要的转换。

    有没有不做转换,直接获取渲染后数据的方法呢?(就是从 GPU 内存不做处理直接 dump 到 CPU 内存的方法)

    谢谢~

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2782 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:32 · PVG 19:32 · LAX 04:32 · JFK 07:32
    ♥ Do have faith in what you're doing.