Skip to content

Commit

Permalink
Tint: Add input_attachment as builtin type.
Browse files Browse the repository at this point in the history
Bug: 341117913
Change-Id: I7a504c78280d78684046ce4ad164748db83910f1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/189520
Commit-Queue: Quyen Le <lehoangquyen@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
  • Loading branch information
kakashidinho authored and Dawn LUCI CQ committed May 23, 2024
1 parent b3f3ed0 commit e4e4613
Show file tree
Hide file tree
Showing 11 changed files with 589 additions and 525 deletions.
5 changes: 5 additions & 0 deletions src/tint/lang/core/builtin_type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ BuiltinType ParseBuiltinType(std::string_view str) {
if (str == "i32") {
return BuiltinType::kI32;
}
if (str == "input_attachment") {
return BuiltinType::kInputAttachment;
}
if (str == "mat2x2") {
return BuiltinType::kMat2X2;
}
Expand Down Expand Up @@ -403,6 +406,8 @@ std::string_view ToString(BuiltinType value) {
return "f32";
case BuiltinType::kI32:
return "i32";
case BuiltinType::kInputAttachment:
return "input_attachment";
case BuiltinType::kMat2X2:
return "mat2x2";
case BuiltinType::kMat2X2F:
Expand Down
2 changes: 2 additions & 0 deletions src/tint/lang/core/builtin_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ enum class BuiltinType : uint8_t {
kF16,
kF32,
kI32,
kInputAttachment,
kMat2X2,
kMat2X2F,
kMat2X2H,
Expand Down Expand Up @@ -195,6 +196,7 @@ constexpr std::string_view kBuiltinTypeStrings[] = {
"f16",
"f32",
"i32",
"input_attachment",
"mat2x2",
"mat2x2f",
"mat2x2h",
Expand Down
Loading

0 comments on commit e4e4613

Please sign in to comment.