blob: 491a34fa33b73eda376456c6bbb23aebfab3c6cd [file] [log] [blame]
James Pricebb0496e2021-06-03 09:38:34 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
James Price11c6fcd2021-08-05 17:34:19 +00004; Bound: 32
James Pricebb0496e2021-06-03 09:38:34 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
James Price11c6fcd2021-08-05 17:34:19 +00008 OpEntryPoint Fragment %main "main" %loc0_1 %loc1_1 %loc2_1 %loc3_1
James Pricebb0496e2021-06-03 09:38:34 +00009 OpExecutionMode %main OriginUpperLeft
James Price11c6fcd2021-08-05 17:34:19 +000010 OpName %loc0_1 "loc0_1"
11 OpName %loc1_1 "loc1_1"
12 OpName %loc2_1 "loc2_1"
13 OpName %loc3_1 "loc3_1"
James Pricebb0496e2021-06-03 09:38:34 +000014 OpName %FragmentInputs "FragmentInputs"
15 OpMemberName %FragmentInputs 0 "loc0"
16 OpMemberName %FragmentInputs 1 "loc1"
17 OpMemberName %FragmentInputs 2 "loc2"
18 OpMemberName %FragmentInputs 3 "loc3"
James Price11c6fcd2021-08-05 17:34:19 +000019 OpName %main_inner "main_inner"
20 OpName %inputs "inputs"
21 OpName %main "main"
22 OpDecorate %loc0_1 Location 0
23 OpDecorate %loc0_1 Flat
24 OpDecorate %loc1_1 Location 1
25 OpDecorate %loc1_1 Flat
26 OpDecorate %loc2_1 Location 2
27 OpDecorate %loc3_1 Location 3
James Pricebb0496e2021-06-03 09:38:34 +000028 OpMemberDecorate %FragmentInputs 0 Offset 0
29 OpMemberDecorate %FragmentInputs 1 Offset 4
30 OpMemberDecorate %FragmentInputs 2 Offset 8
31 OpMemberDecorate %FragmentInputs 3 Offset 16
32 %int = OpTypeInt 32 1
33%_ptr_Input_int = OpTypePointer Input %int
James Price11c6fcd2021-08-05 17:34:19 +000034 %loc0_1 = OpVariable %_ptr_Input_int Input
James Pricebb0496e2021-06-03 09:38:34 +000035 %uint = OpTypeInt 32 0
36%_ptr_Input_uint = OpTypePointer Input %uint
James Price11c6fcd2021-08-05 17:34:19 +000037 %loc1_1 = OpVariable %_ptr_Input_uint Input
James Pricebb0496e2021-06-03 09:38:34 +000038 %float = OpTypeFloat 32
39%_ptr_Input_float = OpTypePointer Input %float
James Price11c6fcd2021-08-05 17:34:19 +000040 %loc2_1 = OpVariable %_ptr_Input_float Input
James Pricebb0496e2021-06-03 09:38:34 +000041 %v4float = OpTypeVector %float 4
42%_ptr_Input_v4float = OpTypePointer Input %v4float
James Price11c6fcd2021-08-05 17:34:19 +000043 %loc3_1 = OpVariable %_ptr_Input_v4float Input
James Pricebb0496e2021-06-03 09:38:34 +000044 %void = OpTypeVoid
James Pricebb0496e2021-06-03 09:38:34 +000045%FragmentInputs = OpTypeStruct %int %uint %float %v4float
James Price11c6fcd2021-08-05 17:34:19 +000046 %13 = OpTypeFunction %void %FragmentInputs
47 %23 = OpTypeFunction %void
48 %main_inner = OpFunction %void None %13
49 %inputs = OpFunctionParameter %FragmentInputs
50 %18 = OpLabel
51 %19 = OpCompositeExtract %int %inputs 0
52 %20 = OpCompositeExtract %uint %inputs 1
53 %21 = OpCompositeExtract %float %inputs 2
54 %22 = OpCompositeExtract %v4float %inputs 3
55 OpReturn
56 OpFunctionEnd
57 %main = OpFunction %void None %23
58 %25 = OpLabel
59 %27 = OpLoad %int %loc0_1
60 %28 = OpLoad %uint %loc1_1
61 %29 = OpLoad %float %loc2_1
62 %30 = OpLoad %v4float %loc3_1
63 %31 = OpCompositeConstruct %FragmentInputs %27 %28 %29 %30
64 %26 = OpFunctionCall %void %main_inner %31
James Pricebb0496e2021-06-03 09:38:34 +000065 OpReturn
66 OpFunctionEnd