mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 16:37:08 +00:00
tint->dawn: Shuffle source tree in preperation of merging repos
docs/ -> docs/tint/ fuzzers/ -> src/tint/fuzzers/ samples/ -> src/tint/cmd/ src/ -> src/tint/ test/ -> test/tint/ BUG=tint:1418,tint:1433 Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
38f1e9c75c
commit
dbc13af287
@@ -0,0 +1,103 @@
|
||||
OpCapability Shader
|
||||
%1 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %main "main" %_GLF_color
|
||||
OpExecutionMode %main OriginUpperLeft
|
||||
OpSource ESSL 310
|
||||
OpName %main "main"
|
||||
OpName %buf0 "buf0"
|
||||
OpMemberName %buf0 0 "injectionSwitch"
|
||||
OpName %_ ""
|
||||
OpName %_GLF_color "_GLF_color"
|
||||
OpMemberDecorate %buf0 0 Offset 0
|
||||
OpDecorate %buf0 Block
|
||||
OpDecorate %_ DescriptorSet 0
|
||||
OpDecorate %_ Binding 0
|
||||
OpDecorate %_GLF_color Location 0
|
||||
%void = OpTypeVoid
|
||||
%7 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%buf0 = OpTypeStruct %v2float
|
||||
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
|
||||
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_Uniform_float = OpTypePointer Uniform %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%bool = OpTypeBool
|
||||
%float_1 = OpConstant %float 1
|
||||
%20 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
||||
%true = OpConstantTrue %bool
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%_GLF_color = OpVariable %_ptr_Output_v4float Output
|
||||
%false = OpConstantFalse %bool
|
||||
%main = OpFunction %void None %7
|
||||
%25 = OpLabel
|
||||
OpBranch %26
|
||||
%26 = OpLabel
|
||||
OpLoopMerge %27 %28 None
|
||||
OpBranch %29
|
||||
%29 = OpLabel
|
||||
%30 = OpPhi %bool %false %26 %31 %32
|
||||
OpLoopMerge %33 %32 None
|
||||
OpBranch %34
|
||||
%34 = OpLabel
|
||||
%35 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1
|
||||
%36 = OpLoad %float %35
|
||||
%37 = OpFOrdGreaterThan %bool %36 %float_0
|
||||
OpLoopMerge %38 %39 None
|
||||
OpBranchConditional %37 %40 %38
|
||||
%40 = OpLabel
|
||||
OpBranch %41
|
||||
%41 = OpLabel
|
||||
OpLoopMerge %42 %43 None
|
||||
OpBranch %44
|
||||
%44 = OpLabel
|
||||
%45 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0
|
||||
%46 = OpLoad %float %45
|
||||
%47 = OpFOrdGreaterThan %bool %46 %float_0
|
||||
OpSelectionMerge %48 None
|
||||
OpBranchConditional %47 %49 %48
|
||||
%49 = OpLabel
|
||||
%50 = OpFunctionCall %void %51
|
||||
%52 = OpUndef %v4float
|
||||
OpBranch %42
|
||||
%48 = OpLabel
|
||||
%53 = OpCompositeConstruct %v4float %46 %46 %46 %46
|
||||
%54 = OpFAdd %v4float %20 %53
|
||||
OpBranch %42
|
||||
%43 = OpLabel
|
||||
OpBranch %41
|
||||
%42 = OpLabel
|
||||
%55 = OpPhi %v4float %52 %49 %54 %48
|
||||
OpStore %_GLF_color %55
|
||||
OpBranch %38
|
||||
%39 = OpLabel
|
||||
OpBranch %34
|
||||
%38 = OpLabel
|
||||
%31 = OpPhi %bool %30 %34 %true %42
|
||||
OpSelectionMerge %56 None
|
||||
OpBranchConditional %31 %33 %32
|
||||
%56 = OpLabel
|
||||
OpBranch %32
|
||||
%32 = OpLabel
|
||||
OpBranch %29
|
||||
%33 = OpLabel
|
||||
OpSelectionMerge %57 None
|
||||
OpBranchConditional %31 %27 %57
|
||||
%57 = OpLabel
|
||||
OpBranch %27
|
||||
%28 = OpLabel
|
||||
OpBranch %26
|
||||
%27 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%51 = OpFunction %void None %7
|
||||
%58 = OpLabel
|
||||
OpKill
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,76 @@
|
||||
struct buf0 {
|
||||
injectionSwitch : vec2<f32>;
|
||||
};
|
||||
|
||||
@group(0) @binding(0) var<uniform> x_5 : buf0;
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
fn x_51() {
|
||||
discard;
|
||||
}
|
||||
|
||||
fn main_1() {
|
||||
loop {
|
||||
var x_31 : bool;
|
||||
var x_30_phi : bool;
|
||||
x_30_phi = false;
|
||||
loop {
|
||||
var x_31_phi : bool;
|
||||
let x_30 : bool = x_30_phi;
|
||||
loop {
|
||||
var x_52 : vec4<f32>;
|
||||
var x_54 : vec4<f32>;
|
||||
var x_55_phi : vec4<f32>;
|
||||
let x_36 : f32 = x_5.injectionSwitch.y;
|
||||
x_31_phi = x_30;
|
||||
if ((x_36 > 0.0)) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
loop {
|
||||
let x_46 : f32 = x_5.injectionSwitch.x;
|
||||
if ((x_46 > 0.0)) {
|
||||
x_51();
|
||||
x_52 = vec4<f32>(0.0, 0.0, 0.0, 0.0);
|
||||
x_55_phi = x_52;
|
||||
break;
|
||||
}
|
||||
x_54 = (vec4<f32>(1.0, 0.0, 0.0, 1.0) + vec4<f32>(x_46, x_46, x_46, x_46));
|
||||
x_55_phi = x_54;
|
||||
break;
|
||||
}
|
||||
let x_55 : vec4<f32> = x_55_phi;
|
||||
x_GLF_color = x_55;
|
||||
x_31_phi = true;
|
||||
break;
|
||||
}
|
||||
x_31 = x_31_phi;
|
||||
if (x_31) {
|
||||
break;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
||||
continuing {
|
||||
x_30_phi = x_31;
|
||||
}
|
||||
}
|
||||
if (x_31) {
|
||||
break;
|
||||
}
|
||||
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