Implement ignore() intrinsic

Fixed: tint:871
Change-Id: I01e275686094611d67a54735593320bce16705c3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53681
Reviewed-by: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton
2021-06-09 08:30:57 +00:00
committed by Tint LUCI CQ
parent 6a7a8b42e8
commit ad7c2ec355
71 changed files with 3792 additions and 1479 deletions

View File

@@ -127,6 +127,9 @@ IntrinsicType ParseIntrinsicType(const std::string& name) {
if (name == "fwidthFine") {
return IntrinsicType::kFwidthFine;
}
if (name == "ignore") {
return IntrinsicType::kIgnore;
}
if (name == "inverseSqrt") {
return IntrinsicType::kInverseSqrt;
}
@@ -353,6 +356,8 @@ const char* str(IntrinsicType i) {
return "fwidthCoarse";
case IntrinsicType::kFwidthFine:
return "fwidthFine";
case IntrinsicType::kIgnore:
return "ignore";
case IntrinsicType::kInverseSqrt:
return "inverseSqrt";
case IntrinsicType::kIsFinite:

View File

@@ -66,6 +66,7 @@ enum class IntrinsicType {
kFwidth,
kFwidthCoarse,
kFwidthFine,
kIgnore,
kInverseSqrt,
kIsFinite,
kIsInf,