rmordechay / glsl-plugin-idea

GLSL support for JetBrains IDE's
Apache License 2.0
33 stars 11 forks source link

array index not recognized #31

Closed ThunderSphun closed 3 months ago

ThunderSphun commented 8 months ago

I was working on a geometry shader when i found that array indexing doesnt work correctly. I specify the incoming values as follows

in vec3 colorIn[1];

and use it like this

colorOut = colorIn[0];

However this gives the following error

incompatible types (vec3 and float) in assignment (and no available implicit conversion).

This error makes it feel that it doesn't recognize the variable being an array, just sees it as a vec3 and parses it like that.

rmordechay commented 6 months ago

I'll have a look at it next week if I find time. Thx for the ticket.

rmordechay commented 3 months ago

Ok for now all the errors are disabled anyway so im closing the that.