mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-03 19:55:56 +00:00
reader/wgsl: Remove duplicate lexer logic
See: https://dawn-review.googlesource.com/c/tint/+/37780/1/src/reader/wgsl/lexer.cc#750 Bug: tint:286 Change-Id: I6d39fdfefad619beb65ad1d496b27925da3db8ed Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/37840 Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
904c5b9621
commit
1f14595723
@ -769,26 +769,6 @@ Token Lexer::check_keyword(const Source& source, const std::string& str) {
|
||||
return {Token::Type::kTextureStorageReadonly3d, source,
|
||||
"texture_storage_ro_3d"};
|
||||
}
|
||||
if (str == "texture_storage_wo_1d") {
|
||||
return {Token::Type::kTextureStorageWriteonly1d, source,
|
||||
"texture_storage_wo_1d"};
|
||||
}
|
||||
if (str == "texture_storage_wo_1d_array") {
|
||||
return {Token::Type::kTextureStorageWriteonly1dArray, source,
|
||||
"texture_storage_wo_1d_array"};
|
||||
}
|
||||
if (str == "texture_storage_wo_2d") {
|
||||
return {Token::Type::kTextureStorageWriteonly2d, source,
|
||||
"texture_storage_wo_2d"};
|
||||
}
|
||||
if (str == "texture_storage_wo_2d_array") {
|
||||
return {Token::Type::kTextureStorageWriteonly2dArray, source,
|
||||
"texture_storage_wo_2d_array"};
|
||||
}
|
||||
if (str == "texture_storage_wo_3d") {
|
||||
return {Token::Type::kTextureStorageWriteonly3d, source,
|
||||
"texture_storage_wo_3d"};
|
||||
}
|
||||
if (str == "texture_wo_1d")
|
||||
return {Token::Type::kTextureStorageWriteonly1d, source, "texture_wo_1d"};
|
||||
if (str == "texture_wo_1d_array") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user