dawn-cmake/test/intrinsics/gen/frexp/a2a617.wgsl.expected.hlsl
Ben Clayton 41f21fe05b writer/hlsl: Emit zero values for private variables
Also remove the unreachanble constructor logic in EmitHandleVariable.
Variables of the handle storage class cannot have initializers.

Fixed: tint:173
Change-Id: I7c997a8b6a70308ff9b5c42fa1198810ee365bac
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55258
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2021-06-21 19:37:58 +00:00

30 lines
487 B
HLSL

static int arg_1 = 0;
void frexp_a2a617() {
float tint_tmp;
float tint_tmp_1 = frexp(1.0f, tint_tmp);
arg_1 = int(tint_tmp);
float res = tint_tmp_1;
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
frexp_a2a617();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}
void fragment_main() {
frexp_a2a617();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
frexp_a2a617();
return;
}