mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +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,82 +0,0 @@
|
||||
cbuffer cbuffer_x_6 : register(b0, space0) {
|
||||
uint4 x_6[1];
|
||||
};
|
||||
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
float4 returnRed_() {
|
||||
bool x_33 = false;
|
||||
float4 x_34 = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
float4 x_48 = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
bool x_36_phi = false;
|
||||
float4 x_51_phi = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
x_36_phi = false;
|
||||
while (true) {
|
||||
float4 x_48_phi = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
bool x_49_phi = false;
|
||||
const bool x_36 = x_36_phi;
|
||||
while (true) {
|
||||
const int x_44 = asint(x_6[0].x);
|
||||
if ((x_44 == 1)) {
|
||||
x_33 = true;
|
||||
x_34 = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_48_phi = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_49_phi = true;
|
||||
break;
|
||||
}
|
||||
{
|
||||
x_48_phi = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
x_49_phi = false;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
x_48 = x_48_phi;
|
||||
const bool x_49 = x_49_phi;
|
||||
x_51_phi = x_48;
|
||||
if (x_49) {
|
||||
break;
|
||||
}
|
||||
x_33 = true;
|
||||
x_34 = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_51_phi = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
break;
|
||||
{
|
||||
x_36_phi = false;
|
||||
}
|
||||
}
|
||||
return x_51_phi;
|
||||
}
|
||||
|
||||
void main_1() {
|
||||
while (true) {
|
||||
const float4 x_30 = returnRed_();
|
||||
x_GLF_color = x_30;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
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_2 = {x_GLF_color};
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
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,86 +0,0 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct buf0 {
|
||||
/* 0x0000 */ int zero;
|
||||
};
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
float4 x_GLF_color_1 [[color(0)]];
|
||||
};
|
||||
|
||||
float4 returnRed_(constant buf0& x_6) {
|
||||
bool x_33 = false;
|
||||
float4 x_34 = 0.0f;
|
||||
float4 x_48 = 0.0f;
|
||||
bool x_36_phi = false;
|
||||
float4 x_51_phi = 0.0f;
|
||||
x_36_phi = false;
|
||||
while (true) {
|
||||
float4 x_48_phi = 0.0f;
|
||||
bool x_49_phi = false;
|
||||
bool const x_36 = x_36_phi;
|
||||
while (true) {
|
||||
int const x_44 = x_6.zero;
|
||||
if ((x_44 == 1)) {
|
||||
x_33 = true;
|
||||
x_34 = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_48_phi = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_49_phi = true;
|
||||
break;
|
||||
}
|
||||
{
|
||||
x_48_phi = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
x_49_phi = false;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
x_48 = x_48_phi;
|
||||
bool const x_49 = x_49_phi;
|
||||
x_51_phi = x_48;
|
||||
if (x_49) {
|
||||
break;
|
||||
}
|
||||
x_33 = true;
|
||||
x_34 = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_51_phi = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
break;
|
||||
{
|
||||
x_36_phi = false;
|
||||
}
|
||||
}
|
||||
float4 const x_51 = x_51_phi;
|
||||
return x_51;
|
||||
}
|
||||
|
||||
void main_1(constant buf0& x_6, thread float4* const tint_symbol_3) {
|
||||
while (true) {
|
||||
float4 const x_30 = returnRed_(x_6);
|
||||
*(tint_symbol_3) = x_30;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
main_out tint_symbol_inner(constant buf0& x_6, thread float4* const tint_symbol_4) {
|
||||
main_1(x_6, tint_symbol_4);
|
||||
main_out const tint_symbol_2 = {.x_GLF_color_1=*(tint_symbol_4)};
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
fragment tint_symbol_1 tint_symbol(constant buf0& x_6 [[buffer(0)]]) {
|
||||
thread float4 tint_symbol_5 = 0.0f;
|
||||
main_out const inner_result = tint_symbol_inner(x_6, &(tint_symbol_5));
|
||||
tint_symbol_1 wrapper_result = {};
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
@@ -1,161 +0,0 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 79
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 "zero"
|
||||
OpName %x_6 "x_6"
|
||||
OpName %x_GLF_color "x_GLF_color"
|
||||
OpName %returnRed_ "returnRed_"
|
||||
OpName %x_33 "x_33"
|
||||
OpName %x_34 "x_34"
|
||||
OpName %x_48 "x_48"
|
||||
OpName %x_36_phi "x_36_phi"
|
||||
OpName %x_51_phi "x_51_phi"
|
||||
OpName %x_48_phi "x_48_phi"
|
||||
OpName %x_49_phi "x_49_phi"
|
||||
OpName %main_1 "main_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 %x_6 NonWritable
|
||||
OpDecorate %x_6 DescriptorSet 0
|
||||
OpDecorate %x_6 Binding 0
|
||||
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
|
||||
%buf0 = OpTypeStruct %int
|
||||
%_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
|
||||
%12 = OpTypeFunction %v4float
|
||||
%bool = OpTypeBool
|
||||
%false = OpConstantFalse %bool
|
||||
%_ptr_Function_bool = OpTypePointer Function %bool
|
||||
%19 = OpConstantNull %bool
|
||||
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
||||
%int_1 = OpConstant %int 1
|
||||
%true = OpConstantTrue %bool
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_0 = OpConstant %float 0
|
||||
%48 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
||||
%49 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
|
||||
%void = OpTypeVoid
|
||||
%56 = OpTypeFunction %void
|
||||
%main_out = OpTypeStruct %v4float
|
||||
%68 = OpTypeFunction %main_out
|
||||
%returnRed_ = OpFunction %v4float None %12
|
||||
%14 = OpLabel
|
||||
%x_33 = OpVariable %_ptr_Function_bool Function %19
|
||||
%x_34 = OpVariable %_ptr_Function_v4float Function %5
|
||||
%x_48 = OpVariable %_ptr_Function_v4float Function %5
|
||||
%x_36_phi = OpVariable %_ptr_Function_bool Function %19
|
||||
%x_51_phi = OpVariable %_ptr_Function_v4float Function %5
|
||||
%x_48_phi = OpVariable %_ptr_Function_v4float Function %5
|
||||
%x_49_phi = OpVariable %_ptr_Function_bool Function %19
|
||||
OpStore %x_33 %false
|
||||
OpStore %x_36_phi %false
|
||||
OpBranch %25
|
||||
%25 = OpLabel
|
||||
OpLoopMerge %26 %27 None
|
||||
OpBranch %28
|
||||
%28 = OpLabel
|
||||
%31 = OpLoad %bool %x_36_phi
|
||||
OpBranch %32
|
||||
%32 = OpLabel
|
||||
OpLoopMerge %33 %34 None
|
||||
OpBranch %35
|
||||
%35 = OpLabel
|
||||
%39 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0
|
||||
%40 = OpLoad %int %39
|
||||
%42 = OpIEqual %bool %40 %int_1
|
||||
OpSelectionMerge %43 None
|
||||
OpBranchConditional %42 %44 %43
|
||||
%44 = OpLabel
|
||||
OpStore %x_33 %true
|
||||
OpStore %x_34 %48
|
||||
OpStore %x_48_phi %48
|
||||
OpStore %x_49_phi %true
|
||||
OpBranch %33
|
||||
%43 = OpLabel
|
||||
OpBranch %34
|
||||
%34 = OpLabel
|
||||
OpStore %x_48_phi %49
|
||||
OpStore %x_49_phi %false
|
||||
OpBranchConditional %false %32 %33
|
||||
%33 = OpLabel
|
||||
%50 = OpLoad %v4float %x_48_phi
|
||||
OpStore %x_48 %50
|
||||
%51 = OpLoad %bool %x_49_phi
|
||||
%52 = OpLoad %v4float %x_48
|
||||
OpStore %x_51_phi %52
|
||||
OpSelectionMerge %53 None
|
||||
OpBranchConditional %51 %54 %53
|
||||
%54 = OpLabel
|
||||
OpBranch %26
|
||||
%53 = OpLabel
|
||||
OpStore %x_33 %true
|
||||
OpStore %x_34 %48
|
||||
OpStore %x_51_phi %48
|
||||
OpBranch %26
|
||||
%27 = OpLabel
|
||||
OpStore %x_36_phi %false
|
||||
OpBranch %25
|
||||
%26 = OpLabel
|
||||
%55 = OpLoad %v4float %x_51_phi
|
||||
OpReturnValue %55
|
||||
OpFunctionEnd
|
||||
%main_1 = OpFunction %void None %56
|
||||
%59 = OpLabel
|
||||
OpBranch %60
|
||||
%60 = OpLabel
|
||||
OpLoopMerge %61 %62 None
|
||||
OpBranch %63
|
||||
%63 = OpLabel
|
||||
%64 = OpFunctionCall %v4float %returnRed_
|
||||
OpStore %x_GLF_color %64
|
||||
OpSelectionMerge %65 None
|
||||
OpBranchConditional %false %66 %67
|
||||
%66 = OpLabel
|
||||
OpBranch %65
|
||||
%67 = OpLabel
|
||||
OpBranch %61
|
||||
%65 = OpLabel
|
||||
OpBranch %62
|
||||
%62 = OpLabel
|
||||
OpBranch %60
|
||||
%61 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %main_out None %68
|
||||
%71 = OpLabel
|
||||
%72 = OpFunctionCall %void %main_1
|
||||
%73 = OpLoad %v4float %x_GLF_color
|
||||
%74 = OpCompositeConstruct %main_out %73
|
||||
OpReturnValue %74
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %56
|
||||
%76 = OpLabel
|
||||
%77 = OpFunctionCall %main_out %main_inner
|
||||
%78 = OpCompositeExtract %v4float %77 0
|
||||
OpStore %x_GLF_color_1_1 %78
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,80 +0,0 @@
|
||||
[[block]]
|
||||
struct buf0 {
|
||||
zero : i32;
|
||||
};
|
||||
|
||||
[[group(0), binding(0)]] var<uniform> x_6 : buf0;
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
fn returnRed_() -> vec4<f32> {
|
||||
var x_33 : bool = false;
|
||||
var x_34 : vec4<f32>;
|
||||
var x_48 : vec4<f32>;
|
||||
var x_36_phi : bool;
|
||||
var x_51_phi : vec4<f32>;
|
||||
x_36_phi = false;
|
||||
loop {
|
||||
var x_48_phi : vec4<f32>;
|
||||
var x_49_phi : bool;
|
||||
let x_36 : bool = x_36_phi;
|
||||
loop {
|
||||
let x_44 : i32 = x_6.zero;
|
||||
if ((x_44 == 1)) {
|
||||
x_33 = true;
|
||||
x_34 = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
x_48_phi = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
x_49_phi = true;
|
||||
break;
|
||||
}
|
||||
|
||||
continuing {
|
||||
x_48_phi = vec4<f32>(0.0, 0.0, 0.0, 0.0);
|
||||
x_49_phi = false;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
x_48 = x_48_phi;
|
||||
let x_49 : bool = x_49_phi;
|
||||
x_51_phi = x_48;
|
||||
if (x_49) {
|
||||
break;
|
||||
}
|
||||
x_33 = true;
|
||||
x_34 = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
x_51_phi = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
break;
|
||||
|
||||
continuing {
|
||||
x_36_phi = false;
|
||||
}
|
||||
}
|
||||
let x_51 : vec4<f32> = x_51_phi;
|
||||
return x_51;
|
||||
}
|
||||
|
||||
fn main_1() {
|
||||
loop {
|
||||
let x_30 : vec4<f32> = returnRed_();
|
||||
x_GLF_color = x_30;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
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,82 +0,0 @@
|
||||
cbuffer cbuffer_x_6 : register(b0, space0) {
|
||||
uint4 x_6[1];
|
||||
};
|
||||
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
float4 returnRed_() {
|
||||
bool x_33 = false;
|
||||
float4 x_34 = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
float4 x_48 = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
bool x_36_phi = false;
|
||||
float4 x_51_phi = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
x_36_phi = false;
|
||||
while (true) {
|
||||
float4 x_48_phi = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
bool x_49_phi = false;
|
||||
const bool x_36 = x_36_phi;
|
||||
while (true) {
|
||||
const int x_44 = asint(x_6[0].x);
|
||||
if ((x_44 == 1)) {
|
||||
x_33 = true;
|
||||
x_34 = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_48_phi = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_49_phi = true;
|
||||
break;
|
||||
}
|
||||
{
|
||||
x_48_phi = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
x_49_phi = false;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
x_48 = x_48_phi;
|
||||
const bool x_49 = x_49_phi;
|
||||
x_51_phi = x_48;
|
||||
if (x_49) {
|
||||
break;
|
||||
}
|
||||
x_33 = true;
|
||||
x_34 = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_51_phi = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
break;
|
||||
{
|
||||
x_36_phi = false;
|
||||
}
|
||||
}
|
||||
return x_51_phi;
|
||||
}
|
||||
|
||||
void main_1() {
|
||||
while (true) {
|
||||
const float4 x_30 = returnRed_();
|
||||
x_GLF_color = x_30;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
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_2 = {x_GLF_color};
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
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,86 +0,0 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct buf0 {
|
||||
/* 0x0000 */ int zero;
|
||||
};
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
float4 x_GLF_color_1 [[color(0)]];
|
||||
};
|
||||
|
||||
float4 returnRed_(constant buf0& x_6) {
|
||||
bool x_33 = false;
|
||||
float4 x_34 = 0.0f;
|
||||
float4 x_48 = 0.0f;
|
||||
bool x_36_phi = false;
|
||||
float4 x_51_phi = 0.0f;
|
||||
x_36_phi = false;
|
||||
while (true) {
|
||||
float4 x_48_phi = 0.0f;
|
||||
bool x_49_phi = false;
|
||||
bool const x_36 = x_36_phi;
|
||||
while (true) {
|
||||
int const x_44 = x_6.zero;
|
||||
if ((x_44 == 1)) {
|
||||
x_33 = true;
|
||||
x_34 = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_48_phi = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_49_phi = true;
|
||||
break;
|
||||
}
|
||||
{
|
||||
x_48_phi = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
x_49_phi = false;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
x_48 = x_48_phi;
|
||||
bool const x_49 = x_49_phi;
|
||||
x_51_phi = x_48;
|
||||
if (x_49) {
|
||||
break;
|
||||
}
|
||||
x_33 = true;
|
||||
x_34 = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
x_51_phi = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
break;
|
||||
{
|
||||
x_36_phi = false;
|
||||
}
|
||||
}
|
||||
float4 const x_51 = x_51_phi;
|
||||
return x_51;
|
||||
}
|
||||
|
||||
void main_1(constant buf0& x_6, thread float4* const tint_symbol_3) {
|
||||
while (true) {
|
||||
float4 const x_30 = returnRed_(x_6);
|
||||
*(tint_symbol_3) = x_30;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
main_out tint_symbol_inner(constant buf0& x_6, thread float4* const tint_symbol_4) {
|
||||
main_1(x_6, tint_symbol_4);
|
||||
main_out const tint_symbol_2 = {.x_GLF_color_1=*(tint_symbol_4)};
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
fragment tint_symbol_1 tint_symbol(constant buf0& x_6 [[buffer(0)]]) {
|
||||
thread float4 tint_symbol_5 = 0.0f;
|
||||
main_out const inner_result = tint_symbol_inner(x_6, &(tint_symbol_5));
|
||||
tint_symbol_1 wrapper_result = {};
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
@@ -1,161 +0,0 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 79
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 "zero"
|
||||
OpName %x_6 "x_6"
|
||||
OpName %x_GLF_color "x_GLF_color"
|
||||
OpName %returnRed_ "returnRed_"
|
||||
OpName %x_33 "x_33"
|
||||
OpName %x_34 "x_34"
|
||||
OpName %x_48 "x_48"
|
||||
OpName %x_36_phi "x_36_phi"
|
||||
OpName %x_51_phi "x_51_phi"
|
||||
OpName %x_48_phi "x_48_phi"
|
||||
OpName %x_49_phi "x_49_phi"
|
||||
OpName %main_1 "main_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 %x_6 NonWritable
|
||||
OpDecorate %x_6 DescriptorSet 0
|
||||
OpDecorate %x_6 Binding 0
|
||||
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
|
||||
%buf0 = OpTypeStruct %int
|
||||
%_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
|
||||
%12 = OpTypeFunction %v4float
|
||||
%bool = OpTypeBool
|
||||
%false = OpConstantFalse %bool
|
||||
%_ptr_Function_bool = OpTypePointer Function %bool
|
||||
%19 = OpConstantNull %bool
|
||||
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
||||
%int_1 = OpConstant %int 1
|
||||
%true = OpConstantTrue %bool
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_0 = OpConstant %float 0
|
||||
%48 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
||||
%49 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
|
||||
%void = OpTypeVoid
|
||||
%56 = OpTypeFunction %void
|
||||
%main_out = OpTypeStruct %v4float
|
||||
%68 = OpTypeFunction %main_out
|
||||
%returnRed_ = OpFunction %v4float None %12
|
||||
%14 = OpLabel
|
||||
%x_33 = OpVariable %_ptr_Function_bool Function %19
|
||||
%x_34 = OpVariable %_ptr_Function_v4float Function %5
|
||||
%x_48 = OpVariable %_ptr_Function_v4float Function %5
|
||||
%x_36_phi = OpVariable %_ptr_Function_bool Function %19
|
||||
%x_51_phi = OpVariable %_ptr_Function_v4float Function %5
|
||||
%x_48_phi = OpVariable %_ptr_Function_v4float Function %5
|
||||
%x_49_phi = OpVariable %_ptr_Function_bool Function %19
|
||||
OpStore %x_33 %false
|
||||
OpStore %x_36_phi %false
|
||||
OpBranch %25
|
||||
%25 = OpLabel
|
||||
OpLoopMerge %26 %27 None
|
||||
OpBranch %28
|
||||
%28 = OpLabel
|
||||
%31 = OpLoad %bool %x_36_phi
|
||||
OpBranch %32
|
||||
%32 = OpLabel
|
||||
OpLoopMerge %33 %34 None
|
||||
OpBranch %35
|
||||
%35 = OpLabel
|
||||
%39 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0
|
||||
%40 = OpLoad %int %39
|
||||
%42 = OpIEqual %bool %40 %int_1
|
||||
OpSelectionMerge %43 None
|
||||
OpBranchConditional %42 %44 %43
|
||||
%44 = OpLabel
|
||||
OpStore %x_33 %true
|
||||
OpStore %x_34 %48
|
||||
OpStore %x_48_phi %48
|
||||
OpStore %x_49_phi %true
|
||||
OpBranch %33
|
||||
%43 = OpLabel
|
||||
OpBranch %34
|
||||
%34 = OpLabel
|
||||
OpStore %x_48_phi %49
|
||||
OpStore %x_49_phi %false
|
||||
OpBranchConditional %false %32 %33
|
||||
%33 = OpLabel
|
||||
%50 = OpLoad %v4float %x_48_phi
|
||||
OpStore %x_48 %50
|
||||
%51 = OpLoad %bool %x_49_phi
|
||||
%52 = OpLoad %v4float %x_48
|
||||
OpStore %x_51_phi %52
|
||||
OpSelectionMerge %53 None
|
||||
OpBranchConditional %51 %54 %53
|
||||
%54 = OpLabel
|
||||
OpBranch %26
|
||||
%53 = OpLabel
|
||||
OpStore %x_33 %true
|
||||
OpStore %x_34 %48
|
||||
OpStore %x_51_phi %48
|
||||
OpBranch %26
|
||||
%27 = OpLabel
|
||||
OpStore %x_36_phi %false
|
||||
OpBranch %25
|
||||
%26 = OpLabel
|
||||
%55 = OpLoad %v4float %x_51_phi
|
||||
OpReturnValue %55
|
||||
OpFunctionEnd
|
||||
%main_1 = OpFunction %void None %56
|
||||
%59 = OpLabel
|
||||
OpBranch %60
|
||||
%60 = OpLabel
|
||||
OpLoopMerge %61 %62 None
|
||||
OpBranch %63
|
||||
%63 = OpLabel
|
||||
%64 = OpFunctionCall %v4float %returnRed_
|
||||
OpStore %x_GLF_color %64
|
||||
OpSelectionMerge %65 None
|
||||
OpBranchConditional %false %66 %67
|
||||
%66 = OpLabel
|
||||
OpBranch %65
|
||||
%67 = OpLabel
|
||||
OpBranch %61
|
||||
%65 = OpLabel
|
||||
OpBranch %62
|
||||
%62 = OpLabel
|
||||
OpBranch %60
|
||||
%61 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %main_out None %68
|
||||
%71 = OpLabel
|
||||
%72 = OpFunctionCall %void %main_1
|
||||
%73 = OpLoad %v4float %x_GLF_color
|
||||
%74 = OpCompositeConstruct %main_out %73
|
||||
OpReturnValue %74
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %56
|
||||
%76 = OpLabel
|
||||
%77 = OpFunctionCall %main_out %main_inner
|
||||
%78 = OpCompositeExtract %v4float %77 0
|
||||
OpStore %x_GLF_color_1_1 %78
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,80 +0,0 @@
|
||||
[[block]]
|
||||
struct buf0 {
|
||||
zero : i32;
|
||||
};
|
||||
|
||||
[[group(0), binding(0)]] var<uniform> x_6 : buf0;
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
fn returnRed_() -> vec4<f32> {
|
||||
var x_33 : bool = false;
|
||||
var x_34 : vec4<f32>;
|
||||
var x_48 : vec4<f32>;
|
||||
var x_36_phi : bool;
|
||||
var x_51_phi : vec4<f32>;
|
||||
x_36_phi = false;
|
||||
loop {
|
||||
var x_48_phi : vec4<f32>;
|
||||
var x_49_phi : bool;
|
||||
let x_36 : bool = x_36_phi;
|
||||
loop {
|
||||
let x_44 : i32 = x_6.zero;
|
||||
if ((x_44 == 1)) {
|
||||
x_33 = true;
|
||||
x_34 = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
x_48_phi = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
x_49_phi = true;
|
||||
break;
|
||||
}
|
||||
|
||||
continuing {
|
||||
x_48_phi = vec4<f32>(0.0, 0.0, 0.0, 0.0);
|
||||
x_49_phi = false;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
x_48 = x_48_phi;
|
||||
let x_49 : bool = x_49_phi;
|
||||
x_51_phi = x_48;
|
||||
if (x_49) {
|
||||
break;
|
||||
}
|
||||
x_33 = true;
|
||||
x_34 = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
x_51_phi = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
break;
|
||||
|
||||
continuing {
|
||||
x_36_phi = false;
|
||||
}
|
||||
}
|
||||
let x_51 : vec4<f32> = x_51_phi;
|
||||
return x_51;
|
||||
}
|
||||
|
||||
fn main_1() {
|
||||
loop {
|
||||
let x_30 : vec4<f32> = returnRed_();
|
||||
x_GLF_color = x_30;
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
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