mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 07:06:11 +00:00
test: Remove many expected files
For these tests, we only really care that we can successfully consume them and generate valid output for each backend. Having the expected files in the tree generates significant churn for any change to how we generate backend code, which makes it hard to inspect diffs. Change-Id: Ic98c248081144c0fb1791f1303eaf6d459548e3d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/62720 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
568136dd10
commit
87cce20f67
@@ -1,126 +0,0 @@
|
||||
cbuffer cbuffer_x_6 : register(b0, space0) {
|
||||
uint4 x_6[19];
|
||||
};
|
||||
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
void main_1() {
|
||||
int A[17] = (int[17])0;
|
||||
int ref[17] = (int[17])0;
|
||||
int a = 0;
|
||||
int i = 0;
|
||||
bool ok = false;
|
||||
int i_1 = 0;
|
||||
const int x_52 = asint(x_6[2].x);
|
||||
const int x_54 = asint(x_6[2].x);
|
||||
const int x_56 = asint(x_6[2].x);
|
||||
const int x_58 = asint(x_6[2].x);
|
||||
const int x_60 = asint(x_6[2].x);
|
||||
const int x_62 = asint(x_6[2].x);
|
||||
const int x_64 = asint(x_6[2].x);
|
||||
const int x_66 = asint(x_6[2].x);
|
||||
const int x_68 = asint(x_6[2].x);
|
||||
const int x_70 = asint(x_6[2].x);
|
||||
const int x_72 = asint(x_6[2].x);
|
||||
const int x_74 = asint(x_6[2].x);
|
||||
const int x_76 = asint(x_6[2].x);
|
||||
const int x_78 = asint(x_6[2].x);
|
||||
const int x_80 = asint(x_6[2].x);
|
||||
const int x_82 = asint(x_6[2].x);
|
||||
const int x_84 = asint(x_6[2].x);
|
||||
const int tint_symbol_2[17] = {x_52, x_54, x_56, x_58, x_60, x_62, x_64, x_66, x_68, x_70, x_72, x_74, x_76, x_78, x_80, x_82, x_84};
|
||||
A = tint_symbol_2;
|
||||
const int x_87 = asint(x_6[3].x);
|
||||
const int x_89 = asint(x_6[4].x);
|
||||
const int x_91 = asint(x_6[5].x);
|
||||
const int x_93 = asint(x_6[6].x);
|
||||
const int x_95 = asint(x_6[7].x);
|
||||
const int x_97 = asint(x_6[8].x);
|
||||
const int x_99 = asint(x_6[9].x);
|
||||
const int x_101 = asint(x_6[10].x);
|
||||
const int x_103 = asint(x_6[11].x);
|
||||
const int x_105 = asint(x_6[12].x);
|
||||
const int x_107 = asint(x_6[13].x);
|
||||
const int x_109 = asint(x_6[14].x);
|
||||
const int x_111 = asint(x_6[15].x);
|
||||
const int x_113 = asint(x_6[16].x);
|
||||
const int x_115 = asint(x_6[17].x);
|
||||
const int x_117 = asint(x_6[18].x);
|
||||
const int x_119 = asint(x_6[1].x);
|
||||
const int tint_symbol_3[17] = {x_87, x_89, x_91, x_93, x_95, x_97, x_99, x_101, x_103, x_105, x_107, x_109, x_111, x_113, x_115, x_117, x_119};
|
||||
ref = tint_symbol_3;
|
||||
const int x_122 = asint(x_6[2].x);
|
||||
a = x_122;
|
||||
const int x_124 = asint(x_6[2].x);
|
||||
i = x_124;
|
||||
while (true) {
|
||||
const int x_129 = i;
|
||||
const int x_131 = asint(x_6[1].x);
|
||||
if ((x_129 < x_131)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
const int x_134 = i;
|
||||
const int x_135 = a;
|
||||
a = (x_135 - 1);
|
||||
A[x_134] = x_135;
|
||||
const int x_138 = i;
|
||||
const int x_140 = asint(x_6[2].x);
|
||||
const int x_142 = asint(x_6[18].x);
|
||||
const int x_144 = i;
|
||||
const int x_146 = asint(x_6[3].x);
|
||||
A[clamp(x_138, x_140, x_142)] = (x_144 + x_146);
|
||||
{
|
||||
i = (i + 1);
|
||||
}
|
||||
}
|
||||
ok = true;
|
||||
const int x_152 = asint(x_6[2].x);
|
||||
i_1 = x_152;
|
||||
while (true) {
|
||||
const int x_157 = i_1;
|
||||
const int x_159 = asint(x_6[1].x);
|
||||
if ((x_157 < x_159)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
const int x_164 = A[i_1];
|
||||
const int x_167 = ref[i_1];
|
||||
if ((x_164 != x_167)) {
|
||||
ok = false;
|
||||
}
|
||||
{
|
||||
i_1 = (i_1 + 1);
|
||||
}
|
||||
}
|
||||
const int x_174 = asint(x_6[2].x);
|
||||
const float x_175 = float(x_174);
|
||||
x_GLF_color = float4(x_175, x_175, x_175, x_175);
|
||||
if (ok) {
|
||||
const int x_181 = asint(x_6[3].x);
|
||||
const int x_184 = asint(x_6[2].x);
|
||||
const int x_187 = asint(x_6[2].x);
|
||||
const int x_190 = asint(x_6[3].x);
|
||||
x_GLF_color = float4(float(x_181), float(x_184), float(x_187), float(x_190));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol {
|
||||
float4 x_GLF_color_1 : SV_Target0;
|
||||
};
|
||||
|
||||
main_out main_inner() {
|
||||
main_1();
|
||||
const main_out tint_symbol_4 = {x_GLF_color};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
tint_symbol main() {
|
||||
const main_out inner_result = main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
@@ -1,144 +0,0 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_padded_array_element {
|
||||
/* 0x0000 */ int el;
|
||||
/* 0x0004 */ int8_t tint_pad[12];
|
||||
};
|
||||
struct tint_array_wrapper {
|
||||
/* 0x0000 */ tint_padded_array_element arr[19];
|
||||
};
|
||||
struct buf0 {
|
||||
/* 0x0000 */ tint_array_wrapper x_GLF_uniform_int_values;
|
||||
};
|
||||
struct tint_array_wrapper_1 {
|
||||
int arr[17];
|
||||
};
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
float4 x_GLF_color_1 [[color(0)]];
|
||||
};
|
||||
|
||||
void main_1(constant buf0& x_6, thread float4* const tint_symbol_5) {
|
||||
tint_array_wrapper_1 A = {};
|
||||
tint_array_wrapper_1 ref = {};
|
||||
int a = 0;
|
||||
int i = 0;
|
||||
bool ok = false;
|
||||
int i_1 = 0;
|
||||
int const x_52 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_54 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_56 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_58 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_60 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_62 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_64 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_66 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_68 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_70 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_72 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_74 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_76 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_78 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_80 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_82 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_84 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
tint_array_wrapper_1 const tint_symbol_2 = {.arr={x_52, x_54, x_56, x_58, x_60, x_62, x_64, x_66, x_68, x_70, x_72, x_74, x_76, x_78, x_80, x_82, x_84}};
|
||||
A = tint_symbol_2;
|
||||
int const x_87 = x_6.x_GLF_uniform_int_values.arr[3].el;
|
||||
int const x_89 = x_6.x_GLF_uniform_int_values.arr[4].el;
|
||||
int const x_91 = x_6.x_GLF_uniform_int_values.arr[5].el;
|
||||
int const x_93 = x_6.x_GLF_uniform_int_values.arr[6].el;
|
||||
int const x_95 = x_6.x_GLF_uniform_int_values.arr[7].el;
|
||||
int const x_97 = x_6.x_GLF_uniform_int_values.arr[8].el;
|
||||
int const x_99 = x_6.x_GLF_uniform_int_values.arr[9].el;
|
||||
int const x_101 = x_6.x_GLF_uniform_int_values.arr[10].el;
|
||||
int const x_103 = x_6.x_GLF_uniform_int_values.arr[11].el;
|
||||
int const x_105 = x_6.x_GLF_uniform_int_values.arr[12].el;
|
||||
int const x_107 = x_6.x_GLF_uniform_int_values.arr[13].el;
|
||||
int const x_109 = x_6.x_GLF_uniform_int_values.arr[14].el;
|
||||
int const x_111 = x_6.x_GLF_uniform_int_values.arr[15].el;
|
||||
int const x_113 = x_6.x_GLF_uniform_int_values.arr[16].el;
|
||||
int const x_115 = x_6.x_GLF_uniform_int_values.arr[17].el;
|
||||
int const x_117 = x_6.x_GLF_uniform_int_values.arr[18].el;
|
||||
int const x_119 = x_6.x_GLF_uniform_int_values.arr[1].el;
|
||||
tint_array_wrapper_1 const tint_symbol_3 = {.arr={x_87, x_89, x_91, x_93, x_95, x_97, x_99, x_101, x_103, x_105, x_107, x_109, x_111, x_113, x_115, x_117, x_119}};
|
||||
ref = tint_symbol_3;
|
||||
int const x_122 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
a = x_122;
|
||||
int const x_124 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
i = x_124;
|
||||
while (true) {
|
||||
int const x_129 = i;
|
||||
int const x_131 = x_6.x_GLF_uniform_int_values.arr[1].el;
|
||||
if ((x_129 < x_131)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
int const x_134 = i;
|
||||
int const x_135 = a;
|
||||
a = as_type<int>((as_type<uint>(x_135) - as_type<uint>(1)));
|
||||
A.arr[x_134] = x_135;
|
||||
int const x_138 = i;
|
||||
int const x_140 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_142 = x_6.x_GLF_uniform_int_values.arr[18].el;
|
||||
int const x_144 = i;
|
||||
int const x_146 = x_6.x_GLF_uniform_int_values.arr[3].el;
|
||||
A.arr[clamp(x_138, x_140, x_142)] = as_type<int>((as_type<uint>(x_144) + as_type<uint>(x_146)));
|
||||
{
|
||||
int const x_149 = i;
|
||||
i = as_type<int>((as_type<uint>(x_149) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
ok = true;
|
||||
int const x_152 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
i_1 = x_152;
|
||||
while (true) {
|
||||
int const x_157 = i_1;
|
||||
int const x_159 = x_6.x_GLF_uniform_int_values.arr[1].el;
|
||||
if ((x_157 < x_159)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
int const x_162 = i_1;
|
||||
int const x_164 = A.arr[x_162];
|
||||
int const x_165 = i_1;
|
||||
int const x_167 = ref.arr[x_165];
|
||||
if ((x_164 != x_167)) {
|
||||
ok = false;
|
||||
}
|
||||
{
|
||||
int const x_171 = i_1;
|
||||
i_1 = as_type<int>((as_type<uint>(x_171) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_174 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
float const x_175 = float(x_174);
|
||||
*(tint_symbol_5) = float4(x_175, x_175, x_175, x_175);
|
||||
bool const x_177 = ok;
|
||||
if (x_177) {
|
||||
int const x_181 = x_6.x_GLF_uniform_int_values.arr[3].el;
|
||||
int const x_184 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_187 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_190 = x_6.x_GLF_uniform_int_values.arr[3].el;
|
||||
*(tint_symbol_5) = float4(float(x_181), float(x_184), float(x_187), float(x_190));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
main_out tint_symbol_inner(constant buf0& x_6, thread float4* const tint_symbol_6) {
|
||||
main_1(x_6, tint_symbol_6);
|
||||
main_out const tint_symbol_4 = {.x_GLF_color_1=*(tint_symbol_6)};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
fragment tint_symbol_1 tint_symbol(constant buf0& x_6 [[buffer(0)]]) {
|
||||
thread float4 tint_symbol_7 = 0.0f;
|
||||
main_out const inner_result = tint_symbol_inner(x_6, &(tint_symbol_7));
|
||||
tint_symbol_1 wrapper_result = {};
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
@@ -1,292 +0,0 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 214
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%152 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %main "main" %x_GLF_color_1_1
|
||||
OpExecutionMode %main OriginUpperLeft
|
||||
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
|
||||
OpName %buf0 "buf0"
|
||||
OpMemberName %buf0 0 "x_GLF_uniform_int_values"
|
||||
OpName %x_6 "x_6"
|
||||
OpName %x_GLF_color "x_GLF_color"
|
||||
OpName %main_1 "main_1"
|
||||
OpName %A "A"
|
||||
OpName %ref "ref"
|
||||
OpName %a "a"
|
||||
OpName %i "i"
|
||||
OpName %ok "ok"
|
||||
OpName %i_1 "i_1"
|
||||
OpName %main_out "main_out"
|
||||
OpMemberName %main_out 0 "x_GLF_color_1"
|
||||
OpName %main_inner "main_inner"
|
||||
OpName %main "main"
|
||||
OpDecorate %x_GLF_color_1_1 Location 0
|
||||
OpDecorate %buf0 Block
|
||||
OpMemberDecorate %buf0 0 Offset 0
|
||||
OpDecorate %_arr_int_uint_19 ArrayStride 16
|
||||
OpDecorate %x_6 NonWritable
|
||||
OpDecorate %x_6 DescriptorSet 0
|
||||
OpDecorate %x_6 Binding 0
|
||||
OpDecorate %_arr_int_uint_17 ArrayStride 4
|
||||
OpMemberDecorate %main_out 0 Offset 0
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%5 = OpConstantNull %v4float
|
||||
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
|
||||
%int = OpTypeInt 32 1
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_19 = OpConstant %uint 19
|
||||
%_arr_int_uint_19 = OpTypeArray %int %uint_19
|
||||
%buf0 = OpTypeStruct %_arr_int_uint_19
|
||||
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
|
||||
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
|
||||
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
||||
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
|
||||
%void = OpTypeVoid
|
||||
%15 = OpTypeFunction %void
|
||||
%uint_17 = OpConstant %uint 17
|
||||
%_arr_int_uint_17 = OpTypeArray %int %uint_17
|
||||
%_ptr_Function__arr_int_uint_17 = OpTypePointer Function %_arr_int_uint_17
|
||||
%23 = OpConstantNull %_arr_int_uint_17
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%27 = OpConstantNull %int
|
||||
%bool = OpTypeBool
|
||||
%_ptr_Function_bool = OpTypePointer Function %bool
|
||||
%32 = OpConstantNull %bool
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%int_2 = OpConstant %int 2
|
||||
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%int_5 = OpConstant %int 5
|
||||
%int_6 = OpConstant %int 6
|
||||
%int_7 = OpConstant %int 7
|
||||
%int_8 = OpConstant %int 8
|
||||
%int_9 = OpConstant %int 9
|
||||
%int_10 = OpConstant %int 10
|
||||
%int_11 = OpConstant %int 11
|
||||
%int_12 = OpConstant %int 12
|
||||
%int_13 = OpConstant %int 13
|
||||
%int_14 = OpConstant %int 14
|
||||
%int_15 = OpConstant %int 15
|
||||
%int_16 = OpConstant %int 16
|
||||
%int_17 = OpConstant %int 17
|
||||
%int_18 = OpConstant %int 18
|
||||
%int_1 = OpConstant %int 1
|
||||
%true = OpConstantTrue %bool
|
||||
%false = OpConstantFalse %bool
|
||||
%main_out = OpTypeStruct %v4float
|
||||
%203 = OpTypeFunction %main_out
|
||||
%main_1 = OpFunction %void None %15
|
||||
%18 = OpLabel
|
||||
%A = OpVariable %_ptr_Function__arr_int_uint_17 Function %23
|
||||
%ref = OpVariable %_ptr_Function__arr_int_uint_17 Function %23
|
||||
%a = OpVariable %_ptr_Function_int Function %27
|
||||
%i = OpVariable %_ptr_Function_int Function %27
|
||||
%ok = OpVariable %_ptr_Function_bool Function %32
|
||||
%i_1 = OpVariable %_ptr_Function_int Function %27
|
||||
%37 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%38 = OpLoad %int %37
|
||||
%39 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%40 = OpLoad %int %39
|
||||
%41 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%42 = OpLoad %int %41
|
||||
%43 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%44 = OpLoad %int %43
|
||||
%45 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%46 = OpLoad %int %45
|
||||
%47 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%48 = OpLoad %int %47
|
||||
%49 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%50 = OpLoad %int %49
|
||||
%51 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%52 = OpLoad %int %51
|
||||
%53 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%54 = OpLoad %int %53
|
||||
%55 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%56 = OpLoad %int %55
|
||||
%57 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%58 = OpLoad %int %57
|
||||
%59 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%60 = OpLoad %int %59
|
||||
%61 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%62 = OpLoad %int %61
|
||||
%63 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%64 = OpLoad %int %63
|
||||
%65 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%66 = OpLoad %int %65
|
||||
%67 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%68 = OpLoad %int %67
|
||||
%69 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%70 = OpLoad %int %69
|
||||
%71 = OpCompositeConstruct %_arr_int_uint_17 %38 %40 %42 %44 %46 %48 %50 %52 %54 %56 %58 %60 %62 %64 %66 %68 %70
|
||||
OpStore %A %71
|
||||
%73 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_3
|
||||
%74 = OpLoad %int %73
|
||||
%76 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_4
|
||||
%77 = OpLoad %int %76
|
||||
%79 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_5
|
||||
%80 = OpLoad %int %79
|
||||
%82 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_6
|
||||
%83 = OpLoad %int %82
|
||||
%85 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_7
|
||||
%86 = OpLoad %int %85
|
||||
%88 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_8
|
||||
%89 = OpLoad %int %88
|
||||
%91 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_9
|
||||
%92 = OpLoad %int %91
|
||||
%94 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_10
|
||||
%95 = OpLoad %int %94
|
||||
%97 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_11
|
||||
%98 = OpLoad %int %97
|
||||
%100 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_12
|
||||
%101 = OpLoad %int %100
|
||||
%103 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_13
|
||||
%104 = OpLoad %int %103
|
||||
%106 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_14
|
||||
%107 = OpLoad %int %106
|
||||
%109 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_15
|
||||
%110 = OpLoad %int %109
|
||||
%112 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_16
|
||||
%113 = OpLoad %int %112
|
||||
%115 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_17
|
||||
%116 = OpLoad %int %115
|
||||
%118 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_18
|
||||
%119 = OpLoad %int %118
|
||||
%121 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
|
||||
%122 = OpLoad %int %121
|
||||
%123 = OpCompositeConstruct %_arr_int_uint_17 %74 %77 %80 %83 %86 %89 %92 %95 %98 %101 %104 %107 %110 %113 %116 %119 %122
|
||||
OpStore %ref %123
|
||||
%124 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%125 = OpLoad %int %124
|
||||
OpStore %a %125
|
||||
%126 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%127 = OpLoad %int %126
|
||||
OpStore %i %127
|
||||
OpBranch %128
|
||||
%128 = OpLabel
|
||||
OpLoopMerge %129 %130 None
|
||||
OpBranch %131
|
||||
%131 = OpLabel
|
||||
%132 = OpLoad %int %i
|
||||
%133 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
|
||||
%134 = OpLoad %int %133
|
||||
%135 = OpSLessThan %bool %132 %134
|
||||
OpSelectionMerge %136 None
|
||||
OpBranchConditional %135 %137 %138
|
||||
%137 = OpLabel
|
||||
OpBranch %136
|
||||
%138 = OpLabel
|
||||
OpBranch %129
|
||||
%136 = OpLabel
|
||||
%139 = OpLoad %int %i
|
||||
%140 = OpLoad %int %a
|
||||
%141 = OpISub %int %140 %int_1
|
||||
OpStore %a %141
|
||||
%142 = OpAccessChain %_ptr_Function_int %A %139
|
||||
OpStore %142 %140
|
||||
%143 = OpLoad %int %i
|
||||
%144 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%145 = OpLoad %int %144
|
||||
%146 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_18
|
||||
%147 = OpLoad %int %146
|
||||
%148 = OpLoad %int %i
|
||||
%149 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_3
|
||||
%150 = OpLoad %int %149
|
||||
%151 = OpExtInst %int %152 SClamp %143 %145 %147
|
||||
%153 = OpAccessChain %_ptr_Function_int %A %151
|
||||
%154 = OpIAdd %int %148 %150
|
||||
OpStore %153 %154
|
||||
OpBranch %130
|
||||
%130 = OpLabel
|
||||
%155 = OpLoad %int %i
|
||||
%156 = OpIAdd %int %155 %int_1
|
||||
OpStore %i %156
|
||||
OpBranch %128
|
||||
%129 = OpLabel
|
||||
OpStore %ok %true
|
||||
%158 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%159 = OpLoad %int %158
|
||||
OpStore %i_1 %159
|
||||
OpBranch %160
|
||||
%160 = OpLabel
|
||||
OpLoopMerge %161 %162 None
|
||||
OpBranch %163
|
||||
%163 = OpLabel
|
||||
%164 = OpLoad %int %i_1
|
||||
%165 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
|
||||
%166 = OpLoad %int %165
|
||||
%167 = OpSLessThan %bool %164 %166
|
||||
OpSelectionMerge %168 None
|
||||
OpBranchConditional %167 %169 %170
|
||||
%169 = OpLabel
|
||||
OpBranch %168
|
||||
%170 = OpLabel
|
||||
OpBranch %161
|
||||
%168 = OpLabel
|
||||
%171 = OpLoad %int %i_1
|
||||
%172 = OpAccessChain %_ptr_Function_int %A %171
|
||||
%173 = OpLoad %int %172
|
||||
%174 = OpLoad %int %i_1
|
||||
%175 = OpAccessChain %_ptr_Function_int %ref %174
|
||||
%176 = OpLoad %int %175
|
||||
%177 = OpINotEqual %bool %173 %176
|
||||
OpSelectionMerge %178 None
|
||||
OpBranchConditional %177 %179 %178
|
||||
%179 = OpLabel
|
||||
OpStore %ok %false
|
||||
OpBranch %178
|
||||
%178 = OpLabel
|
||||
OpBranch %162
|
||||
%162 = OpLabel
|
||||
%181 = OpLoad %int %i_1
|
||||
%182 = OpIAdd %int %181 %int_1
|
||||
OpStore %i_1 %182
|
||||
OpBranch %160
|
||||
%161 = OpLabel
|
||||
%183 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%184 = OpLoad %int %183
|
||||
%185 = OpConvertSToF %float %184
|
||||
%186 = OpCompositeConstruct %v4float %185 %185 %185 %185
|
||||
OpStore %x_GLF_color %186
|
||||
%187 = OpLoad %bool %ok
|
||||
OpSelectionMerge %188 None
|
||||
OpBranchConditional %187 %189 %188
|
||||
%189 = OpLabel
|
||||
%190 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_3
|
||||
%191 = OpLoad %int %190
|
||||
%192 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%193 = OpLoad %int %192
|
||||
%194 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%195 = OpLoad %int %194
|
||||
%196 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_3
|
||||
%197 = OpLoad %int %196
|
||||
%198 = OpConvertSToF %float %191
|
||||
%199 = OpConvertSToF %float %193
|
||||
%200 = OpConvertSToF %float %195
|
||||
%201 = OpConvertSToF %float %197
|
||||
%202 = OpCompositeConstruct %v4float %198 %199 %200 %201
|
||||
OpStore %x_GLF_color %202
|
||||
OpBranch %188
|
||||
%188 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %main_out None %203
|
||||
%206 = OpLabel
|
||||
%207 = OpFunctionCall %void %main_1
|
||||
%208 = OpLoad %v4float %x_GLF_color
|
||||
%209 = OpCompositeConstruct %main_out %208
|
||||
OpReturnValue %209
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %15
|
||||
%211 = OpLabel
|
||||
%212 = OpFunctionCall %main_out %main_inner
|
||||
%213 = OpCompositeExtract %v4float %212 0
|
||||
OpStore %x_GLF_color_1_1 %213
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,128 +0,0 @@
|
||||
type Arr = [[stride(16)]] array<i32, 19>;
|
||||
|
||||
[[block]]
|
||||
struct buf0 {
|
||||
x_GLF_uniform_int_values : Arr;
|
||||
};
|
||||
|
||||
[[group(0), binding(0)]] var<uniform> x_6 : buf0;
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
fn main_1() {
|
||||
var A : array<i32, 17>;
|
||||
var ref : array<i32, 17>;
|
||||
var a : i32;
|
||||
var i : i32;
|
||||
var ok : bool;
|
||||
var i_1 : i32;
|
||||
let x_52 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_54 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_56 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_58 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_60 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_62 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_64 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_66 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_68 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_70 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_72 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_74 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_76 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_78 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_80 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_82 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_84 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
A = array<i32, 17>(x_52, x_54, x_56, x_58, x_60, x_62, x_64, x_66, x_68, x_70, x_72, x_74, x_76, x_78, x_80, x_82, x_84);
|
||||
let x_87 : i32 = x_6.x_GLF_uniform_int_values[3];
|
||||
let x_89 : i32 = x_6.x_GLF_uniform_int_values[4];
|
||||
let x_91 : i32 = x_6.x_GLF_uniform_int_values[5];
|
||||
let x_93 : i32 = x_6.x_GLF_uniform_int_values[6];
|
||||
let x_95 : i32 = x_6.x_GLF_uniform_int_values[7];
|
||||
let x_97 : i32 = x_6.x_GLF_uniform_int_values[8];
|
||||
let x_99 : i32 = x_6.x_GLF_uniform_int_values[9];
|
||||
let x_101 : i32 = x_6.x_GLF_uniform_int_values[10];
|
||||
let x_103 : i32 = x_6.x_GLF_uniform_int_values[11];
|
||||
let x_105 : i32 = x_6.x_GLF_uniform_int_values[12];
|
||||
let x_107 : i32 = x_6.x_GLF_uniform_int_values[13];
|
||||
let x_109 : i32 = x_6.x_GLF_uniform_int_values[14];
|
||||
let x_111 : i32 = x_6.x_GLF_uniform_int_values[15];
|
||||
let x_113 : i32 = x_6.x_GLF_uniform_int_values[16];
|
||||
let x_115 : i32 = x_6.x_GLF_uniform_int_values[17];
|
||||
let x_117 : i32 = x_6.x_GLF_uniform_int_values[18];
|
||||
let x_119 : i32 = x_6.x_GLF_uniform_int_values[1];
|
||||
ref = array<i32, 17>(x_87, x_89, x_91, x_93, x_95, x_97, x_99, x_101, x_103, x_105, x_107, x_109, x_111, x_113, x_115, x_117, x_119);
|
||||
let x_122 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
a = x_122;
|
||||
let x_124 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
i = x_124;
|
||||
loop {
|
||||
let x_129 : i32 = i;
|
||||
let x_131 : i32 = x_6.x_GLF_uniform_int_values[1];
|
||||
if ((x_129 < x_131)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
let x_134 : i32 = i;
|
||||
let x_135 : i32 = a;
|
||||
a = (x_135 - 1);
|
||||
A[x_134] = x_135;
|
||||
let x_138 : i32 = i;
|
||||
let x_140 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_142 : i32 = x_6.x_GLF_uniform_int_values[18];
|
||||
let x_144 : i32 = i;
|
||||
let x_146 : i32 = x_6.x_GLF_uniform_int_values[3];
|
||||
A[clamp(x_138, x_140, x_142)] = (x_144 + x_146);
|
||||
|
||||
continuing {
|
||||
let x_149 : i32 = i;
|
||||
i = (x_149 + 1);
|
||||
}
|
||||
}
|
||||
ok = true;
|
||||
let x_152 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
i_1 = x_152;
|
||||
loop {
|
||||
let x_157 : i32 = i_1;
|
||||
let x_159 : i32 = x_6.x_GLF_uniform_int_values[1];
|
||||
if ((x_157 < x_159)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
let x_162 : i32 = i_1;
|
||||
let x_164 : i32 = A[x_162];
|
||||
let x_165 : i32 = i_1;
|
||||
let x_167 : i32 = ref[x_165];
|
||||
if ((x_164 != x_167)) {
|
||||
ok = false;
|
||||
}
|
||||
|
||||
continuing {
|
||||
let x_171 : i32 = i_1;
|
||||
i_1 = (x_171 + 1);
|
||||
}
|
||||
}
|
||||
let x_174 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_175 : f32 = f32(x_174);
|
||||
x_GLF_color = vec4<f32>(x_175, x_175, x_175, x_175);
|
||||
let x_177 : bool = ok;
|
||||
if (x_177) {
|
||||
let x_181 : i32 = x_6.x_GLF_uniform_int_values[3];
|
||||
let x_184 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_187 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_190 : i32 = x_6.x_GLF_uniform_int_values[3];
|
||||
x_GLF_color = vec4<f32>(f32(x_181), f32(x_184), f32(x_187), f32(x_190));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
[[location(0)]]
|
||||
x_GLF_color_1 : vec4<f32>;
|
||||
};
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn main() -> main_out {
|
||||
main_1();
|
||||
return main_out(x_GLF_color);
|
||||
}
|
||||
@@ -1,126 +0,0 @@
|
||||
cbuffer cbuffer_x_6 : register(b0, space0) {
|
||||
uint4 x_6[19];
|
||||
};
|
||||
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
void main_1() {
|
||||
int A[17] = (int[17])0;
|
||||
int ref[17] = (int[17])0;
|
||||
int a = 0;
|
||||
int i = 0;
|
||||
bool ok = false;
|
||||
int i_1 = 0;
|
||||
const int x_52 = asint(x_6[2].x);
|
||||
const int x_54 = asint(x_6[2].x);
|
||||
const int x_56 = asint(x_6[2].x);
|
||||
const int x_58 = asint(x_6[2].x);
|
||||
const int x_60 = asint(x_6[2].x);
|
||||
const int x_62 = asint(x_6[2].x);
|
||||
const int x_64 = asint(x_6[2].x);
|
||||
const int x_66 = asint(x_6[2].x);
|
||||
const int x_68 = asint(x_6[2].x);
|
||||
const int x_70 = asint(x_6[2].x);
|
||||
const int x_72 = asint(x_6[2].x);
|
||||
const int x_74 = asint(x_6[2].x);
|
||||
const int x_76 = asint(x_6[2].x);
|
||||
const int x_78 = asint(x_6[2].x);
|
||||
const int x_80 = asint(x_6[2].x);
|
||||
const int x_82 = asint(x_6[2].x);
|
||||
const int x_84 = asint(x_6[2].x);
|
||||
const int tint_symbol_2[17] = {x_52, x_54, x_56, x_58, x_60, x_62, x_64, x_66, x_68, x_70, x_72, x_74, x_76, x_78, x_80, x_82, x_84};
|
||||
A = tint_symbol_2;
|
||||
const int x_87 = asint(x_6[3].x);
|
||||
const int x_89 = asint(x_6[4].x);
|
||||
const int x_91 = asint(x_6[5].x);
|
||||
const int x_93 = asint(x_6[6].x);
|
||||
const int x_95 = asint(x_6[7].x);
|
||||
const int x_97 = asint(x_6[8].x);
|
||||
const int x_99 = asint(x_6[9].x);
|
||||
const int x_101 = asint(x_6[10].x);
|
||||
const int x_103 = asint(x_6[11].x);
|
||||
const int x_105 = asint(x_6[12].x);
|
||||
const int x_107 = asint(x_6[13].x);
|
||||
const int x_109 = asint(x_6[14].x);
|
||||
const int x_111 = asint(x_6[15].x);
|
||||
const int x_113 = asint(x_6[16].x);
|
||||
const int x_115 = asint(x_6[17].x);
|
||||
const int x_117 = asint(x_6[18].x);
|
||||
const int x_119 = asint(x_6[1].x);
|
||||
const int tint_symbol_3[17] = {x_87, x_89, x_91, x_93, x_95, x_97, x_99, x_101, x_103, x_105, x_107, x_109, x_111, x_113, x_115, x_117, x_119};
|
||||
ref = tint_symbol_3;
|
||||
const int x_122 = asint(x_6[2].x);
|
||||
a = x_122;
|
||||
const int x_124 = asint(x_6[2].x);
|
||||
i = x_124;
|
||||
while (true) {
|
||||
const int x_129 = i;
|
||||
const int x_131 = asint(x_6[1].x);
|
||||
if ((x_129 < x_131)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
const int x_134 = i;
|
||||
const int x_135 = a;
|
||||
a = (x_135 - 1);
|
||||
A[x_134] = x_135;
|
||||
const int x_138 = i;
|
||||
const int x_140 = asint(x_6[2].x);
|
||||
const int x_142 = asint(x_6[18].x);
|
||||
const int x_144 = i;
|
||||
const int x_146 = asint(x_6[3].x);
|
||||
A[clamp(x_138, x_140, x_142)] = (x_144 + x_146);
|
||||
{
|
||||
i = (i + 1);
|
||||
}
|
||||
}
|
||||
ok = true;
|
||||
const int x_152 = asint(x_6[2].x);
|
||||
i_1 = x_152;
|
||||
while (true) {
|
||||
const int x_157 = i_1;
|
||||
const int x_159 = asint(x_6[1].x);
|
||||
if ((x_157 < x_159)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
const int x_164 = A[i_1];
|
||||
const int x_167 = ref[i_1];
|
||||
if ((x_164 != x_167)) {
|
||||
ok = false;
|
||||
}
|
||||
{
|
||||
i_1 = (i_1 + 1);
|
||||
}
|
||||
}
|
||||
const int x_174 = asint(x_6[2].x);
|
||||
const float x_175 = float(x_174);
|
||||
x_GLF_color = float4(x_175, x_175, x_175, x_175);
|
||||
if (ok) {
|
||||
const int x_181 = asint(x_6[3].x);
|
||||
const int x_184 = asint(x_6[2].x);
|
||||
const int x_187 = asint(x_6[2].x);
|
||||
const int x_190 = asint(x_6[3].x);
|
||||
x_GLF_color = float4(float(x_181), float(x_184), float(x_187), float(x_190));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol {
|
||||
float4 x_GLF_color_1 : SV_Target0;
|
||||
};
|
||||
|
||||
main_out main_inner() {
|
||||
main_1();
|
||||
const main_out tint_symbol_4 = {x_GLF_color};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
tint_symbol main() {
|
||||
const main_out inner_result = main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
@@ -1,144 +0,0 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_padded_array_element {
|
||||
/* 0x0000 */ int el;
|
||||
/* 0x0004 */ int8_t tint_pad[12];
|
||||
};
|
||||
struct tint_array_wrapper {
|
||||
/* 0x0000 */ tint_padded_array_element arr[19];
|
||||
};
|
||||
struct buf0 {
|
||||
/* 0x0000 */ tint_array_wrapper x_GLF_uniform_int_values;
|
||||
};
|
||||
struct tint_array_wrapper_1 {
|
||||
int arr[17];
|
||||
};
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
float4 x_GLF_color_1 [[color(0)]];
|
||||
};
|
||||
|
||||
void main_1(constant buf0& x_6, thread float4* const tint_symbol_5) {
|
||||
tint_array_wrapper_1 A = {};
|
||||
tint_array_wrapper_1 ref = {};
|
||||
int a = 0;
|
||||
int i = 0;
|
||||
bool ok = false;
|
||||
int i_1 = 0;
|
||||
int const x_52 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_54 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_56 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_58 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_60 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_62 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_64 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_66 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_68 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_70 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_72 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_74 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_76 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_78 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_80 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_82 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_84 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
tint_array_wrapper_1 const tint_symbol_2 = {.arr={x_52, x_54, x_56, x_58, x_60, x_62, x_64, x_66, x_68, x_70, x_72, x_74, x_76, x_78, x_80, x_82, x_84}};
|
||||
A = tint_symbol_2;
|
||||
int const x_87 = x_6.x_GLF_uniform_int_values.arr[3].el;
|
||||
int const x_89 = x_6.x_GLF_uniform_int_values.arr[4].el;
|
||||
int const x_91 = x_6.x_GLF_uniform_int_values.arr[5].el;
|
||||
int const x_93 = x_6.x_GLF_uniform_int_values.arr[6].el;
|
||||
int const x_95 = x_6.x_GLF_uniform_int_values.arr[7].el;
|
||||
int const x_97 = x_6.x_GLF_uniform_int_values.arr[8].el;
|
||||
int const x_99 = x_6.x_GLF_uniform_int_values.arr[9].el;
|
||||
int const x_101 = x_6.x_GLF_uniform_int_values.arr[10].el;
|
||||
int const x_103 = x_6.x_GLF_uniform_int_values.arr[11].el;
|
||||
int const x_105 = x_6.x_GLF_uniform_int_values.arr[12].el;
|
||||
int const x_107 = x_6.x_GLF_uniform_int_values.arr[13].el;
|
||||
int const x_109 = x_6.x_GLF_uniform_int_values.arr[14].el;
|
||||
int const x_111 = x_6.x_GLF_uniform_int_values.arr[15].el;
|
||||
int const x_113 = x_6.x_GLF_uniform_int_values.arr[16].el;
|
||||
int const x_115 = x_6.x_GLF_uniform_int_values.arr[17].el;
|
||||
int const x_117 = x_6.x_GLF_uniform_int_values.arr[18].el;
|
||||
int const x_119 = x_6.x_GLF_uniform_int_values.arr[1].el;
|
||||
tint_array_wrapper_1 const tint_symbol_3 = {.arr={x_87, x_89, x_91, x_93, x_95, x_97, x_99, x_101, x_103, x_105, x_107, x_109, x_111, x_113, x_115, x_117, x_119}};
|
||||
ref = tint_symbol_3;
|
||||
int const x_122 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
a = x_122;
|
||||
int const x_124 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
i = x_124;
|
||||
while (true) {
|
||||
int const x_129 = i;
|
||||
int const x_131 = x_6.x_GLF_uniform_int_values.arr[1].el;
|
||||
if ((x_129 < x_131)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
int const x_134 = i;
|
||||
int const x_135 = a;
|
||||
a = as_type<int>((as_type<uint>(x_135) - as_type<uint>(1)));
|
||||
A.arr[x_134] = x_135;
|
||||
int const x_138 = i;
|
||||
int const x_140 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_142 = x_6.x_GLF_uniform_int_values.arr[18].el;
|
||||
int const x_144 = i;
|
||||
int const x_146 = x_6.x_GLF_uniform_int_values.arr[3].el;
|
||||
A.arr[clamp(x_138, x_140, x_142)] = as_type<int>((as_type<uint>(x_144) + as_type<uint>(x_146)));
|
||||
{
|
||||
int const x_149 = i;
|
||||
i = as_type<int>((as_type<uint>(x_149) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
ok = true;
|
||||
int const x_152 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
i_1 = x_152;
|
||||
while (true) {
|
||||
int const x_157 = i_1;
|
||||
int const x_159 = x_6.x_GLF_uniform_int_values.arr[1].el;
|
||||
if ((x_157 < x_159)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
int const x_162 = i_1;
|
||||
int const x_164 = A.arr[x_162];
|
||||
int const x_165 = i_1;
|
||||
int const x_167 = ref.arr[x_165];
|
||||
if ((x_164 != x_167)) {
|
||||
ok = false;
|
||||
}
|
||||
{
|
||||
int const x_171 = i_1;
|
||||
i_1 = as_type<int>((as_type<uint>(x_171) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_174 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
float const x_175 = float(x_174);
|
||||
*(tint_symbol_5) = float4(x_175, x_175, x_175, x_175);
|
||||
bool const x_177 = ok;
|
||||
if (x_177) {
|
||||
int const x_181 = x_6.x_GLF_uniform_int_values.arr[3].el;
|
||||
int const x_184 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_187 = x_6.x_GLF_uniform_int_values.arr[2].el;
|
||||
int const x_190 = x_6.x_GLF_uniform_int_values.arr[3].el;
|
||||
*(tint_symbol_5) = float4(float(x_181), float(x_184), float(x_187), float(x_190));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
main_out tint_symbol_inner(constant buf0& x_6, thread float4* const tint_symbol_6) {
|
||||
main_1(x_6, tint_symbol_6);
|
||||
main_out const tint_symbol_4 = {.x_GLF_color_1=*(tint_symbol_6)};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
fragment tint_symbol_1 tint_symbol(constant buf0& x_6 [[buffer(0)]]) {
|
||||
thread float4 tint_symbol_7 = 0.0f;
|
||||
main_out const inner_result = tint_symbol_inner(x_6, &(tint_symbol_7));
|
||||
tint_symbol_1 wrapper_result = {};
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
@@ -1,292 +0,0 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 214
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%152 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %main "main" %x_GLF_color_1_1
|
||||
OpExecutionMode %main OriginUpperLeft
|
||||
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
|
||||
OpName %buf0 "buf0"
|
||||
OpMemberName %buf0 0 "x_GLF_uniform_int_values"
|
||||
OpName %x_6 "x_6"
|
||||
OpName %x_GLF_color "x_GLF_color"
|
||||
OpName %main_1 "main_1"
|
||||
OpName %A "A"
|
||||
OpName %ref "ref"
|
||||
OpName %a "a"
|
||||
OpName %i "i"
|
||||
OpName %ok "ok"
|
||||
OpName %i_1 "i_1"
|
||||
OpName %main_out "main_out"
|
||||
OpMemberName %main_out 0 "x_GLF_color_1"
|
||||
OpName %main_inner "main_inner"
|
||||
OpName %main "main"
|
||||
OpDecorate %x_GLF_color_1_1 Location 0
|
||||
OpDecorate %buf0 Block
|
||||
OpMemberDecorate %buf0 0 Offset 0
|
||||
OpDecorate %_arr_int_uint_19 ArrayStride 16
|
||||
OpDecorate %x_6 NonWritable
|
||||
OpDecorate %x_6 DescriptorSet 0
|
||||
OpDecorate %x_6 Binding 0
|
||||
OpDecorate %_arr_int_uint_17 ArrayStride 4
|
||||
OpMemberDecorate %main_out 0 Offset 0
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%5 = OpConstantNull %v4float
|
||||
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
|
||||
%int = OpTypeInt 32 1
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_19 = OpConstant %uint 19
|
||||
%_arr_int_uint_19 = OpTypeArray %int %uint_19
|
||||
%buf0 = OpTypeStruct %_arr_int_uint_19
|
||||
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
|
||||
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
|
||||
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
||||
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
|
||||
%void = OpTypeVoid
|
||||
%15 = OpTypeFunction %void
|
||||
%uint_17 = OpConstant %uint 17
|
||||
%_arr_int_uint_17 = OpTypeArray %int %uint_17
|
||||
%_ptr_Function__arr_int_uint_17 = OpTypePointer Function %_arr_int_uint_17
|
||||
%23 = OpConstantNull %_arr_int_uint_17
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%27 = OpConstantNull %int
|
||||
%bool = OpTypeBool
|
||||
%_ptr_Function_bool = OpTypePointer Function %bool
|
||||
%32 = OpConstantNull %bool
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%int_2 = OpConstant %int 2
|
||||
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%int_5 = OpConstant %int 5
|
||||
%int_6 = OpConstant %int 6
|
||||
%int_7 = OpConstant %int 7
|
||||
%int_8 = OpConstant %int 8
|
||||
%int_9 = OpConstant %int 9
|
||||
%int_10 = OpConstant %int 10
|
||||
%int_11 = OpConstant %int 11
|
||||
%int_12 = OpConstant %int 12
|
||||
%int_13 = OpConstant %int 13
|
||||
%int_14 = OpConstant %int 14
|
||||
%int_15 = OpConstant %int 15
|
||||
%int_16 = OpConstant %int 16
|
||||
%int_17 = OpConstant %int 17
|
||||
%int_18 = OpConstant %int 18
|
||||
%int_1 = OpConstant %int 1
|
||||
%true = OpConstantTrue %bool
|
||||
%false = OpConstantFalse %bool
|
||||
%main_out = OpTypeStruct %v4float
|
||||
%203 = OpTypeFunction %main_out
|
||||
%main_1 = OpFunction %void None %15
|
||||
%18 = OpLabel
|
||||
%A = OpVariable %_ptr_Function__arr_int_uint_17 Function %23
|
||||
%ref = OpVariable %_ptr_Function__arr_int_uint_17 Function %23
|
||||
%a = OpVariable %_ptr_Function_int Function %27
|
||||
%i = OpVariable %_ptr_Function_int Function %27
|
||||
%ok = OpVariable %_ptr_Function_bool Function %32
|
||||
%i_1 = OpVariable %_ptr_Function_int Function %27
|
||||
%37 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%38 = OpLoad %int %37
|
||||
%39 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%40 = OpLoad %int %39
|
||||
%41 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%42 = OpLoad %int %41
|
||||
%43 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%44 = OpLoad %int %43
|
||||
%45 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%46 = OpLoad %int %45
|
||||
%47 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%48 = OpLoad %int %47
|
||||
%49 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%50 = OpLoad %int %49
|
||||
%51 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%52 = OpLoad %int %51
|
||||
%53 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%54 = OpLoad %int %53
|
||||
%55 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%56 = OpLoad %int %55
|
||||
%57 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%58 = OpLoad %int %57
|
||||
%59 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%60 = OpLoad %int %59
|
||||
%61 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%62 = OpLoad %int %61
|
||||
%63 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%64 = OpLoad %int %63
|
||||
%65 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%66 = OpLoad %int %65
|
||||
%67 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%68 = OpLoad %int %67
|
||||
%69 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%70 = OpLoad %int %69
|
||||
%71 = OpCompositeConstruct %_arr_int_uint_17 %38 %40 %42 %44 %46 %48 %50 %52 %54 %56 %58 %60 %62 %64 %66 %68 %70
|
||||
OpStore %A %71
|
||||
%73 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_3
|
||||
%74 = OpLoad %int %73
|
||||
%76 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_4
|
||||
%77 = OpLoad %int %76
|
||||
%79 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_5
|
||||
%80 = OpLoad %int %79
|
||||
%82 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_6
|
||||
%83 = OpLoad %int %82
|
||||
%85 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_7
|
||||
%86 = OpLoad %int %85
|
||||
%88 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_8
|
||||
%89 = OpLoad %int %88
|
||||
%91 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_9
|
||||
%92 = OpLoad %int %91
|
||||
%94 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_10
|
||||
%95 = OpLoad %int %94
|
||||
%97 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_11
|
||||
%98 = OpLoad %int %97
|
||||
%100 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_12
|
||||
%101 = OpLoad %int %100
|
||||
%103 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_13
|
||||
%104 = OpLoad %int %103
|
||||
%106 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_14
|
||||
%107 = OpLoad %int %106
|
||||
%109 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_15
|
||||
%110 = OpLoad %int %109
|
||||
%112 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_16
|
||||
%113 = OpLoad %int %112
|
||||
%115 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_17
|
||||
%116 = OpLoad %int %115
|
||||
%118 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_18
|
||||
%119 = OpLoad %int %118
|
||||
%121 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
|
||||
%122 = OpLoad %int %121
|
||||
%123 = OpCompositeConstruct %_arr_int_uint_17 %74 %77 %80 %83 %86 %89 %92 %95 %98 %101 %104 %107 %110 %113 %116 %119 %122
|
||||
OpStore %ref %123
|
||||
%124 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%125 = OpLoad %int %124
|
||||
OpStore %a %125
|
||||
%126 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%127 = OpLoad %int %126
|
||||
OpStore %i %127
|
||||
OpBranch %128
|
||||
%128 = OpLabel
|
||||
OpLoopMerge %129 %130 None
|
||||
OpBranch %131
|
||||
%131 = OpLabel
|
||||
%132 = OpLoad %int %i
|
||||
%133 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
|
||||
%134 = OpLoad %int %133
|
||||
%135 = OpSLessThan %bool %132 %134
|
||||
OpSelectionMerge %136 None
|
||||
OpBranchConditional %135 %137 %138
|
||||
%137 = OpLabel
|
||||
OpBranch %136
|
||||
%138 = OpLabel
|
||||
OpBranch %129
|
||||
%136 = OpLabel
|
||||
%139 = OpLoad %int %i
|
||||
%140 = OpLoad %int %a
|
||||
%141 = OpISub %int %140 %int_1
|
||||
OpStore %a %141
|
||||
%142 = OpAccessChain %_ptr_Function_int %A %139
|
||||
OpStore %142 %140
|
||||
%143 = OpLoad %int %i
|
||||
%144 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%145 = OpLoad %int %144
|
||||
%146 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_18
|
||||
%147 = OpLoad %int %146
|
||||
%148 = OpLoad %int %i
|
||||
%149 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_3
|
||||
%150 = OpLoad %int %149
|
||||
%151 = OpExtInst %int %152 SClamp %143 %145 %147
|
||||
%153 = OpAccessChain %_ptr_Function_int %A %151
|
||||
%154 = OpIAdd %int %148 %150
|
||||
OpStore %153 %154
|
||||
OpBranch %130
|
||||
%130 = OpLabel
|
||||
%155 = OpLoad %int %i
|
||||
%156 = OpIAdd %int %155 %int_1
|
||||
OpStore %i %156
|
||||
OpBranch %128
|
||||
%129 = OpLabel
|
||||
OpStore %ok %true
|
||||
%158 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%159 = OpLoad %int %158
|
||||
OpStore %i_1 %159
|
||||
OpBranch %160
|
||||
%160 = OpLabel
|
||||
OpLoopMerge %161 %162 None
|
||||
OpBranch %163
|
||||
%163 = OpLabel
|
||||
%164 = OpLoad %int %i_1
|
||||
%165 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
|
||||
%166 = OpLoad %int %165
|
||||
%167 = OpSLessThan %bool %164 %166
|
||||
OpSelectionMerge %168 None
|
||||
OpBranchConditional %167 %169 %170
|
||||
%169 = OpLabel
|
||||
OpBranch %168
|
||||
%170 = OpLabel
|
||||
OpBranch %161
|
||||
%168 = OpLabel
|
||||
%171 = OpLoad %int %i_1
|
||||
%172 = OpAccessChain %_ptr_Function_int %A %171
|
||||
%173 = OpLoad %int %172
|
||||
%174 = OpLoad %int %i_1
|
||||
%175 = OpAccessChain %_ptr_Function_int %ref %174
|
||||
%176 = OpLoad %int %175
|
||||
%177 = OpINotEqual %bool %173 %176
|
||||
OpSelectionMerge %178 None
|
||||
OpBranchConditional %177 %179 %178
|
||||
%179 = OpLabel
|
||||
OpStore %ok %false
|
||||
OpBranch %178
|
||||
%178 = OpLabel
|
||||
OpBranch %162
|
||||
%162 = OpLabel
|
||||
%181 = OpLoad %int %i_1
|
||||
%182 = OpIAdd %int %181 %int_1
|
||||
OpStore %i_1 %182
|
||||
OpBranch %160
|
||||
%161 = OpLabel
|
||||
%183 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%184 = OpLoad %int %183
|
||||
%185 = OpConvertSToF %float %184
|
||||
%186 = OpCompositeConstruct %v4float %185 %185 %185 %185
|
||||
OpStore %x_GLF_color %186
|
||||
%187 = OpLoad %bool %ok
|
||||
OpSelectionMerge %188 None
|
||||
OpBranchConditional %187 %189 %188
|
||||
%189 = OpLabel
|
||||
%190 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_3
|
||||
%191 = OpLoad %int %190
|
||||
%192 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%193 = OpLoad %int %192
|
||||
%194 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_2
|
||||
%195 = OpLoad %int %194
|
||||
%196 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_3
|
||||
%197 = OpLoad %int %196
|
||||
%198 = OpConvertSToF %float %191
|
||||
%199 = OpConvertSToF %float %193
|
||||
%200 = OpConvertSToF %float %195
|
||||
%201 = OpConvertSToF %float %197
|
||||
%202 = OpCompositeConstruct %v4float %198 %199 %200 %201
|
||||
OpStore %x_GLF_color %202
|
||||
OpBranch %188
|
||||
%188 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %main_out None %203
|
||||
%206 = OpLabel
|
||||
%207 = OpFunctionCall %void %main_1
|
||||
%208 = OpLoad %v4float %x_GLF_color
|
||||
%209 = OpCompositeConstruct %main_out %208
|
||||
OpReturnValue %209
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %15
|
||||
%211 = OpLabel
|
||||
%212 = OpFunctionCall %main_out %main_inner
|
||||
%213 = OpCompositeExtract %v4float %212 0
|
||||
OpStore %x_GLF_color_1_1 %213
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,128 +0,0 @@
|
||||
type Arr = [[stride(16)]] array<i32, 19>;
|
||||
|
||||
[[block]]
|
||||
struct buf0 {
|
||||
x_GLF_uniform_int_values : Arr;
|
||||
};
|
||||
|
||||
[[group(0), binding(0)]] var<uniform> x_6 : buf0;
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
fn main_1() {
|
||||
var A : array<i32, 17>;
|
||||
var ref : array<i32, 17>;
|
||||
var a : i32;
|
||||
var i : i32;
|
||||
var ok : bool;
|
||||
var i_1 : i32;
|
||||
let x_52 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_54 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_56 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_58 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_60 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_62 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_64 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_66 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_68 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_70 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_72 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_74 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_76 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_78 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_80 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_82 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_84 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
A = array<i32, 17>(x_52, x_54, x_56, x_58, x_60, x_62, x_64, x_66, x_68, x_70, x_72, x_74, x_76, x_78, x_80, x_82, x_84);
|
||||
let x_87 : i32 = x_6.x_GLF_uniform_int_values[3];
|
||||
let x_89 : i32 = x_6.x_GLF_uniform_int_values[4];
|
||||
let x_91 : i32 = x_6.x_GLF_uniform_int_values[5];
|
||||
let x_93 : i32 = x_6.x_GLF_uniform_int_values[6];
|
||||
let x_95 : i32 = x_6.x_GLF_uniform_int_values[7];
|
||||
let x_97 : i32 = x_6.x_GLF_uniform_int_values[8];
|
||||
let x_99 : i32 = x_6.x_GLF_uniform_int_values[9];
|
||||
let x_101 : i32 = x_6.x_GLF_uniform_int_values[10];
|
||||
let x_103 : i32 = x_6.x_GLF_uniform_int_values[11];
|
||||
let x_105 : i32 = x_6.x_GLF_uniform_int_values[12];
|
||||
let x_107 : i32 = x_6.x_GLF_uniform_int_values[13];
|
||||
let x_109 : i32 = x_6.x_GLF_uniform_int_values[14];
|
||||
let x_111 : i32 = x_6.x_GLF_uniform_int_values[15];
|
||||
let x_113 : i32 = x_6.x_GLF_uniform_int_values[16];
|
||||
let x_115 : i32 = x_6.x_GLF_uniform_int_values[17];
|
||||
let x_117 : i32 = x_6.x_GLF_uniform_int_values[18];
|
||||
let x_119 : i32 = x_6.x_GLF_uniform_int_values[1];
|
||||
ref = array<i32, 17>(x_87, x_89, x_91, x_93, x_95, x_97, x_99, x_101, x_103, x_105, x_107, x_109, x_111, x_113, x_115, x_117, x_119);
|
||||
let x_122 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
a = x_122;
|
||||
let x_124 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
i = x_124;
|
||||
loop {
|
||||
let x_129 : i32 = i;
|
||||
let x_131 : i32 = x_6.x_GLF_uniform_int_values[1];
|
||||
if ((x_129 < x_131)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
let x_134 : i32 = i;
|
||||
let x_135 : i32 = a;
|
||||
a = (x_135 - 1);
|
||||
A[x_134] = x_135;
|
||||
let x_138 : i32 = i;
|
||||
let x_140 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_142 : i32 = x_6.x_GLF_uniform_int_values[18];
|
||||
let x_144 : i32 = i;
|
||||
let x_146 : i32 = x_6.x_GLF_uniform_int_values[3];
|
||||
A[clamp(x_138, x_140, x_142)] = (x_144 + x_146);
|
||||
|
||||
continuing {
|
||||
let x_149 : i32 = i;
|
||||
i = (x_149 + 1);
|
||||
}
|
||||
}
|
||||
ok = true;
|
||||
let x_152 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
i_1 = x_152;
|
||||
loop {
|
||||
let x_157 : i32 = i_1;
|
||||
let x_159 : i32 = x_6.x_GLF_uniform_int_values[1];
|
||||
if ((x_157 < x_159)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
let x_162 : i32 = i_1;
|
||||
let x_164 : i32 = A[x_162];
|
||||
let x_165 : i32 = i_1;
|
||||
let x_167 : i32 = ref[x_165];
|
||||
if ((x_164 != x_167)) {
|
||||
ok = false;
|
||||
}
|
||||
|
||||
continuing {
|
||||
let x_171 : i32 = i_1;
|
||||
i_1 = (x_171 + 1);
|
||||
}
|
||||
}
|
||||
let x_174 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_175 : f32 = f32(x_174);
|
||||
x_GLF_color = vec4<f32>(x_175, x_175, x_175, x_175);
|
||||
let x_177 : bool = ok;
|
||||
if (x_177) {
|
||||
let x_181 : i32 = x_6.x_GLF_uniform_int_values[3];
|
||||
let x_184 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_187 : i32 = x_6.x_GLF_uniform_int_values[2];
|
||||
let x_190 : i32 = x_6.x_GLF_uniform_int_values[3];
|
||||
x_GLF_color = vec4<f32>(f32(x_181), f32(x_184), f32(x_187), f32(x_190));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
[[location(0)]]
|
||||
x_GLF_color_1 : vec4<f32>;
|
||||
};
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn main() -> main_out {
|
||||
main_1();
|
||||
return main_out(x_GLF_color);
|
||||
}
|
||||
Reference in New Issue
Block a user