blob: 830c52ab64b3c1840d0414b9cbce0c852f412904 [file] [log] [blame]
James Price830b97f2021-06-11 12:34:26 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
dan sinclair175f9ad2023-12-05 00:37:59 +00004; Bound: 33
James Price830b97f2021-06-11 12:34:26 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
dan sinclair175f9ad2023-12-05 00:37:59 +00008 OpEntryPoint Fragment %main "main"
9 OpExecutionMode %main OriginUpperLeft
10 OpName %t "t"
11 OpName %d "d"
James Price830b97f2021-06-11 12:34:26 +000012 OpName %s "s"
13 OpName %sc "sc"
14 OpName %main "main"
dan sinclair175f9ad2023-12-05 00:37:59 +000015 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 Price830b97f2021-06-11 12:34:26 +000021 OpDecorate %s DescriptorSet 0
22 OpDecorate %s Binding 0
23 OpDecorate %sc DescriptorSet 0
24 OpDecorate %sc Binding 1
dan sinclair175f9ad2023-12-05 00:37:59 +000025 %float = OpTypeFloat 32
26 %3 = OpTypeImage %float 2D 0 0 0 1 Unknown
James Price830b97f2021-06-11 12:34:26 +000027%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
dan sinclair175f9ad2023-12-05 00:37:59 +000028 %t = OpVariable %_ptr_UniformConstant_3 UniformConstant
James Price830b97f2021-06-11 12:34:26 +000029%_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3
dan sinclair175f9ad2023-12-05 00:37:59 +000030 %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 Price830b97f2021-06-11 12:34:26 +000036 %void = OpTypeVoid
dan sinclair175f9ad2023-12-05 00:37:59 +000037 %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 Price830b97f2021-06-11 12:34:26 +000059 OpReturn
60 OpFunctionEnd