mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +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,122 @@
|
||||
OpCapability Shader
|
||||
%1 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %main "main" %_GLF_color
|
||||
OpExecutionMode %main OriginUpperLeft
|
||||
OpSource ESSL 320
|
||||
OpName %main "main"
|
||||
OpName %f "f"
|
||||
OpName %arr "arr"
|
||||
OpName %buf1 "buf1"
|
||||
OpMemberName %buf1 0 "_GLF_uniform_float_values"
|
||||
OpName %_ ""
|
||||
OpName %buf0 "buf0"
|
||||
OpMemberName %buf0 0 "_GLF_uniform_int_values"
|
||||
OpName %__0 ""
|
||||
OpName %_GLF_color "_GLF_color"
|
||||
OpDecorate %_arr_float_uint_2 ArrayStride 16
|
||||
OpMemberDecorate %buf1 0 Offset 0
|
||||
OpDecorate %buf1 Block
|
||||
OpDecorate %_ DescriptorSet 0
|
||||
OpDecorate %_ Binding 1
|
||||
OpDecorate %_arr_int_uint_4 ArrayStride 16
|
||||
OpMemberDecorate %buf0 0 Offset 0
|
||||
OpDecorate %buf0 Block
|
||||
OpDecorate %__0 DescriptorSet 0
|
||||
OpDecorate %__0 Binding 0
|
||||
OpDecorate %_GLF_color Location 0
|
||||
%void = OpTypeVoid
|
||||
%13 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%float_2 = OpConstant %float 2
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%_arr_float_uint_10 = OpTypeArray %float %uint_10
|
||||
%_ptr_Function__arr_float_uint_10 = OpTypePointer Function %_arr_float_uint_10
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%_arr_float_uint_2 = OpTypeArray %float %uint_2
|
||||
%buf1 = OpTypeStruct %_arr_float_uint_2
|
||||
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
|
||||
%_ = OpVariable %_ptr_Uniform_buf1 Uniform
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%_ptr_Uniform_float = OpTypePointer Uniform %float
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%_arr_int_uint_4 = OpTypeArray %int %uint_4
|
||||
%buf0 = OpTypeStruct %_arr_int_uint_4
|
||||
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
|
||||
%__0 = OpVariable %_ptr_Uniform_buf0 Uniform
|
||||
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
||||
%int_3 = OpConstant %int 3
|
||||
%bool = OpTypeBool
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%_GLF_color = OpVariable %_ptr_Output_v4float Output
|
||||
%int_2 = OpConstant %int 2
|
||||
%main = OpFunction %void None %13
|
||||
%35 = OpLabel
|
||||
%f = OpVariable %_ptr_Function_float Function
|
||||
%arr = OpVariable %_ptr_Function__arr_float_uint_10 Function
|
||||
OpStore %f %float_2
|
||||
%36 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%37 = OpLoad %float %36
|
||||
%38 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%39 = OpLoad %float %38
|
||||
%40 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%41 = OpLoad %float %40
|
||||
%42 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%43 = OpLoad %float %42
|
||||
%44 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%45 = OpLoad %float %44
|
||||
%46 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%47 = OpLoad %float %46
|
||||
%48 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%49 = OpLoad %float %48
|
||||
%50 = OpLoad %float %f
|
||||
%51 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
|
||||
%52 = OpLoad %float %51
|
||||
%53 = OpExtInst %float %1 Pow %50 %52
|
||||
%54 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%55 = OpLoad %float %54
|
||||
%56 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%57 = OpLoad %float %56
|
||||
%58 = OpCompositeConstruct %_arr_float_uint_10 %37 %39 %41 %43 %45 %47 %49 %53 %55 %57
|
||||
OpStore %arr %58
|
||||
%59 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
|
||||
%60 = OpLoad %int %59
|
||||
%61 = OpAccessChain %_ptr_Function_float %arr %60
|
||||
%62 = OpLoad %float %61
|
||||
%63 = OpConvertFToS %int %62
|
||||
%64 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_3
|
||||
%65 = OpLoad %int %64
|
||||
%66 = OpIEqual %bool %63 %65
|
||||
OpSelectionMerge %67 None
|
||||
OpBranchConditional %66 %68 %69
|
||||
%68 = OpLabel
|
||||
%70 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
|
||||
%71 = OpLoad %int %70
|
||||
%72 = OpConvertSToF %float %71
|
||||
%73 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_2
|
||||
%74 = OpLoad %int %73
|
||||
%75 = OpConvertSToF %float %74
|
||||
%76 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_2
|
||||
%77 = OpLoad %int %76
|
||||
%78 = OpConvertSToF %float %77
|
||||
%79 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
|
||||
%80 = OpLoad %int %79
|
||||
%81 = OpConvertSToF %float %80
|
||||
%82 = OpCompositeConstruct %v4float %72 %75 %78 %81
|
||||
OpStore %_GLF_color %82
|
||||
OpBranch %67
|
||||
%69 = OpLabel
|
||||
%83 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_2
|
||||
%84 = OpLoad %int %83
|
||||
%85 = OpConvertSToF %float %84
|
||||
%86 = OpCompositeConstruct %v4float %85 %85 %85 %85
|
||||
OpStore %_GLF_color %86
|
||||
OpBranch %67
|
||||
%67 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,61 @@
|
||||
type Arr = @stride(16) array<f32, 2>;
|
||||
|
||||
struct buf1 {
|
||||
x_GLF_uniform_float_values : Arr;
|
||||
};
|
||||
|
||||
type Arr_1 = @stride(16) array<i32, 4>;
|
||||
|
||||
struct buf0 {
|
||||
x_GLF_uniform_int_values : Arr_1;
|
||||
};
|
||||
|
||||
@group(0) @binding(1) var<uniform> x_7 : buf1;
|
||||
|
||||
@group(0) @binding(0) var<uniform> x_9 : buf0;
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
fn main_1() {
|
||||
var f : f32;
|
||||
var arr : array<f32, 10>;
|
||||
f = 2.0;
|
||||
let x_37 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
let x_39 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
let x_41 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
let x_43 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
let x_45 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
let x_47 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
let x_49 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
let x_50 : f32 = f;
|
||||
let x_52 : f32 = x_7.x_GLF_uniform_float_values[1];
|
||||
let x_55 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
let x_57 : f32 = x_7.x_GLF_uniform_float_values[0];
|
||||
arr = array<f32, 10>(x_37, x_39, x_41, x_43, x_45, x_47, x_49, pow(x_50, x_52), x_55, x_57);
|
||||
let x_60 : i32 = x_9.x_GLF_uniform_int_values[0];
|
||||
let x_62 : f32 = arr[x_60];
|
||||
let x_65 : i32 = x_9.x_GLF_uniform_int_values[3];
|
||||
if ((i32(x_62) == x_65)) {
|
||||
let x_71 : i32 = x_9.x_GLF_uniform_int_values[1];
|
||||
let x_74 : i32 = x_9.x_GLF_uniform_int_values[2];
|
||||
let x_77 : i32 = x_9.x_GLF_uniform_int_values[2];
|
||||
let x_80 : i32 = x_9.x_GLF_uniform_int_values[1];
|
||||
x_GLF_color = vec4<f32>(f32(x_71), f32(x_74), f32(x_77), f32(x_80));
|
||||
} else {
|
||||
let x_84 : i32 = x_9.x_GLF_uniform_int_values[2];
|
||||
let x_85 : f32 = f32(x_84);
|
||||
x_GLF_color = vec4<f32>(x_85, x_85, x_85, x_85);
|
||||
}
|
||||
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