Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using Kotlin String variables inside the GLSL String #180

Open
hamoid opened this issue Apr 26, 2023 · 0 comments
Open

Error when using Kotlin String variables inside the GLSL String #180

hamoid opened this issue Apr 26, 2023 · 0 comments
Labels

Comments

@hamoid
Copy link

hamoid commented Apr 26, 2023

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 variations of the GLSL code (to avoid duplication) and to ensure I make no mistakes in uniform names.

To Reproduce

class A {
    private val v = "err"

    @Language("GLSL")
    private val glsl = """
        uniform float $v;
    """
}

Expected behavior
Ideally the code would not be highlighted as an error.

Screenshots
image

Versions

  • IDE: IntelliJ IDEA 2023.1 (Community Edition), Build #IC-231.8109.175, built on March 29, 2023, Runtime version: 17.0.7+7 amd64
  • Plugin: 1.24
@hamoid hamoid added the bug label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant