Search Unity

Question Shader Graph + Compute Shader

Discussion in 'Shader Graph' started by Dig-Doug, Feb 5, 2020.

  1. Dig-Doug

    Dig-Doug

    Joined:
    Aug 30, 2019
    Posts:
    4
    Hi, I have a compute shader that generates a mesh (vertices, uvs, etc.). Currently, I'm copying the data back from the GPU and then creating Mesh objects from it to render the output. The Mesh objects use a material made in ShaderGraph. However, I'd like to avoid copying the data from GPU and render it directly using a ShaderGraph shader.

    Is it possible to do this today? I've seen some old posts asking about similar things, but it's unclear to me if it's a feature that's in the works.

    Thanks!
     
    Yany likes this.
  2. Yany

    Yany

    Joined:
    May 24, 2013
    Posts:
    96
    @Dig-Doug

    Wow, old question and no answer. :( I'm also interested in this topic. Actually, I have exactly the same question. Have you found an answer yet?
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,042
    I don't think this is currently possible, and doubt it will work anytime soon. Shader graph won't replace text based shaders
     
    Yany likes this.