blob: d0230c1a77ff7957da4952a680c8f15e0c1467d8 [file] [log] [blame]
dan sinclair1b77b6c2024-08-06 15:47:05 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
4; Bound: 61
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %fragment_main "fragment_main"
9 OpEntryPoint GLCompute %compute_main "compute_main"
10 OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main___point_size_Output
11 OpExecutionMode %fragment_main OriginUpperLeft
12 OpExecutionMode %compute_main LocalSize 1 1 1
13 OpName %arg_0 "arg_0"
14 OpName %tint_symbol_1 "tint_symbol_1"
15 OpName %vertex_main_position_Output "vertex_main_position_Output"
16 OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
17 OpName %textureLoad_6273b1 "textureLoad_6273b1"
18 OpName %res "res"
19 OpName %tint_symbol_2 "tint_symbol_2"
20 OpName %tint_symbol "tint_symbol"
21 OpName %vertex_main_1 "vertex_main_1"
22 OpName %vertex_main_inner "vertex_main_inner"
23 OpMemberName %vertex_main_out 0 "tint_symbol_1_1"
24 OpName %vertex_main_out "vertex_main_out"
25 OpName %fragment_main_1 "fragment_main_1"
26 OpName %fragment_main "fragment_main"
27 OpName %compute_main_1 "compute_main_1"
28 OpName %compute_main "compute_main"
29 OpName %vertex_main "vertex_main"
30 OpDecorate %arg_0 DescriptorSet 1
31 OpDecorate %arg_0 Binding 0
32 OpDecorate %vertex_main_position_Output BuiltIn Position
33 OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
34 OpMemberDecorate %vertex_main_out 0 Offset 0
35 %float = OpTypeFloat 32
36 %3 = OpTypeImage %float 2D 0 0 1 1 Unknown
37%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
38 %arg_0 = OpVariable %_ptr_UniformConstant_3 UniformConstant
39 %v4float = OpTypeVector %float 4
40%_ptr_Private_v4float = OpTypePointer Private %v4float
41 %8 = OpConstantNull %v4float
42%tint_symbol_1 = OpVariable %_ptr_Private_v4float Private %8
43%_ptr_Output_v4float = OpTypePointer Output %v4float
44%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
45%_ptr_Output_float = OpTypePointer Output %float
46%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
47 %void = OpTypeVoid
48 %15 = OpTypeFunction %void
49%_ptr_Function_float = OpTypePointer Function %float
50 %float_0 = OpConstant %float 0
51 %int = OpTypeInt 32 1
52 %v2int = OpTypeVector %int 2
53 %22 = OpConstantNull %v2int
54 %int_1 = OpConstant %int 1
55 %31 = OpTypeFunction %void %v4float
56%vertex_main_out = OpTypeStruct %v4float
57 %39 = OpTypeFunction %vertex_main_out
58 %float_1 = OpConstant %float 1
59%textureLoad_6273b1 = OpFunction %void None %15
60 %16 = OpLabel
61 %res = OpVariable %_ptr_Function_float Function
62 OpStore %res %float_0
dan sinclair50260412024-08-28 19:43:27 +000063 %20 = OpLoad %3 %arg_0 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000064 %21 = OpImageFetch %v4float %20 %22 Sample %int_1
65 %26 = OpCompositeExtract %float %21 0
66 %27 = OpCompositeConstruct %v4float %26 %float_0 %float_0 %float_0
67 %28 = OpCompositeExtract %float %27 0
dan sinclair50260412024-08-28 19:43:27 +000068 OpStore %res %28 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000069 OpReturn
70 OpFunctionEnd
71%tint_symbol_2 = OpFunction %void None %31
72%tint_symbol = OpFunctionParameter %v4float
73 %32 = OpLabel
dan sinclair50260412024-08-28 19:43:27 +000074 OpStore %tint_symbol_1 %tint_symbol None
dan sinclair1b77b6c2024-08-06 15:47:05 +000075 OpReturn
76 OpFunctionEnd
77%vertex_main_1 = OpFunction %void None %15
78 %34 = OpLabel
79 %35 = OpFunctionCall %void %textureLoad_6273b1
80 %36 = OpFunctionCall %void %tint_symbol_2 %8
81 OpReturn
82 OpFunctionEnd
83%vertex_main_inner = OpFunction %vertex_main_out None %39
84 %40 = OpLabel
85 %41 = OpFunctionCall %void %vertex_main_1
dan sinclair50260412024-08-28 19:43:27 +000086 %42 = OpLoad %v4float %tint_symbol_1 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000087 %43 = OpCompositeConstruct %vertex_main_out %42
88 OpReturnValue %43
89 OpFunctionEnd
90%fragment_main_1 = OpFunction %void None %15
91 %45 = OpLabel
92 %46 = OpFunctionCall %void %textureLoad_6273b1
93 OpReturn
94 OpFunctionEnd
95%fragment_main = OpFunction %void None %15
96 %48 = OpLabel
97 %49 = OpFunctionCall %void %fragment_main_1
98 OpReturn
99 OpFunctionEnd
100%compute_main_1 = OpFunction %void None %15
101 %51 = OpLabel
102 %52 = OpFunctionCall %void %textureLoad_6273b1
103 OpReturn
104 OpFunctionEnd
105%compute_main = OpFunction %void None %15
106 %54 = OpLabel
107 %55 = OpFunctionCall %void %compute_main_1
108 OpReturn
109 OpFunctionEnd
110%vertex_main = OpFunction %void None %15
111 %57 = OpLabel
112 %58 = OpFunctionCall %vertex_main_out %vertex_main_inner
113 %59 = OpCompositeExtract %v4float %58 0
dan sinclair50260412024-08-28 19:43:27 +0000114 OpStore %vertex_main_position_Output %59 None
115 OpStore %vertex_main___point_size_Output %float_1 None
dan sinclair1b77b6c2024-08-06 15:47:05 +0000116 OpReturn
117 OpFunctionEnd