@@ -147,7 +147,7 @@ function wgslVertex(expr)
147147 io = IOBuffer ()
148148 endstring = " "
149149 @capture (expr, @vertex function fnbody__ end ) || error (" Expecting regular function!" )
150- write (io, " @stage( vertex) " ) # TODO should depend on version
150+ write (io, " @vertex " ) # TODO should depend on version
151151 wgslFunctionBody (fnbody, io, endstring)
152152 seek (io, 0 )
153153 code = read (io, String)
@@ -159,7 +159,7 @@ function wgslFragment(expr)
159159 io = IOBuffer ()
160160 endstring = " "
161161 @capture (expr, @fragment function fnbody__ end ) || error (" Expecting regular function!" )
162- write (io, " @stage( fragment) " ) # TODO should depend on version
162+ write (io, " @fragment " ) # TODO should depend on version
163163 wgslFunctionBody (fnbody, io, endstring)
164164 seek (io, 0 )
165165 code = read (io, String)
@@ -171,13 +171,13 @@ function wgslCompute(expr)
171171 io = IOBuffer ()
172172 endstring = " "
173173 if @capture (expr, @compute @workgroupSize (x_) function fnbody__ end )
174- write (io, " @stage( compute) @workgroup_size($x ) \n " )
174+ write (io, " @compute @workgroup_size($x ) \n " )
175175 elseif @capture (expr, @compute @workgroupSize (x_,) function fnbody__ end )
176- write (io, " @stage( compute) @workgroup_size($x ) \n " )
176+ write (io, " @compute @workgroup_size($x ) \n " )
177177 elseif @capture (expr, @compute @workgroupSize (x_, y_) function fnbody__ end )
178- write (io, " @stage( compute) @workgroup_size($x , $y ) \n " )
178+ write (io, " @compute @workgroup_size($x , $y ) \n " )
179179 elseif @capture (expr, @compute @workgroupSize (x_, y_, z_) function fnbody__ end )
180- write (io, " @stage( compute) @workgroup_size($x , $y , $z ) \n " )
180+ write (io, " @compute @workgroup_size($x , $y , $z ) \n " )
181181 else
182182 error (" Did not match the compute declaration function!" )
183183 end
0 commit comments