blob: 7748bdbfbab16821c6c6b3d8311f9bb0570c26f5 [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: 47
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___point_size_Output
11 OpExecutionMode %fragment_main OriginUpperLeft
12 OpExecutionMode %compute_main LocalSize 1 1 1
13 OpName %vertex_main_position_Output "vertex_main_position_Output"
14 OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
15 OpName %frexp_6fb3ad "frexp_6fb3ad"
16 OpMemberName %__frexp_result_vec2_f32 0 "fract"
17 OpMemberName %__frexp_result_vec2_f32 1 "exp"
18 OpName %__frexp_result_vec2_f32 "__frexp_result_vec2_f32"
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 OpName %VertexOutput "VertexOutput"
25 OpName %out "out"
26 OpName %vertex_main "vertex_main"
27 OpDecorate %vertex_main_position_Output BuiltIn Position
28 OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
29 OpMemberDecorate %__frexp_result_vec2_f32 0 Offset 0
30 OpMemberDecorate %__frexp_result_vec2_f32 1 Offset 8
31 OpMemberDecorate %VertexOutput 0 Offset 0
32 %float = OpTypeFloat 32
33 %v4float = OpTypeVector %float 4
34%_ptr_Output_v4float = OpTypePointer Output %v4float
35%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
36%_ptr_Output_float = OpTypePointer Output %float
37%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
38 %void = OpTypeVoid
39 %9 = OpTypeFunction %void
40 %v2float = OpTypeVector %float 2
41 %int = OpTypeInt 32 1
42 %v2int = OpTypeVector %int 2
43%__frexp_result_vec2_f32 = OpTypeStruct %v2float %v2int
44%_ptr_Function___frexp_result_vec2_f32 = OpTypePointer Function %__frexp_result_vec2_f32
45 %float_0_5 = OpConstant %float 0.5
46 %18 = OpConstantComposite %v2float %float_0_5 %float_0_5
47 %int_1 = OpConstant %int 1
48 %20 = OpConstantComposite %v2int %int_1 %int_1
49 %17 = OpConstantComposite %__frexp_result_vec2_f32 %18 %20
50%VertexOutput = OpTypeStruct %v4float
51 %30 = OpTypeFunction %VertexOutput
52%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
53 %34 = OpConstantNull %VertexOutput
54%_ptr_Function_v4float = OpTypePointer Function %v4float
55 %uint = OpTypeInt 32 0
56 %uint_0 = OpConstant %uint 0
57 %39 = OpConstantNull %v4float
58 %float_1 = OpConstant %float 1
59%frexp_6fb3ad = OpFunction %void None %9
60 %10 = OpLabel
61 %res = OpVariable %_ptr_Function___frexp_result_vec2_f32 Function
62 OpStore %res %17
63 OpReturn
64 OpFunctionEnd
65%fragment_main = OpFunction %void None %9
66 %23 = OpLabel
67 %24 = OpFunctionCall %void %frexp_6fb3ad
68 OpReturn
69 OpFunctionEnd
70%compute_main = OpFunction %void None %9
71 %26 = OpLabel
72 %27 = OpFunctionCall %void %frexp_6fb3ad
73 OpReturn
74 OpFunctionEnd
75%vertex_main_inner = OpFunction %VertexOutput None %30
76 %31 = OpLabel
77 %out = OpVariable %_ptr_Function_VertexOutput Function %34
78 %35 = OpAccessChain %_ptr_Function_v4float %out %uint_0
dan sinclair50260412024-08-28 19:43:27 +000079 OpStore %35 %39 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000080 %40 = OpFunctionCall %void %frexp_6fb3ad
dan sinclair50260412024-08-28 19:43:27 +000081 %41 = OpLoad %VertexOutput %out None
dan sinclair1b77b6c2024-08-06 15:47:05 +000082 OpReturnValue %41
83 OpFunctionEnd
84%vertex_main = OpFunction %void None %9
85 %43 = OpLabel
86 %44 = OpFunctionCall %VertexOutput %vertex_main_inner
87 %45 = OpCompositeExtract %v4float %44 0
dan sinclair50260412024-08-28 19:43:27 +000088 OpStore %vertex_main_position_Output %45 None
89 OpStore %vertex_main___point_size_Output %float_1 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000090 OpReturn
91 OpFunctionEnd