James Price | 830b97f | 2021-06-11 12:34:26 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
dan sinclair | 175f9ad | 2023-12-05 00:37:59 +0000 | [diff] [blame] | 4 | ; Bound: 33 |
James Price | 830b97f | 2021-06-11 12:34:26 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
dan sinclair | 175f9ad | 2023-12-05 00:37:59 +0000 | [diff] [blame] | 8 | OpEntryPoint Fragment %main "main" |
| 9 | OpExecutionMode %main OriginUpperLeft |
| 10 | OpName %t "t" |
| 11 | OpName %d "d" |
James Price | 830b97f | 2021-06-11 12:34:26 +0000 | [diff] [blame] | 12 | OpName %s "s" |
| 13 | OpName %sc "sc" |
| 14 | OpName %main "main" |
dan sinclair | 175f9ad | 2023-12-05 00:37:59 +0000 | [diff] [blame] | 15 | OpName %a "a" |
| 16 | OpName %b "b" |
| 17 | OpDecorate %t DescriptorSet 1 |
| 18 | OpDecorate %t Binding 0 |
| 19 | OpDecorate %d DescriptorSet 1 |
| 20 | OpDecorate %d Binding 1 |
James Price | 830b97f | 2021-06-11 12:34:26 +0000 | [diff] [blame] | 21 | OpDecorate %s DescriptorSet 0 |
| 22 | OpDecorate %s Binding 0 |
| 23 | OpDecorate %sc DescriptorSet 0 |
| 24 | OpDecorate %sc Binding 1 |
dan sinclair | 175f9ad | 2023-12-05 00:37:59 +0000 | [diff] [blame] | 25 | %float = OpTypeFloat 32 |
| 26 | %3 = OpTypeImage %float 2D 0 0 0 1 Unknown |
James Price | 830b97f | 2021-06-11 12:34:26 +0000 | [diff] [blame] | 27 | %_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3 |
dan sinclair | 175f9ad | 2023-12-05 00:37:59 +0000 | [diff] [blame] | 28 | %t = OpVariable %_ptr_UniformConstant_3 UniformConstant |
James Price | 830b97f | 2021-06-11 12:34:26 +0000 | [diff] [blame] | 29 | %_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3 |
dan sinclair | 175f9ad | 2023-12-05 00:37:59 +0000 | [diff] [blame] | 30 | %d = OpVariable %_ptr_UniformConstant_3_0 UniformConstant |
| 31 | %9 = OpTypeSampler |
| 32 | %_ptr_UniformConstant_9 = OpTypePointer UniformConstant %9 |
| 33 | %s = OpVariable %_ptr_UniformConstant_9 UniformConstant |
| 34 | %_ptr_UniformConstant_9_0 = OpTypePointer UniformConstant %9 |
| 35 | %sc = OpVariable %_ptr_UniformConstant_9_0 UniformConstant |
James Price | 830b97f | 2021-06-11 12:34:26 +0000 | [diff] [blame] | 36 | %void = OpTypeVoid |
dan sinclair | 175f9ad | 2023-12-05 00:37:59 +0000 | [diff] [blame] | 37 | %12 = OpTypeFunction %void |
| 38 | %v4float = OpTypeVector %float 4 |
| 39 | %20 = OpTypeSampledImage %3 |
| 40 | %v2float = OpTypeVector %float 2 |
| 41 | %float_1 = OpConstant %float 1 |
| 42 | %24 = OpConstantComposite %v2float %float_1 %float_1 |
| 43 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 44 | %27 = OpConstantNull %v4float |
| 45 | %main = OpFunction %void None %12 |
| 46 | %15 = OpLabel |
| 47 | %a = OpVariable %_ptr_Function_v4float Function %27 |
| 48 | %b = OpVariable %_ptr_Function_v4float Function %27 |
| 49 | %18 = OpLoad %9 %s |
| 50 | %19 = OpLoad %3 %t |
| 51 | %21 = OpSampledImage %20 %19 %18 |
| 52 | %16 = OpImageSampleImplicitLod %v4float %21 %24 |
| 53 | OpStore %a %16 |
| 54 | %29 = OpLoad %9 %sc |
| 55 | %30 = OpLoad %3 %d |
| 56 | %31 = OpSampledImage %20 %30 %29 |
| 57 | %28 = OpImageDrefGather %v4float %31 %24 %float_1 |
| 58 | OpStore %b %28 |
James Price | 830b97f | 2021-06-11 12:34:26 +0000 | [diff] [blame] | 59 | OpReturn |
| 60 | OpFunctionEnd |