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
fa2d3851a8
dawn-cmake
/
test
/
tint
/
expressions
/
bitcast
/
vector
/
i32-i32.wgsl.expected.dxc.hlsl
7 lines
104 B
HLSL
Raw
Normal View
History
Unescape
Escape
writer/hlsl: Support bitcast of vectors Add end to end tests Fixed: tint:1026 Change-Id: I10813cbe6dc4f1bccddf9a8a29e3a249a364c051 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59663 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
2021-07-26 15:08:28 +00:00
[
numthreads
(
1
,
1
,
1
)
]
void
f
(
)
{
const
int3
a
=
int3
(
1
,
2
,
3
)
;
tint/writer: Disable constant inlining for lets Once 'const' is introduced, let will no longer resolve to a creation-time constant value. Add temporary code into each of the writers to prevent constants that originate from a 'let' from being inlined. This will reduce the amount of noise in later CLs. Bug: tint:1580 Change-Id: Id3493a43ac09fe9f042ff2d517d04b2ae854d43e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94541 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org>
2022-06-24 18:15:39 +00:00
const
int3
b
=
asint
(
a
)
;
writer/hlsl: Support bitcast of vectors Add end to end tests Fixed: tint:1026 Change-Id: I10813cbe6dc4f1bccddf9a8a29e3a249a364c051 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59663 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
2021-07-26 15:08:28 +00:00
return
;
}