Skip to content

Warn/Error on identical input variables #23

Description

@sgrove

This one is tough, and may not be easily solvable, but I just lost a lot of time to copy/pasting some code without updating the id...

(def a-position
  (g/attribute "aVertexPosition" :vec3))

(def a-offset
  (g/attribute "aVertexPosition" :vec3))

I thought my shader (which used both a-position and a-offset) took two inputs, but obviously only took one - didn't realize it until I looked at the generated glsl and then the program inputs.

Not sure how to fix this one, but seems likely to be a source of confusion and pain down the road.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions