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
ab00dd0725
dawn-cmake
/
test
/
tint
/
var
/
initialization
/
function
/
struct.wgsl.expected.fxc.hlsl
11 lines
97 B
HLSL
Raw
Normal View
History
Unescape
Escape
test: Add tests to verify variables are zero initialized Bug: tint:938 Fixed: tint:759 Change-Id: I5794d7f40ec154c55240b163316ed45c7f14b190 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56547 Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
2021-06-30 15:59:40 +00:00
struct
S
{
int
a
;
float
b
;
}
;
[
numthreads
(
1
,
1
,
1
)
]
void
main
(
)
{
writer/hlsl: Zero initialize with (T) 0 For structures and arrays. This behaves identically to the per-element zero-initialization, but can be significantly less verbose. Change-Id: I380ef86f16c2b3f37a9de2820e707f368955b761 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56764 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
2021-07-02 19:27:42 +00:00
S
v
=
(
S
)
0
;
test: Add tests to verify variables are zero initialized Bug: tint:938 Fixed: tint:759 Change-Id: I5794d7f40ec154c55240b163316ed45c7f14b190 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56547 Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
2021-06-30 15:59:40 +00:00
return
;
}