blob: b7cbe13fe0a9bed417cff700a6d342db8f36f72d [file] [log] [blame]
Ben Clayton77a90cb2023-03-06 18:25:08 +00001RWByteAddressBuffer prevent_dce : register(u0, space2);
2
Ben Claytonc0af5c52022-06-02 14:36:10 +00003void pow_4a46c9() {
Ben Claytonee36e392022-07-26 14:27:25 +00004 float3 arg_0 = (1.0f).xxx;
5 float3 arg_1 = (1.0f).xxx;
Ben Claytonc0af5c52022-06-02 14:36:10 +00006 float3 res = pow(arg_0, arg_1);
Ben Clayton77a90cb2023-03-06 18:25:08 +00007 prevent_dce.Store3(0u, asuint(res));
Ben Clayton37035222021-12-08 19:54:08 +00008}
9
10struct tint_symbol {
11 float4 value : SV_Position;
12};
13
14float4 vertex_main_inner() {
Ben Claytonc0af5c52022-06-02 14:36:10 +000015 pow_4a46c9();
Ben Claytone9f8b092022-06-01 13:14:39 +000016 return (0.0f).xxxx;
Ben Clayton37035222021-12-08 19:54:08 +000017}
18
19tint_symbol vertex_main() {
Antonio Maiorano144ebed2024-01-30 16:30:15 +000020 float4 inner_result = vertex_main_inner();
Ben Clayton37035222021-12-08 19:54:08 +000021 tint_symbol wrapper_result = (tint_symbol)0;
22 wrapper_result.value = inner_result;
23 return wrapper_result;
24}
25
26void fragment_main() {
Ben Claytonc0af5c52022-06-02 14:36:10 +000027 pow_4a46c9();
Ben Clayton37035222021-12-08 19:54:08 +000028 return;
29}
30
31[numthreads(1, 1, 1)]
32void compute_main() {
Ben Claytonc0af5c52022-06-02 14:36:10 +000033 pow_4a46c9();
Ben Clayton37035222021-12-08 19:54:08 +000034 return;
35}