Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

compute shader #include failing to compile

Discussion in 'Shaders' started by gaiastellar, Nov 14, 2020.

  1. gaiastellar

    gaiastellar

    Joined:
    Nov 8, 2013
    Posts:
    57
    hi,
    I have a compute shader with an include ...
    #include "Assets/Resources/FastNoiseLite"

    its the right location. the file name is correct, and a few days ago it was working... i cant see anything wrong with this but is refusing to compile that...

    i have recently installed HLSL tools for visual studio.... is that messing everything up?

    does anyone else have this problem, and is there a good way to work with compute shaders in visual studio where HLSL syntax gets highlighted etc...

    thanks all,