2021-07-17 17:38:46 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-09 22:04:11 +00:00
|
|
|
; Bound: 19
|
2021-07-17 17:38:46 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %f "f"
|
|
|
|
OpExecutionMode %f LocalSize 1 1 1
|
2022-11-09 22:04:11 +00:00
|
|
|
OpName %tint_mod "tint_mod"
|
|
|
|
OpName %lhs "lhs"
|
|
|
|
OpName %rhs "rhs"
|
2021-07-17 17:38:46 +00:00
|
|
|
OpName %f "f"
|
|
|
|
%uint = OpTypeInt 32 0
|
2022-11-09 22:04:11 +00:00
|
|
|
%1 = OpTypeFunction %uint %uint %uint
|
|
|
|
%8 = OpConstantNull %uint
|
|
|
|
%bool = OpTypeBool
|
2021-07-17 17:38:46 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
2022-11-09 22:04:11 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%13 = OpTypeFunction %void
|
2021-07-17 17:38:46 +00:00
|
|
|
%uint_2 = OpConstant %uint 2
|
2022-11-09 22:04:11 +00:00
|
|
|
%tint_mod = OpFunction %uint None %1
|
|
|
|
%lhs = OpFunctionParameter %uint
|
|
|
|
%rhs = OpFunctionParameter %uint
|
|
|
|
%6 = OpLabel
|
|
|
|
%9 = OpIEqual %bool %rhs %8
|
|
|
|
%7 = OpSelect %uint %9 %uint_1 %rhs
|
|
|
|
%12 = OpUMod %uint %lhs %7
|
|
|
|
OpReturnValue %12
|
|
|
|
OpFunctionEnd
|
|
|
|
%f = OpFunction %void None %13
|
|
|
|
%16 = OpLabel
|
|
|
|
%18 = OpFunctionCall %uint %tint_mod %uint_1 %uint_2
|
2021-07-17 17:38:46 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|