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