blob: a5cff357e911e0730ff1a23e7f44c44d85bef742 [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: 47
Ben Claytonb07a7ce2021-06-03 11:26:17 +00005; Schema: 0
6 OpCapability Shader
7 OpCapability SampledCubeArray
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 %arg_1 "arg_1"
18 OpName %textureSampleGrad_e383db "textureSampleGrad_e383db"
19 OpName %res "res"
James Price11c6fcd2021-08-05 17:34:19 +000020 OpName %vertex_main_inner "vertex_main_inner"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000021 OpName %vertex_main "vertex_main"
22 OpName %fragment_main "fragment_main"
23 OpName %compute_main "compute_main"
James Price11c6fcd2021-08-05 17:34:19 +000024 OpDecorate %value BuiltIn Position
25 OpDecorate %vertex_point_size BuiltIn PointSize
Ben Claytonb07a7ce2021-06-03 11:26:17 +000026 OpDecorate %arg_0 DescriptorSet 1
27 OpDecorate %arg_0 Binding 0
28 OpDecorate %arg_1 DescriptorSet 1
29 OpDecorate %arg_1 Binding 1
30 %float = OpTypeFloat 32
Ben Claytonb07a7ce2021-06-03 11:26:17 +000031 %v4float = OpTypeVector %float 4
James Price9fd3bef2021-06-04 17:31:48 +000032%_ptr_Output_v4float = OpTypePointer Output %v4float
James Price11c6fcd2021-08-05 17:34:19 +000033 %5 = OpConstantNull %v4float
34 %value = OpVariable %_ptr_Output_v4float Output %5
35%_ptr_Output_float = OpTypePointer Output %float
36 %8 = OpConstantNull %float
37%vertex_point_size = OpVariable %_ptr_Output_float Output %8
38 %11 = OpTypeImage %float Cube 0 1 0 1 Unknown
39%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
40 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
41 %14 = OpTypeSampler
42%_ptr_UniformConstant_14 = OpTypePointer UniformConstant %14
43 %arg_1 = OpVariable %_ptr_UniformConstant_14 UniformConstant
James Price9fd3bef2021-06-04 17:31:48 +000044 %void = OpTypeVoid
45 %15 = OpTypeFunction %void
James Price11c6fcd2021-08-05 17:34:19 +000046 %22 = OpTypeSampledImage %11
Ben Clayton55ca24e2021-06-03 15:08:14 +000047 %float_0 = OpConstant %float 0
Ben Claytonb07a7ce2021-06-03 11:26:17 +000048 %int = OpTypeInt 32 1
49 %int_1 = OpConstant %int 1
50 %v3float = OpTypeVector %float 3
James Price9fd3bef2021-06-04 17:31:48 +000051 %30 = OpConstantNull %v3float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000052%_ptr_Function_v4float = OpTypePointer Function %v4float
James Price11c6fcd2021-08-05 17:34:19 +000053 %33 = OpTypeFunction %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000054 %float_1 = OpConstant %float 1
James Price9fd3bef2021-06-04 17:31:48 +000055%textureSampleGrad_e383db = OpFunction %void None %15
56 %18 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000057 %res = OpVariable %_ptr_Function_v4float Function %5
58 %20 = OpLoad %14 %arg_1
59 %21 = OpLoad %11 %arg_0
James Price9fd3bef2021-06-04 17:31:48 +000060 %23 = OpSampledImage %22 %21 %20
61 %25 = OpConvertSToF %float %int_1
62 %28 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %25
63 %19 = OpImageSampleExplicitLod %v4float %23 %28 Grad %30 %30
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 %33
68 %35 = OpLabel
69 %36 = OpFunctionCall %void %textureSampleGrad_e383db
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
73 %38 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000074 %39 = OpFunctionCall %v4float %vertex_main_inner
75 OpStore %value %39
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 %42 = OpLabel
81 %43 = OpFunctionCall %void %textureSampleGrad_e383db
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 %45 = OpLabel
86 %46 = OpFunctionCall %void %textureSampleGrad_e383db
Ben Claytonb07a7ce2021-06-03 11:26:17 +000087 OpReturn
88 OpFunctionEnd