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