开发者

Implementing your own depth buffer with GLSL

开发者 https://www.devze.com 2022-12-23 22:36 出处:网络
I need a datastructure of the same size as the normal depth bu开发者_如何转开发ffer and I need to be able to read from and write to it in a shader. Is this possible, and what does this datastructure l

I need a datastructure of the same size as the normal depth bu开发者_如何转开发ffer and I need to be able to read from and write to it in a shader. Is this possible, and what does this datastructure look like?


No, a GLSL shader cannot read and write the same buffer.

In a nutshell, parallelising the shader work would not be simple otherwise.

0

精彩评论

暂无评论...
验证码 换一张
取 消