| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 32 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Fragment %main "main" | |
| OpExecutionMode %main OriginUpperLeft | |
| OpName %t "t" | |
| OpName %d "d" | |
| OpName %s "s" | |
| OpName %sc "sc" | |
| OpName %main "main" | |
| OpName %a "a" | |
| OpName %b "b" | |
| OpDecorate %t DescriptorSet 1 | |
| OpDecorate %t Binding 0 | |
| OpDecorate %d DescriptorSet 1 | |
| OpDecorate %d Binding 1 | |
| OpDecorate %s DescriptorSet 0 | |
| OpDecorate %s Binding 0 | |
| OpDecorate %sc DescriptorSet 0 | |
| OpDecorate %sc Binding 1 | |
| %float = OpTypeFloat 32 | |
| %3 = OpTypeImage %float 2D 0 0 0 1 Unknown | |
| %_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3 | |
| %t = OpVariable %_ptr_UniformConstant_3 UniformConstant | |
| %_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3 | |
| %d = OpVariable %_ptr_UniformConstant_3_0 UniformConstant | |
| %9 = OpTypeSampler | |
| %_ptr_UniformConstant_9 = OpTypePointer UniformConstant %9 | |
| %s = OpVariable %_ptr_UniformConstant_9 UniformConstant | |
| %_ptr_UniformConstant_9_0 = OpTypePointer UniformConstant %9 | |
| %sc = OpVariable %_ptr_UniformConstant_9_0 UniformConstant | |
| %void = OpTypeVoid | |
| %14 = OpTypeFunction %void | |
| %19 = OpTypeSampledImage %3 | |
| %v4float = OpTypeVector %float 4 | |
| %v2float = OpTypeVector %float 2 | |
| %float_1 = OpConstant %float 1 | |
| %22 = OpConstantComposite %v2float %float_1 %float_1 | |
| %_ptr_Function_v4float = OpTypePointer Function %v4float | |
| %main = OpFunction %void None %14 | |
| %15 = OpLabel | |
| %a = OpVariable %_ptr_Function_v4float Function | |
| %b = OpVariable %_ptr_Function_v4float Function | |
| %16 = OpLoad %3 %t None | |
| %17 = OpLoad %9 %s None | |
| %18 = OpSampledImage %19 %16 %17 | |
| %20 = OpImageSampleImplicitLod %v4float %18 %22 None | |
| OpStore %a %20 | |
| %27 = OpLoad %3 %d None | |
| %28 = OpLoad %9 %sc None | |
| %29 = OpSampledImage %19 %27 %28 | |
| %30 = OpImageDrefGather %v4float %29 %22 %float_1 None | |
| OpStore %b %30 | |
| OpReturn | |
| OpFunctionEnd |