dawn-cmake/test/tint/bug/tint/1534.wgsl.expected.fxc.hlsl
dan sinclair c395660ee6 Add const-eval for sign.
This CL adds const-eval for the `sign` builtin.

Bug: tint:1581
Change-Id: I5d9bfd3f3f742bcba69fbb0d7f47dc57ce18e134
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107460
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2022-10-28 14:56:50 +00:00

12 lines
228 B
HLSL

cbuffer cbuffer_i : register(b0, space0) {
uint4 i[1];
};
RWByteAddressBuffer j : register(u1, space0);
[numthreads(1, 1, 1)]
void main() {
const uint l = dot(i[0].xyz, i[0].xyz);
j.Store(0u, asuint(i[0].x));
return;
}