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 |
| 4 | ; Bound: 27 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 9 | OpExecutionMode %fragment_main OriginUpperLeft |
| 10 | OpName %arg_0 "arg_0" |
| 11 | OpName %arg_1 "arg_1" |
| 12 | OpName %textureSample_ea7030 "textureSample_ea7030" |
| 13 | OpName %res "res" |
| 14 | OpName %fragment_main "fragment_main" |
| 15 | OpDecorate %arg_0 DescriptorSet 1 |
| 16 | OpDecorate %arg_0 Binding 0 |
| 17 | OpDecorate %arg_1 DescriptorSet 1 |
| 18 | OpDecorate %arg_1 Binding 1 |
| 19 | %float = OpTypeFloat 32 |
| 20 | %3 = OpTypeImage %float Cube 1 0 0 1 Unknown |
| 21 | %_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3 |
| 22 | %arg_0 = OpVariable %_ptr_UniformConstant_3 UniformConstant |
| 23 | %7 = OpTypeSampler |
| 24 | %_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7 |
| 25 | %arg_1 = OpVariable %_ptr_UniformConstant_7 UniformConstant |
| 26 | %void = OpTypeVoid |
| 27 | %8 = OpTypeFunction %void |
| 28 | %v4float = OpTypeVector %float 4 |
| 29 | %17 = OpTypeSampledImage %3 |
| 30 | %v3float = OpTypeVector %float 3 |
| 31 | %20 = OpConstantNull %v3float |
| 32 | %_ptr_Function_float = OpTypePointer Function %float |
| 33 | %23 = OpConstantNull %float |
| 34 | %textureSample_ea7030 = OpFunction %void None %8 |
| 35 | %11 = OpLabel |
| 36 | %res = OpVariable %_ptr_Function_float Function %23 |
| 37 | %15 = OpLoad %7 %arg_1 |
| 38 | %16 = OpLoad %3 %arg_0 |
| 39 | %18 = OpSampledImage %17 %16 %15 |
| 40 | %13 = OpImageSampleImplicitLod %v4float %18 %20 |
| 41 | %12 = OpCompositeExtract %float %13 0 |
| 42 | OpStore %res %12 |
| 43 | OpReturn |
| 44 | OpFunctionEnd |
| 45 | %fragment_main = OpFunction %void None %8 |
| 46 | %25 = OpLabel |
| 47 | %26 = OpFunctionCall %void %textureSample_ea7030 |
| 48 | OpReturn |
| 49 | OpFunctionEnd |