Currently, NVidia Parallel NSight 2.x is overriding file associations of .fx, .hlsl, .glsl and default them to a basic c++ syntax highlighting, while removing previous NShader configuration.

To remove NSight overriding, you just have to edit the file C:\Program Files (x86)\NVIDIA Parallel Nsight 2.x\Common\Nvda.Vsip.Net.dll.pkgdef and remove the following lines (should start at line 79):

[$RootKey$\Languages\File Extensions\.fx]
@="{b2f072b0-abc1-11d0-9d62-00c04fd9dfd9}"
[$RootKey$\Languages\File Extensions\.fxh]
@="{b2f072b0-abc1-11d0-9d62-00c04fd9dfd9}"
[$RootKey$\Languages\File Extensions\.glsl]
@="{b2f072b0-abc1-11d0-9d62-00c04fd9dfd9}"
[$RootKey$\Languages\File Extensions\.hlsl]
@="{b2f072b0-abc1-11d0-9d62-00c04fd9dfd9}"

This will remove NSight highlighting in favor of NShader.

Last edited Dec 5, 2011 at 3:45 AM by alexandre_mutel, version 4

Comments

jon_hogins Jan 28, 2012 at 5:37 PM 
Unfortunately, this will prevent shader debugging in NSight