blob: f455b1f0bc519c6c2d18c1fd34d9d576ed5dd0a1 [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 Image1D
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpEntryPoint GLCompute %compute_main "compute_main"
11 OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
14 OpMemberName %tint_symbol_1 0 "tint_symbol"
15 OpName %tint_symbol_1 "tint_symbol_1"
16 OpName %arg_0 "arg_0"
17 OpName %vertex_main_position_Output "vertex_main_position_Output"
18 OpName %vertex_main_loc0_Output "vertex_main_loc0_Output"
19 OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
20 OpName %textureLoad_84c728 "textureLoad_84c728"
21 OpName %res "res"
22 OpName %fragment_main "fragment_main"
23 OpName %compute_main "compute_main"
24 OpName %vertex_main_inner "vertex_main_inner"
25 OpMemberName %VertexOutput 0 "pos"
26 OpMemberName %VertexOutput 1 "prevent_dce"
27 OpName %VertexOutput "VertexOutput"
28 OpName %out "out"
29 OpName %vertex_main "vertex_main"
30 OpMemberDecorate %tint_symbol_1 0 Offset 0
31 OpDecorate %tint_symbol_1 Block
32 OpDecorate %1 DescriptorSet 0
33 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000034 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000035 OpDecorate %arg_0 DescriptorSet 1
36 OpDecorate %arg_0 Binding 0
37 OpDecorate %arg_0 NonWritable
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 %float = OpTypeFloat 32
45 %v4float = OpTypeVector %float 4
46%tint_symbol_1 = OpTypeStruct %v4float
47%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
48 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
49 %8 = OpTypeImage %float 1D 0 0 0 2 Rgba32f
50%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
51 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
52%_ptr_Output_v4float = OpTypePointer Output %v4float
53%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
54%vertex_main_loc0_Output = OpVariable %_ptr_Output_v4float Output
55%_ptr_Output_float = OpTypePointer Output %float
56%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
57 %15 = OpTypeFunction %v4float
58 %uint = OpTypeInt 32 0
59 %uint_1 = OpConstant %uint 1
60%_ptr_Function_v4float = OpTypePointer Function %v4float
61 %void = OpTypeVoid
62 %26 = OpTypeFunction %void
63%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
64 %uint_0 = OpConstant %uint 0
65%VertexOutput = OpTypeStruct %v4float %v4float
66 %38 = OpTypeFunction %VertexOutput
67%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
68 %42 = OpConstantNull %VertexOutput
69 %44 = OpConstantNull %v4float
70 %float_1 = OpConstant %float 1
71%textureLoad_84c728 = OpFunction %v4float None %15
72 %16 = OpLabel
73 %res = OpVariable %_ptr_Function_v4float Function
dan sinclair50260412024-08-28 19:43:27 +000074 %17 = OpLoad %8 %arg_0 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000075 %18 = OpImageRead %v4float %17 %uint_1 None
76 OpStore %res %18
dan sinclair50260412024-08-28 19:43:27 +000077 %23 = OpLoad %v4float %res None
dan sinclair1b77b6c2024-08-06 15:47:05 +000078 OpReturnValue %23
79 OpFunctionEnd
80%fragment_main = OpFunction %void None %26
81 %27 = OpLabel
82 %28 = OpFunctionCall %v4float %textureLoad_84c728
83 %29 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000084 OpStore %29 %28 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000085 OpReturn
86 OpFunctionEnd
87%compute_main = OpFunction %void None %26
88 %33 = OpLabel
89 %34 = OpFunctionCall %v4float %textureLoad_84c728
90 %35 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000091 OpStore %35 %34 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000092 OpReturn
93 OpFunctionEnd
94%vertex_main_inner = OpFunction %VertexOutput None %38
95 %39 = OpLabel
96 %out = OpVariable %_ptr_Function_VertexOutput Function %42
97 %43 = OpAccessChain %_ptr_Function_v4float %out %uint_0
dan sinclair50260412024-08-28 19:43:27 +000098 OpStore %43 %44 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000099 %45 = OpAccessChain %_ptr_Function_v4float %out %uint_1
100 %46 = OpFunctionCall %v4float %textureLoad_84c728
dan sinclair50260412024-08-28 19:43:27 +0000101 OpStore %45 %46 None
102 %47 = OpLoad %VertexOutput %out None
dan sinclair1b77b6c2024-08-06 15:47:05 +0000103 OpReturnValue %47
104 OpFunctionEnd
105%vertex_main = OpFunction %void None %26
106 %49 = OpLabel
107 %50 = OpFunctionCall %VertexOutput %vertex_main_inner
108 %51 = OpCompositeExtract %v4float %50 0
dan sinclair50260412024-08-28 19:43:27 +0000109 OpStore %vertex_main_position_Output %51 None
dan sinclair1b77b6c2024-08-06 15:47:05 +0000110 %52 = OpCompositeExtract %v4float %50 1
dan sinclair50260412024-08-28 19:43:27 +0000111 OpStore %vertex_main_loc0_Output %52 None
112 OpStore %vertex_main___point_size_Output %float_1 None
dan sinclair1b77b6c2024-08-06 15:47:05 +0000113 OpReturn
114 OpFunctionEnd