blob: c4b1f903c623b063d6b730ba97fe2a849bcd233c [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 23
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %f "f"
OpName %a "a"
OpName %b "b"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%10 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
%_ptr_Function_v3uint = OpTypePointer Function %v3uint
%13 = OpConstantNull %v3uint
%uint_0 = OpConstant %uint 0
%uint_5 = OpConstant %uint 5
%16 = OpConstantComposite %v3uint %uint_0 %uint_5 %uint_0
%f = OpFunction %void None %1
%4 = OpLabel
%a = OpVariable %_ptr_Function_v3uint Function %13
%b = OpVariable %_ptr_Function_v3uint Function %13
OpStore %a %10
OpStore %b %16
%18 = OpLoad %v3uint %a
%19 = OpLoad %v3uint %b
%20 = OpLoad %v3uint %b
%21 = OpIAdd %v3uint %19 %20
%22 = OpUMod %v3uint %18 %21
OpReturn
OpFunctionEnd