V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
qdwang
V2EX  ›  问与答

关于 WebGL 的问题

  •  
  •   qdwang · Oct 27, 2022 · 493 views
    This topic created in 1283 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   ·   2507 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.