Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 4 | ; Bound: 47 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability SampledCubeArray |
| 8 | OpMemoryModel Logical GLSL450 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 9 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 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 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 14 | OpName %value "value" |
| 15 | OpName %vertex_point_size "vertex_point_size" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 16 | OpName %arg_0 "arg_0" |
| 17 | OpName %arg_1 "arg_1" |
| 18 | OpName %textureSampleGrad_e383db "textureSampleGrad_e383db" |
| 19 | OpName %res "res" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 20 | OpName %vertex_main_inner "vertex_main_inner" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 21 | OpName %vertex_main "vertex_main" |
| 22 | OpName %fragment_main "fragment_main" |
| 23 | OpName %compute_main "compute_main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 24 | OpDecorate %value BuiltIn Position |
| 25 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 26 | 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 Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 31 | %v4float = OpTypeVector %float 4 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 32 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 33 | %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 Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 44 | %void = OpTypeVoid |
| 45 | %15 = OpTypeFunction %void |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 46 | %22 = OpTypeSampledImage %11 |
Ben Clayton | 55ca24e | 2021-06-03 15:08:14 +0000 | [diff] [blame] | 47 | %float_0 = OpConstant %float 0 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 48 | %int = OpTypeInt 32 1 |
| 49 | %int_1 = OpConstant %int 1 |
| 50 | %v3float = OpTypeVector %float 3 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 51 | %30 = OpConstantNull %v3float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 52 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 53 | %33 = OpTypeFunction %v4float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 54 | %float_1 = OpConstant %float 1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 55 | %textureSampleGrad_e383db = OpFunction %void None %15 |
| 56 | %18 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 57 | %res = OpVariable %_ptr_Function_v4float Function %5 |
| 58 | %20 = OpLoad %14 %arg_1 |
| 59 | %21 = OpLoad %11 %arg_0 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 60 | %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 Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 65 | OpReturn |
| 66 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 67 | %vertex_main_inner = OpFunction %v4float None %33 |
| 68 | %35 = OpLabel |
| 69 | %36 = OpFunctionCall %void %textureSampleGrad_e383db |
| 70 | OpReturnValue %5 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 71 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 72 | %vertex_main = OpFunction %void None %15 |
| 73 | %38 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 74 | %39 = OpFunctionCall %v4float %vertex_main_inner |
| 75 | OpStore %value %39 |
| 76 | OpStore %vertex_point_size %float_1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 77 | OpReturn |
| 78 | OpFunctionEnd |
| 79 | %fragment_main = OpFunction %void None %15 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 80 | %42 = OpLabel |
| 81 | %43 = OpFunctionCall %void %textureSampleGrad_e383db |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 82 | OpReturn |
| 83 | OpFunctionEnd |
| 84 | %compute_main = OpFunction %void None %15 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 85 | %45 = OpLabel |
| 86 | %46 = OpFunctionCall %void %textureSampleGrad_e383db |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 87 | OpReturn |
| 88 | OpFunctionEnd |