blob: 29919da843f1a77a94a3a94665ea6c55d650c3d0 [file] [log] [blame]
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
Natalie Chouinarde9027182024-06-13 18:50:19 +00004; Bound: 57
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00005; Schema: 0
6 OpCapability Shader
7 OpCapability Float16
8 OpCapability UniformAndStorageBuffer16BitAccess
9 OpCapability StorageBuffer16BitAccess
Natalie Chouinarde9027182024-06-13 18:50:19 +000010 OpCapability StorageInputOutput16
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000011 OpMemoryModel Logical GLSL450
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000012 OpEntryPoint Fragment %fragment_main "fragment_main"
13 OpEntryPoint GLCompute %compute_main "compute_main"
Natalie Chouinarde9027182024-06-13 18:50:19 +000014 OpEntryPoint Vertex %vertex_main "vertex_main" %pos_1 %prevent_dce_1 %vertex_point_size
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000015 OpExecutionMode %fragment_main OriginUpperLeft
16 OpExecutionMode %compute_main LocalSize 1 1 1
Natalie Chouinarde9027182024-06-13 18:50:19 +000017 OpName %pos_1 "pos_1"
18 OpName %prevent_dce_1 "prevent_dce_1"
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000019 OpName %vertex_point_size "vertex_point_size"
Ben Clayton77a90cb2023-03-06 18:25:08 +000020 OpName %prevent_dce_block "prevent_dce_block"
21 OpMemberName %prevent_dce_block 0 "inner"
22 OpName %prevent_dce "prevent_dce"
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000023 OpName %asin_3cfbd4 "asin_3cfbd4"
24 OpName %res "res"
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000025 OpName %fragment_main "fragment_main"
26 OpName %compute_main "compute_main"
Natalie Chouinarde9027182024-06-13 18:50:19 +000027 OpName %VertexOutput "VertexOutput"
28 OpMemberName %VertexOutput 0 "pos"
29 OpMemberName %VertexOutput 1 "prevent_dce"
30 OpName %vertex_main_inner "vertex_main_inner"
31 OpName %out "out"
32 OpName %vertex_main "vertex_main"
33 OpDecorate %pos_1 BuiltIn Position
34 OpDecorate %prevent_dce_1 Location 0
35 OpDecorate %prevent_dce_1 Flat
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000036 OpDecorate %vertex_point_size BuiltIn PointSize
Ben Clayton77a90cb2023-03-06 18:25:08 +000037 OpDecorate %prevent_dce_block Block
38 OpMemberDecorate %prevent_dce_block 0 Offset 0
Natalie Chouinarde9027182024-06-13 18:50:19 +000039 OpDecorate %prevent_dce DescriptorSet 0
Ben Clayton77a90cb2023-03-06 18:25:08 +000040 OpDecorate %prevent_dce Binding 0
Natalie Chouinarde9027182024-06-13 18:50:19 +000041 OpMemberDecorate %VertexOutput 0 Offset 0
42 OpMemberDecorate %VertexOutput 1 Offset 16
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000043 %float = OpTypeFloat 32
44 %v4float = OpTypeVector %float 4
45%_ptr_Output_v4float = OpTypePointer Output %v4float
46 %5 = OpConstantNull %v4float
Natalie Chouinarde9027182024-06-13 18:50:19 +000047 %pos_1 = OpVariable %_ptr_Output_v4float Output %5
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000048 %half = OpTypeFloat 16
49 %v4half = OpTypeVector %half 4
Natalie Chouinarde9027182024-06-13 18:50:19 +000050%_ptr_Output_v4half = OpTypePointer Output %v4half
51 %10 = OpConstantNull %v4half
52%prevent_dce_1 = OpVariable %_ptr_Output_v4half Output %10
53%_ptr_Output_float = OpTypePointer Output %float
54 %13 = OpConstantNull %float
55%vertex_point_size = OpVariable %_ptr_Output_float Output %13
Ben Clayton77a90cb2023-03-06 18:25:08 +000056%prevent_dce_block = OpTypeStruct %v4half
57%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
58%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
Natalie Chouinarde9027182024-06-13 18:50:19 +000059 %17 = OpTypeFunction %v4half
dan sinclaird9b68eb2022-11-10 00:32:12 +000060%half_0x1_ffcpn2 = OpConstant %half 0x1.ffcp-2
Natalie Chouinarde9027182024-06-13 18:50:19 +000061 %21 = OpConstantComposite %v4half %half_0x1_ffcpn2 %half_0x1_ffcpn2 %half_0x1_ffcpn2 %half_0x1_ffcpn2
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000062%_ptr_Function_v4half = OpTypePointer Function %v4half
Natalie Chouinarde9027182024-06-13 18:50:19 +000063 %void = OpTypeVoid
64 %25 = OpTypeFunction %void
Ben Clayton77a90cb2023-03-06 18:25:08 +000065 %uint = OpTypeInt 32 0
66 %uint_0 = OpConstant %uint 0
67%_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half
Natalie Chouinarde9027182024-06-13 18:50:19 +000068%VertexOutput = OpTypeStruct %v4float %v4half
69 %38 = OpTypeFunction %VertexOutput
70%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
71 %44 = OpConstantNull %VertexOutput
72%_ptr_Function_v4float = OpTypePointer Function %v4float
73 %uint_1 = OpConstant %uint 1
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000074 %float_1 = OpConstant %float 1
Natalie Chouinarde9027182024-06-13 18:50:19 +000075%asin_3cfbd4 = OpFunction %v4half None %17
76 %19 = OpLabel
77 %res = OpVariable %_ptr_Function_v4half Function %10
78 OpStore %res %21
79 %24 = OpLoad %v4half %res
80 OpReturnValue %24
81 OpFunctionEnd
82%fragment_main = OpFunction %void None %25
83 %28 = OpLabel
84 %32 = OpAccessChain %_ptr_StorageBuffer_v4half %prevent_dce %uint_0
85 %33 = OpFunctionCall %v4half %asin_3cfbd4
86 OpStore %32 %33
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000087 OpReturn
88 OpFunctionEnd
Natalie Chouinarde9027182024-06-13 18:50:19 +000089%compute_main = OpFunction %void None %25
90 %35 = OpLabel
91 %36 = OpAccessChain %_ptr_StorageBuffer_v4half %prevent_dce %uint_0
92 %37 = OpFunctionCall %v4half %asin_3cfbd4
93 OpStore %36 %37
94 OpReturn
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000095 OpFunctionEnd
Natalie Chouinarde9027182024-06-13 18:50:19 +000096%vertex_main_inner = OpFunction %VertexOutput None %38
97 %41 = OpLabel
98 %out = OpVariable %_ptr_Function_VertexOutput Function %44
99 %46 = OpAccessChain %_ptr_Function_v4float %out %uint_0
100 OpStore %46 %5
101 %48 = OpAccessChain %_ptr_Function_v4half %out %uint_1
102 %49 = OpFunctionCall %v4half %asin_3cfbd4
103 OpStore %48 %49
104 %50 = OpLoad %VertexOutput %out
105 OpReturnValue %50
106 OpFunctionEnd
107%vertex_main = OpFunction %void None %25
108 %52 = OpLabel
109 %53 = OpFunctionCall %VertexOutput %vertex_main_inner
110 %54 = OpCompositeExtract %v4float %53 0
111 OpStore %pos_1 %54
112 %55 = OpCompositeExtract %v4half %53 1
113 OpStore %prevent_dce_1 %55
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +0000114 OpStore %vertex_point_size %float_1
115 OpReturn
116 OpFunctionEnd