blob: 4a78cb03852e1263045d3da36e28cc5b448ca904 [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: 48
Ben Claytonb07a7ce2021-06-03 11:26:17 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
James Price11c6fcd2021-08-05 17:34:19 +00008 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
Ben Claytonb07a7ce2021-06-03 11:26:17 +00009 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpEntryPoint GLCompute %compute_main "compute_main"
11 OpExecutionMode %fragment_main OriginUpperLeft
12 OpExecutionMode %compute_main LocalSize 1 1 1
James Price11c6fcd2021-08-05 17:34:19 +000013 OpName %value "value"
14 OpName %vertex_point_size "vertex_point_size"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000015 OpName %arg_0 "arg_0"
16 OpName %arg_1 "arg_1"
17 OpName %textureSampleLevel_47daa4 "textureSampleLevel_47daa4"
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 DescriptorSet 1
26 OpDecorate %arg_0 Binding 0
27 OpDecorate %arg_1 DescriptorSet 1
28 OpDecorate %arg_1 Binding 1
29 %float = OpTypeFloat 32
Ben Claytonb07a7ce2021-06-03 11:26:17 +000030 %v4float = OpTypeVector %float 4
James Price9fd3bef2021-06-04 17:31:48 +000031%_ptr_Output_v4float = OpTypePointer Output %v4float
James Price11c6fcd2021-08-05 17:34:19 +000032 %5 = OpConstantNull %v4float
33 %value = OpVariable %_ptr_Output_v4float Output %5
34%_ptr_Output_float = OpTypePointer Output %float
35 %8 = OpConstantNull %float
36%vertex_point_size = OpVariable %_ptr_Output_float Output %8
37 %11 = OpTypeImage %float 2D 1 0 0 1 Unknown
38%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
39 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
40 %14 = OpTypeSampler
41%_ptr_UniformConstant_14 = OpTypePointer UniformConstant %14
42 %arg_1 = OpVariable %_ptr_UniformConstant_14 UniformConstant
James Price9fd3bef2021-06-04 17:31:48 +000043 %void = OpTypeVoid
44 %15 = OpTypeFunction %void
James Price11c6fcd2021-08-05 17:34:19 +000045 %23 = OpTypeSampledImage %11
Ben Claytonb07a7ce2021-06-03 11:26:17 +000046 %v2float = OpTypeVector %float 2
James Price9fd3bef2021-06-04 17:31:48 +000047 %26 = OpConstantNull %v2float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000048 %int = OpTypeInt 32 1
Ben Claytone4fd4a22021-07-08 21:04:53 +000049 %int_0 = OpConstant %int 0
Ben Claytonb07a7ce2021-06-03 11:26:17 +000050 %v2int = OpTypeVector %int 2
James Price9fd3bef2021-06-04 17:31:48 +000051 %31 = OpConstantNull %v2int
Ben Claytonb07a7ce2021-06-03 11:26:17 +000052%_ptr_Function_float = OpTypePointer Function %float
James Price11c6fcd2021-08-05 17:34:19 +000053 %34 = OpTypeFunction %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000054 %float_1 = OpConstant %float 1
James Price9fd3bef2021-06-04 17:31:48 +000055%textureSampleLevel_47daa4 = OpFunction %void None %15
56 %18 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000057 %res = OpVariable %_ptr_Function_float Function %8
58 %21 = OpLoad %14 %arg_1
59 %22 = OpLoad %11 %arg_0
James Price9fd3bef2021-06-04 17:31:48 +000060 %24 = OpSampledImage %23 %22 %21
Ben Claytone4fd4a22021-07-08 21:04:53 +000061 %27 = OpConvertSToF %float %int_0
James Price9fd3bef2021-06-04 17:31:48 +000062 %20 = OpImageSampleExplicitLod %v4float %24 %26 Lod|ConstOffset %27 %31
63 %19 = OpCompositeExtract %float %20 0
64 OpStore %res %19
Ben Claytonb07a7ce2021-06-03 11:26:17 +000065 OpReturn
66 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000067%vertex_main_inner = OpFunction %v4float None %34
68 %36 = OpLabel
69 %37 = OpFunctionCall %void %textureSampleLevel_47daa4
70 OpReturnValue %5
Ben Claytonb07a7ce2021-06-03 11:26:17 +000071 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000072%vertex_main = OpFunction %void None %15
Ben Claytonb07a7ce2021-06-03 11:26:17 +000073 %39 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000074 %40 = OpFunctionCall %v4float %vertex_main_inner
75 OpStore %value %40
76 OpStore %vertex_point_size %float_1
James Price9fd3bef2021-06-04 17:31:48 +000077 OpReturn
78 OpFunctionEnd
79%fragment_main = OpFunction %void None %15
James Price11c6fcd2021-08-05 17:34:19 +000080 %43 = OpLabel
81 %44 = OpFunctionCall %void %textureSampleLevel_47daa4
James Price9fd3bef2021-06-04 17:31:48 +000082 OpReturn
83 OpFunctionEnd
84%compute_main = OpFunction %void None %15
James Price11c6fcd2021-08-05 17:34:19 +000085 %46 = OpLabel
86 %47 = OpFunctionCall %void %textureSampleLevel_47daa4
Ben Claytonb07a7ce2021-06-03 11:26:17 +000087 OpReturn
88 OpFunctionEnd