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: 28
|
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_div "tint_div"
|
|
|
|
OpName %lhs "lhs"
|
|
|
|
OpName %rhs "rhs"
|
2021-07-17 17:38:46 +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 %v3uint
|
|
|
|
%9 = OpConstantNull %v3uint
|
|
|
|
%bool = OpTypeBool
|
|
|
|
%v3bool = OpTypeVector %bool 3
|
2021-07-17 17:38:46 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
2022-11-09 22:04:11 +00:00
|
|
|
%14 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%16 = OpTypeFunction %void
|
2021-07-17 17:38:46 +00:00
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%uint_3 = OpConstant %uint 3
|
2022-11-09 22:04:11 +00:00
|
|
|
%22 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
2021-07-17 17:38:46 +00:00
|
|
|
%uint_4 = OpConstant %uint 4
|
|
|
|
%uint_5 = OpConstant %uint 5
|
|
|
|
%uint_6 = OpConstant %uint 6
|
2022-11-09 22:04:11 +00:00
|
|
|
%26 = OpConstantComposite %v3uint %uint_4 %uint_5 %uint_6
|
|
|
|
%tint_div = OpFunction %v3uint None %1
|
|
|
|
%lhs = OpFunctionParameter %v3uint
|
|
|
|
%rhs = OpFunctionParameter %v3uint
|
|
|
|
%7 = OpLabel
|
|
|
|
%10 = OpIEqual %v3bool %rhs %9
|
|
|
|
%8 = OpSelect %v3uint %10 %14 %rhs
|
|
|
|
%15 = OpUDiv %v3uint %lhs %8
|
|
|
|
OpReturnValue %15
|
|
|
|
OpFunctionEnd
|
|
|
|
%f = OpFunction %void None %16
|
|
|
|
%19 = OpLabel
|
|
|
|
%27 = OpFunctionCall %v3uint %tint_div %22 %26
|
2021-07-17 17:38:46 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|