Skip to content

Commit dac63eb

Browse files
authored
Merge pull request #5 from JuliaWGPU/upstreamSync
Upstream sync v0.16.0.1
2 parents 69463b4 + 95b8308 commit dac63eb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "WGSLTypes"
22
uuid = "8cf5275a-6167-4820-ac24-74d7d0e6cf05"
33
authors = ["arhik <[email protected]>"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"

src/macros.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)