blob: aa69dd04f5ad0fbc14c85eeb5daf468a212a78d4 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 26
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %t "t"
OpName %s "s"
OpName %main "main"
OpName %res "res"
OpDecorate %t DescriptorSet 1
OpDecorate %t Binding 0
OpDecorate %s DescriptorSet 1
OpDecorate %s Binding 1
%uint = OpTypeInt 32 0
%3 = OpTypeImage %uint 2D 0 0 0 1 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%t = OpVariable %_ptr_UniformConstant_3 UniformConstant
%7 = OpTypeSampler
%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
%s = OpVariable %_ptr_UniformConstant_7 UniformConstant
%void = OpTypeVoid
%8 = OpTypeFunction %void
%v4uint = OpTypeVector %uint 4
%16 = OpTypeSampledImage %3
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%20 = OpConstantNull %v2float
%int = OpTypeInt 32 1
%int_3 = OpConstant %int 3
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
%25 = OpConstantNull %v4uint
%main = OpFunction %void None %8
%11 = OpLabel
%res = OpVariable %_ptr_Function_v4uint Function %25
%14 = OpLoad %7 %s
%15 = OpLoad %3 %t
%17 = OpSampledImage %16 %15 %14
%12 = OpImageGather %v4uint %17 %20 %int_3
OpStore %res %12
OpReturn
OpFunctionEnd