mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Add transpose intrinsic
Fixed: tint:860 Change-Id: I899e280807503064fbabaafe02d37de4187b3298 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53805 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
@@ -229,6 +229,9 @@ IntrinsicType ParseIntrinsicType(const std::string& name) {
|
||||
if (name == "tanh") {
|
||||
return IntrinsicType::kTanh;
|
||||
}
|
||||
if (name == "transpose") {
|
||||
return IntrinsicType::kTranspose;
|
||||
}
|
||||
if (name == "trunc") {
|
||||
return IntrinsicType::kTrunc;
|
||||
}
|
||||
@@ -424,6 +427,8 @@ const char* str(IntrinsicType i) {
|
||||
return "tan";
|
||||
case IntrinsicType::kTanh:
|
||||
return "tanh";
|
||||
case IntrinsicType::kTranspose:
|
||||
return "transpose";
|
||||
case IntrinsicType::kTrunc:
|
||||
return "trunc";
|
||||
case IntrinsicType::kUnpack2x16float:
|
||||
|
||||
@@ -100,6 +100,7 @@ enum class IntrinsicType {
|
||||
kStorageBarrier,
|
||||
kTan,
|
||||
kTanh,
|
||||
kTranspose,
|
||||
kTrunc,
|
||||
kUnpack2x16float,
|
||||
kUnpack2x16snorm,
|
||||
|
||||
Reference in New Issue
Block a user