| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 33 |
| ; 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 |
| %12 = OpTypeFunction %void |
| %v4float = OpTypeVector %float 4 |
| %20 = OpTypeSampledImage %3 |
| %v2float = OpTypeVector %float 2 |
| %float_1 = OpConstant %float 1 |
| %24 = OpConstantComposite %v2float %float_1 %float_1 |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %27 = OpConstantNull %v4float |
| %main = OpFunction %void None %12 |
| %15 = OpLabel |
| %a = OpVariable %_ptr_Function_v4float Function %27 |
| %b = OpVariable %_ptr_Function_v4float Function %27 |
| %18 = OpLoad %9 %s |
| %19 = OpLoad %3 %t |
| %21 = OpSampledImage %20 %19 %18 |
| %16 = OpImageSampleImplicitLod %v4float %21 %24 |
| OpStore %a %16 |
| %29 = OpLoad %9 %sc |
| %30 = OpLoad %3 %d |
| %31 = OpSampledImage %20 %30 %29 |
| %28 = OpImageDrefGather %v4float %31 %24 %float_1 |
| OpStore %b %28 |
| OpReturn |
| OpFunctionEnd |