#The hacky way of getting VS to provide syntax highlighting for Unity's compute shaders.
-
Turn off Visual Studio
-
In
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\VC
As administrator, remove the read-only flag on the file VC_Pkg_Core_Registration.pkgdef
, and edit it in a evelated text editor.
- Search for .cginc, and for each cginc entry in the file, add a similar entry for .compute. Like this: