This website requires JavaScript.
Explore
Help
Sign In
encounter
/
dawn-cmake
mirror of
https://github.com/encounter/dawn-cmake.git
Watch
1
Star
0
Fork
You've already forked dawn-cmake
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
9ec7893ad4
dawn-cmake
/
test
/
tint
/
var
/
override
/
numbered
/
zero_init
/
f32.wgsl
7 lines
90 B
WebGPU Shading Language
Raw
Normal View
History
Unescape
Escape
Add support for override keyword and @id attribute This replaces the @override keyword that was previously used for pipeline-overridable constants. Support for pipeline-overridable constants in Dawn is hidden behind the "disallow-unsafe-APIs" toggle, so we can make this change directly instead of deprecating and continuing to support the old syntax. Fixed: tint:1403 Change-Id: I9b2957a1e33b12772bfe449c0f3a31d929f8aa8b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80480 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com>
2022-02-15 16:36:57 +00:00
@
id
(
1234
)
override
o
:
f32
=
f32
(
)
;
writer/spirv: Fix [[override]] for zero-init defaults These expressions were not emitted as spec-ops, failing new CTS tests. Change-Id: I56e8f56a22de2b8dac9a8bd7a2d694d8d81dca35 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67480 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: James Price <jrprice@google.com>
2021-10-26 10:05:02 +00:00
Update src/tint unittests to new @stage format. This CL updates all of the Tint unittests to the new @stage shorter syntax. This also updates the WGSL writer to emit the new short forms instead of using the deprecated form. Bug: tint:1503 Change-Id: I8c49e5319a19cccb5b4b5078f3ab39c50f31a9a8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92483 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
2022-06-07 13:55:34 +00:00
@
compute
@
workgroup_size
(
1
)
writer/spirv: Fix [[override]] for zero-init defaults These expressions were not emitted as spec-ops, failing new CTS tests. Change-Id: I56e8f56a22de2b8dac9a8bd7a2d694d8d81dca35 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67480 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: James Price <jrprice@google.com>
2021-10-26 10:05:02 +00:00
fn
main
(
)
{
_
=
o
;
}