dawn-cmake/test/intrinsics/gen/frexp/53d417.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
530 B
HLSL

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