Search Unity

Question Is it at all possible to use a StructuredBuffer and SV_InstanceID in ShaderGraph?`

Discussion in 'Shader Graph' started by PraetorBlue, Mar 25, 2021.

  1. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    I'm trying to explore if it's possible to upgrade my current project to HDRP. I rely heavily on a compute shader populating a StructuredBuffer and reading that buffer in a vertex shader to draw some incredibly important elements of my game. However, as far as I can tell, ShaderGraph doesn't support StructuredBuffers, and my attempts to make even a simple shader by hand in HDRP have been a complete disaster.

    Is there any way at all to get at a StructuredBuffer and SV_InstanceID in ShaderGraph, even a really hacky way?
     
  2. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    969
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909