glsl4idea
glsl4idea copied to clipboard
A GLSL language plugin for IntelliJ IDEA
**Describe the bug** The GLSL plugin doesn't seem to like it if I use a Kotlin variable and insert that variable in the GLSL code. I do that to generate...
When writing something like this ```glsl #define FOO #define BAR FOO ``` IntelliJ constantly encounters the following errors: Stacktrace ``` java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at...
**Describe the bug** min and max (and likely others) not recognized for i64 and u64 **To Reproduce** ```glsl int64_t min_v(i64vec2 value){ return min(value.x, value.y); } ``` Says "Incompatible types, required...
I have the following enabled: ``` #extension GL_EXT_shader_explicit_arithmetic_types : enable #extension GL_EXT_shader_explicit_arithmetic_types_int8 : enable #extension GL_EXT_shader_explicit_arithmetic_types_int16 : enable #extension GL_EXT_shader_explicit_arithmetic_types_int32 : enable #extension GL_EXT_shader_explicit_arithmetic_types_int64 : enable #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable...
There are already unused files for this in resources/environment.
Being able to define a separate colour for function declarations and function calls would be very beneficial. Currently, this option is missing from the plugin.
I would be happy to do this myself but posting here in case I forget or lose motivation. For some variables you can deduce their usage. For example if the...
Hello, I've just noticed an issue with this code : ``` void main(){ #ifdef TEXTURE gl_FragColor = texture2D(m_Texture, texCoord); return; #endif gl_FragColor = vec4(1.0); } ``` The last line `gl_FragColor...
> All variable names, structure type names, and function names in a given scope share the same name space. Function names can be redeclared in the same scope, with the...