Search Unity

Question Compute Shaders vs Custom Render Textures

Discussion in 'Shaders' started by DuvE, Apr 12, 2022.

  1. DuvE

    DuvE

    Joined:
    May 22, 2016
    Posts:
    169
    Hi,

    Just wanted to ask what are the differences between these two approaches. Because I can see only one, CRT works on all mobiles, but ComputeShaders only work on compute-capable mobiles.

    An example case is something like generating 1000s of particles, randomly move them with turbulence and create something like plexus effect. So in the second case CRT will be used as a buffer for all the data. And I will use a special shader to update it. Then, this data can be transferred to particle systems and etc. In the first case, Graphic Buffer will be used as data storage (I guess? Have very little experience with compute shaders and don't remember many things). And in this case, compute shader code will be used, of course.