blob: 2056958b390f39cf79d2b92ad262bc89c66435f9 [file] [log] [blame]
Ben Claytonda5424b2022-10-24 23:58:53 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
Ben Clayton77a90cb2023-03-06 18:25:08 +00004; Bound: 49
Ben Claytonda5424b2022-10-24 23:58:53 +00005; Schema: 0
6 OpCapability Shader
7 OpCapability Sampled1D
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
10 OpEntryPoint Fragment %fragment_main "fragment_main"
11 OpEntryPoint GLCompute %compute_main "compute_main"
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
14 OpName %value "value"
15 OpName %vertex_point_size "vertex_point_size"
16 OpName %arg_0 "arg_0"
Ben Clayton77a90cb2023-03-06 18:25:08 +000017 OpName %prevent_dce_block "prevent_dce_block"
18 OpMemberName %prevent_dce_block 0 "inner"
19 OpName %prevent_dce "prevent_dce"
Ben Claytonda5424b2022-10-24 23:58:53 +000020 OpName %textureLoad_6d376a "textureLoad_6d376a"
21 OpName %arg_1 "arg_1"
22 OpName %arg_2 "arg_2"
23 OpName %res "res"
24 OpName %vertex_main_inner "vertex_main_inner"
25 OpName %vertex_main "vertex_main"
26 OpName %fragment_main "fragment_main"
27 OpName %compute_main "compute_main"
28 OpDecorate %value BuiltIn Position
29 OpDecorate %vertex_point_size BuiltIn PointSize
30 OpDecorate %arg_0 DescriptorSet 1
31 OpDecorate %arg_0 Binding 0
Ben Clayton77a90cb2023-03-06 18:25:08 +000032 OpDecorate %prevent_dce_block Block
33 OpMemberDecorate %prevent_dce_block 0 Offset 0
34 OpDecorate %prevent_dce DescriptorSet 2
35 OpDecorate %prevent_dce Binding 0
Ben Claytonda5424b2022-10-24 23:58:53 +000036 %float = OpTypeFloat 32
37 %v4float = OpTypeVector %float 4
38%_ptr_Output_v4float = OpTypePointer Output %v4float
39 %5 = OpConstantNull %v4float
40 %value = OpVariable %_ptr_Output_v4float Output %5
41%_ptr_Output_float = OpTypePointer Output %float
42 %8 = OpConstantNull %float
43%vertex_point_size = OpVariable %_ptr_Output_float Output %8
44 %11 = OpTypeImage %float 1D 0 0 0 1 Unknown
45%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
46 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
Ben Clayton77a90cb2023-03-06 18:25:08 +000047%prevent_dce_block = OpTypeStruct %v4float
48%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
49%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
Ben Claytonda5424b2022-10-24 23:58:53 +000050 %void = OpTypeVoid
Ben Clayton77a90cb2023-03-06 18:25:08 +000051 %15 = OpTypeFunction %void
Ben Claytonda5424b2022-10-24 23:58:53 +000052 %uint = OpTypeInt 32 0
53 %uint_1 = OpConstant %uint 1
54%_ptr_Function_uint = OpTypePointer Function %uint
Ben Clayton77a90cb2023-03-06 18:25:08 +000055 %23 = OpConstantNull %uint
Ben Claytonda5424b2022-10-24 23:58:53 +000056%_ptr_Function_v4float = OpTypePointer Function %v4float
Ben Clayton77a90cb2023-03-06 18:25:08 +000057 %uint_0 = OpConstant %uint 0
58%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
59 %35 = OpTypeFunction %v4float
Ben Claytonda5424b2022-10-24 23:58:53 +000060 %float_1 = OpConstant %float 1
Ben Clayton77a90cb2023-03-06 18:25:08 +000061%textureLoad_6d376a = OpFunction %void None %15
62 %18 = OpLabel
63 %arg_1 = OpVariable %_ptr_Function_uint Function %23
64 %arg_2 = OpVariable %_ptr_Function_uint Function %23
Ben Claytonda5424b2022-10-24 23:58:53 +000065 %res = OpVariable %_ptr_Function_v4float Function %5
66 OpStore %arg_1 %uint_1
67 OpStore %arg_2 %uint_1
Ben Clayton77a90cb2023-03-06 18:25:08 +000068 %26 = OpLoad %11 %arg_0
69 %27 = OpLoad %uint %arg_1
70 %28 = OpLoad %uint %arg_2
71 %25 = OpImageFetch %v4float %26 %27 Lod %28
72 OpStore %res %25
73 %33 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0
74 %34 = OpLoad %v4float %res
75 OpStore %33 %34
Ben Claytonda5424b2022-10-24 23:58:53 +000076 OpReturn
77 OpFunctionEnd
Ben Clayton77a90cb2023-03-06 18:25:08 +000078%vertex_main_inner = OpFunction %v4float None %35
79 %37 = OpLabel
80 %38 = OpFunctionCall %void %textureLoad_6d376a
Ben Claytonda5424b2022-10-24 23:58:53 +000081 OpReturnValue %5
82 OpFunctionEnd
Ben Clayton77a90cb2023-03-06 18:25:08 +000083%vertex_main = OpFunction %void None %15
84 %40 = OpLabel
85 %41 = OpFunctionCall %v4float %vertex_main_inner
86 OpStore %value %41
Ben Claytonda5424b2022-10-24 23:58:53 +000087 OpStore %vertex_point_size %float_1
88 OpReturn
89 OpFunctionEnd
Ben Clayton77a90cb2023-03-06 18:25:08 +000090%fragment_main = OpFunction %void None %15
91 %44 = OpLabel
92 %45 = OpFunctionCall %void %textureLoad_6d376a
Ben Claytonda5424b2022-10-24 23:58:53 +000093 OpReturn
94 OpFunctionEnd
Ben Clayton77a90cb2023-03-06 18:25:08 +000095%compute_main = OpFunction %void None %15
96 %47 = OpLabel
97 %48 = OpFunctionCall %void %textureLoad_6d376a
Ben Claytonda5424b2022-10-24 23:58:53 +000098 OpReturn
99 OpFunctionEnd