shader_decode: Implement HSET2

This commit is contained in:
ReinUsesLisp
2018-12-24 00:51:52 -03:00
parent 2df55985b6
commit b11e0b94c7
3 changed files with 50 additions and 1 deletions

View File

@ -1012,6 +1012,11 @@ private:
return GenerateUnary(operation, "!", Type::Bool, Type::Bool, false);
}
std::string LogicalPick2(Operation operation) {
const std::string pair = VisitOperand(operation, 0, Type::Bool2);
return pair + '[' + VisitOperand(operation, 1, Type::Uint) + ']';
}
std::string LogicalAll2(Operation operation) {
return GenerateUnary(operation, "all", Type::Bool, Type::Bool2);
}
@ -1306,6 +1311,7 @@ private:
&LogicalOr,
&LogicalXor,
&LogicalNegate,
&LogicalPick2,
&LogicalAll2,
&LogicalAny2,