2022-03-28 14:36:31 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-09 22:04:11 +00:00
|
|
|
; Bound: 26
|
2022-03-28 14:36:31 +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"
|
2022-03-28 14:36:31 +00:00
|
|
|
OpName %f "f"
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%v3uint = OpTypeVector %uint 3
|
2022-11-09 22:04:11 +00:00
|
|
|
%1 = OpTypeFunction %v3uint %v3uint %uint
|
|
|
|
%10 = OpConstantNull %v3uint
|
|
|
|
%bool = OpTypeBool
|
|
|
|
%v3bool = OpTypeVector %bool 3
|
2022-03-28 14:36:31 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
2022-11-09 22:04:11 +00:00
|
|
|
%15 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%17 = OpTypeFunction %void
|
2022-03-28 14:36:31 +00:00
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%uint_3 = OpConstant %uint 3
|
2022-11-09 22:04:11 +00:00
|
|
|
%23 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
2022-03-28 14:36:31 +00:00
|
|
|
%uint_4 = OpConstant %uint 4
|
2022-11-09 22:04:11 +00:00
|
|
|
%tint_mod = OpFunction %v3uint None %1
|
|
|
|
%lhs = OpFunctionParameter %v3uint
|
|
|
|
%rhs = OpFunctionParameter %uint
|
|
|
|
%7 = OpLabel
|
|
|
|
%8 = OpCompositeConstruct %v3uint %rhs %rhs %rhs
|
|
|
|
%11 = OpIEqual %v3bool %8 %10
|
|
|
|
%9 = OpSelect %v3uint %11 %15 %8
|
|
|
|
%16 = OpUMod %v3uint %lhs %9
|
|
|
|
OpReturnValue %16
|
|
|
|
OpFunctionEnd
|
|
|
|
%f = OpFunction %void None %17
|
|
|
|
%20 = OpLabel
|
|
|
|
%25 = OpFunctionCall %v3uint %tint_mod %23 %uint_4
|
2022-03-28 14:36:31 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|