blob: aa69dd04f5ad0fbc14c85eeb5daf468a212a78d4 [file] [log] [blame]
Ben Clayton37035222021-12-08 19:54:08 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 26
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %main "main"
9 OpExecutionMode %main OriginUpperLeft
10 OpName %t "t"
11 OpName %s "s"
12 OpName %main "main"
13 OpName %res "res"
14 OpDecorate %t DescriptorSet 1
15 OpDecorate %t Binding 0
16 OpDecorate %s DescriptorSet 1
17 OpDecorate %s Binding 1
18 %uint = OpTypeInt 32 0
19 %3 = OpTypeImage %uint 2D 0 0 0 1 Unknown
20%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
21 %t = OpVariable %_ptr_UniformConstant_3 UniformConstant
22 %7 = OpTypeSampler
23%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
24 %s = OpVariable %_ptr_UniformConstant_7 UniformConstant
25 %void = OpTypeVoid
26 %8 = OpTypeFunction %void
27 %v4uint = OpTypeVector %uint 4
28 %16 = OpTypeSampledImage %3
29 %float = OpTypeFloat 32
30 %v2float = OpTypeVector %float 2
31 %20 = OpConstantNull %v2float
32 %int = OpTypeInt 32 1
33 %int_3 = OpConstant %int 3
34%_ptr_Function_v4uint = OpTypePointer Function %v4uint
35 %25 = OpConstantNull %v4uint
36 %main = OpFunction %void None %8
37 %11 = OpLabel
38 %res = OpVariable %_ptr_Function_v4uint Function %25
39 %14 = OpLoad %7 %s
40 %15 = OpLoad %3 %t
41 %17 = OpSampledImage %16 %15 %14
42 %12 = OpImageGather %v4uint %17 %20 %int_3
43 OpStore %res %12
44 OpReturn
45 OpFunctionEnd