Change namespace of tint::type
Move the `tint::type` namespace into `tint::core::type` to better match
the source location and contents.
Change-Id: I2e1ae0ecdffdfcedb8aab1391cdfe2e1453a4741
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/145901
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
diff --git a/src/tint/lang/spirv/writer/common/helper_test.h b/src/tint/lang/spirv/writer/common/helper_test.h
index 24d8ca1..cb946dc 100644
--- a/src/tint/lang/spirv/writer/common/helper_test.h
+++ b/src/tint/lang/spirv/writer/common/helper_test.h
@@ -83,7 +83,7 @@
/// The test builder.
ir::Builder b{mod};
/// The type manager.
- type::Manager& ty{mod.Types()};
+ core::type::Manager& ty{mod.Types()};
protected:
/// The SPIR-V writer.
@@ -170,7 +170,7 @@
/// Helper to make a scalar type corresponding to the element type `type`.
/// @param type the element type
/// @returns the scalar type
- const type::Type* MakeScalarType(TestElementType type) {
+ const core::type::Type* MakeScalarType(TestElementType type) {
switch (type) {
case kBool:
return ty.bool_();
@@ -189,7 +189,9 @@
/// Helper to make a vector type corresponding to the element type `type`.
/// @param type the element type
/// @returns the vector type
- const type::Type* MakeVectorType(TestElementType type) { return ty.vec2(MakeScalarType(type)); }
+ const core::type::Type* MakeVectorType(TestElementType type) {
+ return ty.vec2(MakeScalarType(type));
+ }
/// Helper to make a scalar value with the scalar type `type`.
/// @param type the element type