Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +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: 43 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 8 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 9 | 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 Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 13 | OpName %value "value" |
| 14 | OpName %vertex_point_size "vertex_point_size" |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 15 | OpName %arg_0 "arg_0" |
| 16 | OpName %arg_1 "arg_1" |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 17 | OpName %textureSampleCompareLevel_1568e3 "textureSampleCompareLevel_1568e3" |
| 18 | OpName %res "res" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 19 | OpName %vertex_main_inner "vertex_main_inner" |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 20 | OpName %vertex_main "vertex_main" |
| 21 | OpName %fragment_main "fragment_main" |
| 22 | OpName %compute_main "compute_main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 23 | OpDecorate %value BuiltIn Position |
| 24 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 25 | OpDecorate %arg_0 DescriptorSet 1 |
| 26 | OpDecorate %arg_0 Binding 0 |
| 27 | OpDecorate %arg_1 DescriptorSet 1 |
| 28 | OpDecorate %arg_1 Binding 1 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 29 | %float = OpTypeFloat 32 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 30 | %v4float = OpTypeVector %float 4 |
| 31 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 32 | %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 |
Jiawei Shao | 9d27aaa | 2022-04-08 08:33:28 +0000 | [diff] [blame^] | 37 | %11 = OpTypeImage %float Cube 0 0 0 1 Unknown |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 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 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 43 | %void = OpTypeVoid |
| 44 | %15 = OpTypeFunction %void |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 45 | %22 = OpTypeSampledImage %11 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 46 | %v3float = OpTypeVector %float 3 |
| 47 | %25 = OpConstantNull %v3float |
| 48 | %float_1 = OpConstant %float 1 |
| 49 | %float_0 = OpConstant %float 0 |
| 50 | %_ptr_Function_float = OpTypePointer Function %float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 51 | %30 = OpTypeFunction %v4float |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 52 | %textureSampleCompareLevel_1568e3 = OpFunction %void None %15 |
| 53 | %18 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 54 | %res = OpVariable %_ptr_Function_float Function %8 |
| 55 | %20 = OpLoad %14 %arg_1 |
| 56 | %21 = OpLoad %11 %arg_0 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 57 | %23 = OpSampledImage %22 %21 %20 |
| 58 | %19 = OpImageSampleDrefExplicitLod %float %23 %25 %float_1 Lod %float_0 |
| 59 | OpStore %res %19 |
| 60 | OpReturn |
| 61 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 62 | %vertex_main_inner = OpFunction %v4float None %30 |
| 63 | %32 = OpLabel |
| 64 | %33 = OpFunctionCall %void %textureSampleCompareLevel_1568e3 |
| 65 | OpReturnValue %5 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 66 | OpFunctionEnd |
| 67 | %vertex_main = OpFunction %void None %15 |
| 68 | %35 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 69 | %36 = OpFunctionCall %v4float %vertex_main_inner |
| 70 | OpStore %value %36 |
| 71 | OpStore %vertex_point_size %float_1 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 72 | OpReturn |
| 73 | OpFunctionEnd |
| 74 | %fragment_main = OpFunction %void None %15 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 75 | %38 = OpLabel |
| 76 | %39 = OpFunctionCall %void %textureSampleCompareLevel_1568e3 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 77 | OpReturn |
| 78 | OpFunctionEnd |
| 79 | %compute_main = OpFunction %void None %15 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 80 | %41 = OpLabel |
| 81 | %42 = OpFunctionCall %void %textureSampleCompareLevel_1568e3 |
Ben Clayton | 58e2fb1 | 2021-06-14 15:29:34 +0000 | [diff] [blame] | 82 | OpReturn |
| 83 | OpFunctionEnd |