blob: e1aaf9fb8c51ee6352ddd86b01fcd5efccb13bfc [file] [log] [blame]
Natalie Chouinard6ee63302024-06-25 20:45:30 +00001RWByteAddressBuffer prevent_dce : register(u0);
2
Natalie Chouinarde9027182024-06-13 18:50:19 +00003float4 min_c76fa6() {
dan sinclairacce83d2022-11-15 18:39:38 +00004 float4 res = (1.0f).xxxx;
Natalie Chouinarde9027182024-06-13 18:50:19 +00005 return res;
Ben Claytonb07a7ce2021-06-03 11:26:17 +00006}
7
Ben Claytonb07a7ce2021-06-03 11:26:17 +00008void fragment_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +00009 prevent_dce.Store4(0u, asuint(min_c76fa6()));
Ben Claytonb07a7ce2021-06-03 11:26:17 +000010 return;
11}
12
13[numthreads(1, 1, 1)]
14void compute_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000015 prevent_dce.Store4(0u, asuint(min_c76fa6()));
Ben Claytonb07a7ce2021-06-03 11:26:17 +000016 return;
17}
Natalie Chouinarde9027182024-06-13 18:50:19 +000018
19struct VertexOutput {
20 float4 pos;
21 float4 prevent_dce;
22};
23struct tint_symbol_1 {
24 nointerpolation float4 prevent_dce : TEXCOORD0;
25 float4 pos : SV_Position;
26};
27
28VertexOutput vertex_main_inner() {
29 VertexOutput tint_symbol = (VertexOutput)0;
30 tint_symbol.pos = (0.0f).xxxx;
31 tint_symbol.prevent_dce = min_c76fa6();
32 return tint_symbol;
33}
34
35tint_symbol_1 vertex_main() {
36 VertexOutput inner_result = vertex_main_inner();
37 tint_symbol_1 wrapper_result = (tint_symbol_1)0;
38 wrapper_result.pos = inner_result.pos;
39 wrapper_result.prevent_dce = inner_result.prevent_dce;
40 return wrapper_result;
41}