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

[shader-ast] allow unwrapped type strings in defn arg lists #98

Closed
postspectacular opened this issue Jul 8, 2019 · 0 comments
Closed

Comments

@postspectacular
Copy link
Member

Currently, each defn arg is an array of [type, name?, opts?]:

defn("void", "foo", [["vec2"], ["float"]], ...)

If no arg names/opts are used (as in above case), we should also allow just plain type strings, like so:

defn("void", "foo", ["vec2", "float"], ...)
postspectacular added a commit that referenced this issue Jul 8, 2019
* develop:
  fix(shader-ast): builtin `not` (bvec) used wrong internal fn name
  build: update all pkg doc scripts to ignore TS compiler errors
  Publish
  fix(examples): minor fix webgl-msdf demo
  fix(vectors): reflect output handling
  fix(matrices): mixQ result handling
  refactor(examples): update shader fn arg lists (#98)
  minor(webgl-msdf): update shader fn args
  refactor(shader-ast-stdlib): update function arg lists (#98)
  fix(shader-ast): fix #98, update defn() arg lists, add/update docs
  fix(shader-ast-stdlib): update incomplete cartesian3, refactor cartesian2
  Publish
  fix(resolve-map): fix #97, update to consider trailing comma & whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant