qdwang
V2EX  ›  问与答

关于 WebGL 的问题

  •  
  •   qdwang · Oct 27, 2022 · 526 views
    This topic created in 1300 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   ·   5746 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 06:18 · PVG 14:18 · LAX 23:18 · JFK 02:18
    ♥ Do have faith in what you're doing.