mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 21:17:45 +00:00
Have TypesBuilder::F32() return ast::F32
Also contains a UBSAN fix for tests that didn't quite all migrate to ast::I32. Bug: tint:724 Change-Id: I2a3ad6d6a69595b7da6bb502a87fb655a7f5961a Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51486 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
06aa88aa97
commit
512d60c207
@@ -56,7 +56,8 @@ TEST_F(MultisampledTextureTest, TypeName) {
|
||||
}
|
||||
|
||||
TEST_F(MultisampledTextureTest, FriendlyName) {
|
||||
MultisampledTexture s(ast::TextureDimension::k3d, ty.f32());
|
||||
F32 f32;
|
||||
MultisampledTexture s(ast::TextureDimension::k3d, &f32);
|
||||
EXPECT_EQ(s.FriendlyName(Symbols()), "texture_multisampled_3d<f32>");
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace {
|
||||
|
||||
using SampledTextureTest = TestHelper;
|
||||
|
||||
|
||||
TEST_F(SampledTextureTest, IsTexture) {
|
||||
F32 f32;
|
||||
SampledTexture s(ast::TextureDimension::kCube, &f32);
|
||||
@@ -55,7 +54,8 @@ TEST_F(SampledTextureTest, TypeName) {
|
||||
}
|
||||
|
||||
TEST_F(SampledTextureTest, FriendlyName) {
|
||||
SampledTexture s(ast::TextureDimension::k3d, ty.f32());
|
||||
F32 f32;
|
||||
SampledTexture s(ast::TextureDimension::k3d, &f32);
|
||||
EXPECT_EQ(s.FriendlyName(Symbols()), "texture_3d<f32>");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user