GLSL icon indicating copy to clipboard operation
GLSL copied to clipboard

Incorrect highlighting for push constants

Open JesperLykke opened this issue 3 years ago • 6 comments

Installed product versions

  • Visual Studio: [2019 Enterprise]
  • This extension: [0.11.160] (Downloaded from VS own marketplace.

Description

I simply get a red squiggly line below my push constant - which compiles and works perfectly well.

image

JesperLykke avatar Sep 30 '22 08:09 JesperLykke

Do you compile shader via external compiler? Do you pass -V argument to the external compiler?

helviett avatar Oct 06 '22 06:10 helviett

Hm.... I compile the shaders to Spir-V simply using the "glslc.exe" from the Vulkan SDK. I do not pass any special arguments. In either case, what should that have do with the syntax highlighting?

JesperLykke avatar Oct 06 '22 06:10 JesperLykke

The syntax highlighting ask the compiler set in the options for an error list and produces the squiggles.

danielscherzer avatar Oct 06 '23 09:10 danielscherzer