blob: bad33dff57483a934bb780e76d84e1f4adada717 [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: 57
5; Schema: 0
6 OpCapability Shader
7 %22 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpEntryPoint GLCompute %compute_main "compute_main"
11 OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
14 OpMemberName %tint_symbol_1 0 "tint_symbol"
15 OpName %tint_symbol_1 "tint_symbol_1"
16 OpName %vertex_main_position_Output "vertex_main_position_Output"
17 OpName %vertex_main_loc0_Output "vertex_main_loc0_Output"
18 OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
19 OpName %sinh_b9860e "sinh_b9860e"
20 OpName %arg_0 "arg_0"
21 OpName %res "res"
22 OpName %fragment_main "fragment_main"
23 OpName %compute_main "compute_main"
24 OpName %vertex_main_inner "vertex_main_inner"
25 OpMemberName %VertexOutput 0 "pos"
26 OpMemberName %VertexOutput 1 "prevent_dce"
27 OpName %VertexOutput "VertexOutput"
28 OpName %out "out"
29 OpName %vertex_main "vertex_main"
30 OpMemberDecorate %tint_symbol_1 0 Offset 0
31 OpDecorate %tint_symbol_1 Block
32 OpDecorate %1 DescriptorSet 0
33 OpDecorate %1 Binding 0
34 OpDecorate %vertex_main_position_Output BuiltIn Position
35 OpDecorate %vertex_main_loc0_Output Location 0
36 OpDecorate %vertex_main_loc0_Output Flat
37 OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
38 OpMemberDecorate %VertexOutput 0 Offset 0
39 OpMemberDecorate %VertexOutput 1 Offset 16
40 %float = OpTypeFloat 32
41 %v2float = OpTypeVector %float 2
42%tint_symbol_1 = OpTypeStruct %v2float
43%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
44 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
45 %v4float = OpTypeVector %float 4
46%_ptr_Output_v4float = OpTypePointer Output %v4float
47%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
48%_ptr_Output_v2float = OpTypePointer Output %v2float
49%vertex_main_loc0_Output = OpVariable %_ptr_Output_v2float Output
50%_ptr_Output_float = OpTypePointer Output %float
51%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
52 %14 = OpTypeFunction %v2float
53%_ptr_Function_v2float = OpTypePointer Function %v2float
54 %float_1 = OpConstant %float 1
55 %18 = OpConstantComposite %v2float %float_1 %float_1
56 %void = OpTypeVoid
57 %27 = OpTypeFunction %void
58%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
59 %uint = OpTypeInt 32 0
60 %uint_0 = OpConstant %uint 0
61%VertexOutput = OpTypeStruct %v4float %v2float
62 %40 = OpTypeFunction %VertexOutput
63%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
64 %44 = OpConstantNull %VertexOutput
65%_ptr_Function_v4float = OpTypePointer Function %v4float
66 %47 = OpConstantNull %v4float
67 %uint_1 = OpConstant %uint 1
68%sinh_b9860e = OpFunction %v2float None %14
69 %15 = OpLabel
70 %arg_0 = OpVariable %_ptr_Function_v2float Function
71 %res = OpVariable %_ptr_Function_v2float Function
72 OpStore %arg_0 %18
73 %20 = OpLoad %v2float %arg_0
74 %21 = OpExtInst %v2float %22 Sinh %20
75 OpStore %res %21
76 %24 = OpLoad %v2float %res
77 OpReturnValue %24
78 OpFunctionEnd
79%fragment_main = OpFunction %void None %27
80 %28 = OpLabel
81 %29 = OpFunctionCall %v2float %sinh_b9860e
82 %30 = OpAccessChain %_ptr_StorageBuffer_v2float %1 %uint_0
83 OpStore %30 %29
84 OpReturn
85 OpFunctionEnd
86%compute_main = OpFunction %void None %27
87 %35 = OpLabel
88 %36 = OpFunctionCall %v2float %sinh_b9860e
89 %37 = OpAccessChain %_ptr_StorageBuffer_v2float %1 %uint_0
90 OpStore %37 %36
91 OpReturn
92 OpFunctionEnd
93%vertex_main_inner = OpFunction %VertexOutput None %40
94 %41 = OpLabel
95 %out = OpVariable %_ptr_Function_VertexOutput Function %44
96 %45 = OpAccessChain %_ptr_Function_v4float %out %uint_0
97 OpStore %45 %47
98 %48 = OpAccessChain %_ptr_Function_v2float %out %uint_1
99 %50 = OpFunctionCall %v2float %sinh_b9860e
100 OpStore %48 %50
101 %51 = OpLoad %VertexOutput %out
102 OpReturnValue %51
103 OpFunctionEnd
104%vertex_main = OpFunction %void None %27
105 %53 = OpLabel
106 %54 = OpFunctionCall %VertexOutput %vertex_main_inner
107 %55 = OpCompositeExtract %v4float %54 0
108 OpStore %vertex_main_position_Output %55
109 %56 = OpCompositeExtract %v2float %54 1
110 OpStore %vertex_main_loc0_Output %56
111 OpStore %vertex_main___point_size_Output %float_1
112 OpReturn
113 OpFunctionEnd