Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Code in shaders greyed out incorrectly
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

daniwrig
New Member

2 Posts

Posted - Feb 13 2026 :  3:07:32 PM  Show Profile  Reply with Quote
Hi, I'm working on shaders in Unreal Engine. These files have .usf or .ush extensions. When Visual Assist has 'Enable support for shader files' enabled, all the lines of code inside #if statements are greyed out, making it very difficult to understand, even though these conditions can't be known by Visual Assist.

eg

#if LUMEN_HARDWARE_RAYTRACING || LUMEN_HARDWARE_INLINE_RAYTRACING

ALL CODE HERE IS GREYED OUT, EVEN THOUGH VAX DOESN'T KNOW THE VALUE OF LUMEN_HARDWARE_RAYTRACING

#endif


If I disable 'Enable support for shader files', then the greying out is fixed.

VA_X64.dll file version 10.9.2602.0 built 2026.02.05
DevEnv.exe version 17.14.36930.0 Professional
msenv.dll version 17.0.36915.8
Comctl32.dll version 6.10.26100.7824
Windows 11 11.0 24H2 Build 26100
64 processors (x86-64)
Language info: 1252, 0x409

feline
Whole Tomato Software

United Kingdom
19317 Posts

Posted - Feb 16 2026 :  11:51:22 AM  Show Profile  Reply with Quote
This is coming from the IDE, not from VA. It does not happen in VS2019, with the same version of VA, and if you disable VA, this code is still shown as greyed out.

So far though I am not seeing an option to control this behaviour in VS2022. There is the setting:

IDE Tools menu -> Options -> Text Editor -> C/C++ -> View -> Disable Inactive Code Opacity = True / False

But this isn't having any effect. No surprise really, since its a language specific setting.

You might have some fun playing with the "Text Editor -> HLSL" settings, on the theory these apply to these files as well.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000