Skip to content

Commit

Permalink
add :qualifiers option to input/output (doesn't print correctly yet t…
Browse files Browse the repository at this point in the history
…hough)
  • Loading branch information
3b committed Sep 23, 2017
1 parent 8b65d21 commit 538d508
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ uniform \"foo.bar[1].baz\".
(declare (ignore location))
`(3bgl-shaders::compile-form '(attribute ,name ,type ,@args)))

(cl:defmacro input (name type &rest args &key stage location)
(cl:defmacro input (name type &rest args &key stage location qualifiers)
(declare (ignore location stage))
`(3bgl-shaders::compile-form '(input ,name ,type ,@args)))

(cl:defmacro output (name type &rest args &key stage location)
(cl:defmacro output (name type &rest args &key stage location qualifiers)
(declare (ignore location stage))
`(3bgl-shaders::compile-form '(output ,name ,type ,@args)))

Expand Down
10 changes: 6 additions & 4 deletions types.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,17 @@
nil)

(%glsl-macro 3bgl-glsl::input (%name type &key location (stage t)
internal)
internal qualifiers)
(in/out/uniform/attrib :in %name type
:location location :internal internal :stage stage)
:location location :internal internal :stage stage
:qualifiers qualifiers)
nil)

(%glsl-macro 3bgl-glsl::output (%name type &key location (stage t)
internal)
internal qualifiers)
(in/out/uniform/attrib :out %name type
:location location :internal internal :stage stage)
:location location :internal internal :stage stage
:qualifiers qualifiers)
nil)

(%glsl-macro 3bgl-glsl::uniform (%name type &key location (stage t)
Expand Down

0 comments on commit 538d508

Please sign in to comment.