mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
tint: Reduce repetition for ty.type_name()
Rename the type_name() method with operator().
`ty.type_name("blah")` becomes `ty("blah")`
Change-Id: Ia0b2bc304e7bb208c2e40a469332044b394535d9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/118401
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Ben Clayton <bclayton@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
6bd233fe54
commit
2117f80f8b
@@ -1075,7 +1075,7 @@ struct DirectVariableAccess::State {
|
||||
b.Alias(symbol, b.ty.array(b.ty.u32(), u32(num_dyn_indices)));
|
||||
return symbol;
|
||||
});
|
||||
return name.IsValid() ? b.ty.type_name(name) : nullptr;
|
||||
return name.IsValid() ? b.ty(name) : nullptr;
|
||||
}
|
||||
|
||||
/// @returns a name describing the given shape
|
||||
|
||||
Reference in New Issue
Block a user