blob: 814b999de5a6015c1fc0ae952a051d181e1032a4 [file] [log] [blame]
Ben Claytonb07a7ce2021-06-03 11:26:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
James Price11c6fcd2021-08-05 17:34:19 +00004; Bound: 37
Ben Claytonb07a7ce2021-06-03 11:26:17 +00005; Schema: 0
6 OpCapability Shader
7 OpCapability ImageQuery
8 OpMemoryModel Logical GLSL450
James Price11c6fcd2021-08-05 17:34:19 +00009 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
Ben Claytonb07a7ce2021-06-03 11:26:17 +000010 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
James Price11c6fcd2021-08-05 17:34:19 +000014 OpName %value "value"
15 OpName %vertex_point_size "vertex_point_size"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000016 OpName %arg_0 "arg_0"
17 OpName %textureDimensions_8028f3 "textureDimensions_8028f3"
18 OpName %res "res"
James Price11c6fcd2021-08-05 17:34:19 +000019 OpName %vertex_main_inner "vertex_main_inner"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000020 OpName %vertex_main "vertex_main"
21 OpName %fragment_main "fragment_main"
22 OpName %compute_main "compute_main"
James Price11c6fcd2021-08-05 17:34:19 +000023 OpDecorate %value BuiltIn Position
24 OpDecorate %vertex_point_size BuiltIn PointSize
Ben Claytonb07a7ce2021-06-03 11:26:17 +000025 OpDecorate %arg_0 NonReadable
26 OpDecorate %arg_0 DescriptorSet 1
27 OpDecorate %arg_0 Binding 0
28 %float = OpTypeFloat 32
James Price9fd3bef2021-06-04 17:31:48 +000029 %v4float = OpTypeVector %float 4
30%_ptr_Output_v4float = OpTypePointer Output %v4float
James Price11c6fcd2021-08-05 17:34:19 +000031 %5 = OpConstantNull %v4float
32 %value = OpVariable %_ptr_Output_v4float Output %5
33%_ptr_Output_float = OpTypePointer Output %float
34 %8 = OpConstantNull %float
35%vertex_point_size = OpVariable %_ptr_Output_float Output %8
36 %11 = OpTypeImage %float 3D 0 0 0 2 R32f
37%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
38 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
Ben Claytonb07a7ce2021-06-03 11:26:17 +000039 %void = OpTypeVoid
James Price9fd3bef2021-06-04 17:31:48 +000040 %12 = OpTypeFunction %void
Ben Claytonb07a7ce2021-06-03 11:26:17 +000041 %int = OpTypeInt 32 1
42 %v3int = OpTypeVector %int 3
43%_ptr_Function_v3int = OpTypePointer Function %v3int
James Price9fd3bef2021-06-04 17:31:48 +000044 %22 = OpConstantNull %v3int
James Price11c6fcd2021-08-05 17:34:19 +000045 %23 = OpTypeFunction %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000046 %float_1 = OpConstant %float 1
James Price9fd3bef2021-06-04 17:31:48 +000047%textureDimensions_8028f3 = OpFunction %void None %12
48 %15 = OpLabel
49 %res = OpVariable %_ptr_Function_v3int Function %22
James Price11c6fcd2021-08-05 17:34:19 +000050 %19 = OpLoad %11 %arg_0
James Price9fd3bef2021-06-04 17:31:48 +000051 %16 = OpImageQuerySize %v3int %19
52 OpStore %res %16
Ben Claytonb07a7ce2021-06-03 11:26:17 +000053 OpReturn
54 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000055%vertex_main_inner = OpFunction %v4float None %23
56 %25 = OpLabel
57 %26 = OpFunctionCall %void %textureDimensions_8028f3
58 OpReturnValue %5
James Price9fd3bef2021-06-04 17:31:48 +000059 OpFunctionEnd
60%vertex_main = OpFunction %void None %12
61 %28 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000062 %29 = OpFunctionCall %v4float %vertex_main_inner
63 OpStore %value %29
64 OpStore %vertex_point_size %float_1
Ben Claytonb07a7ce2021-06-03 11:26:17 +000065 OpReturn
66 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000067%fragment_main = OpFunction %void None %12
James Price11c6fcd2021-08-05 17:34:19 +000068 %32 = OpLabel
69 %33 = OpFunctionCall %void %textureDimensions_8028f3
Ben Claytonb07a7ce2021-06-03 11:26:17 +000070 OpReturn
71 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000072%compute_main = OpFunction %void None %12
James Price11c6fcd2021-08-05 17:34:19 +000073 %35 = OpLabel
74 %36 = OpFunctionCall %void %textureDimensions_8028f3
Ben Claytonb07a7ce2021-06-03 11:26:17 +000075 OpReturn
76 OpFunctionEnd