mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
Convert @stage to short form
This CL converts remaining @stage instances in the dawn tree to use the equivalent shorter variant. Bug: tint:1503 Change-Id: I74594cd68544fbd692f77d4646991d9c27e218f8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92484 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
3f1a93291b
commit
d574be5750
@@ -203,7 +203,7 @@ type example struct {
|
||||
func tryCompile(compiler, wd string, e example) error {
|
||||
code := e.code
|
||||
if e.functionScope {
|
||||
code = "\n@stage(vertex) fn main() -> @builtin(position) vec4<f32> {\n" + code + " return vec4<f32>();}\n"
|
||||
code = "\n@vertex fn main() -> @builtin(position) vec4<f32> {\n" + code + " return vec4<f32>();}\n"
|
||||
}
|
||||
|
||||
addedStubFunction := false
|
||||
@@ -214,7 +214,7 @@ func tryCompile(compiler, wd string, e example) error {
|
||||
}
|
||||
|
||||
if !addedStubFunction {
|
||||
code += "\n@stage(vertex) fn main() {}\n"
|
||||
code += "\n@vertex fn main() {}\n"
|
||||
addedStubFunction = true
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user