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