mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
tint/ast: Remove ast::DepthTexture and ast::DepthMultisampledTexture
Instead use ast::TypeName. Bug: tint:1810 Change-Id: Id9fe641d193967cb27cea97e9c25b75c5fe2f1a2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119122 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
63b777b552
commit
a5fec206c9
@@ -100,6 +100,21 @@ Builtin ParseBuiltin(std::string_view str) {
|
||||
if (str == "sampler_comparison") {
|
||||
return Builtin::kSamplerComparison;
|
||||
}
|
||||
if (str == "texture_depth_2d") {
|
||||
return Builtin::kTextureDepth2D;
|
||||
}
|
||||
if (str == "texture_depth_2d_array") {
|
||||
return Builtin::kTextureDepth2DArray;
|
||||
}
|
||||
if (str == "texture_depth_cube") {
|
||||
return Builtin::kTextureDepthCube;
|
||||
}
|
||||
if (str == "texture_depth_cube_array") {
|
||||
return Builtin::kTextureDepthCubeArray;
|
||||
}
|
||||
if (str == "texture_depth_multisampled_2d") {
|
||||
return Builtin::kTextureDepthMultisampled2D;
|
||||
}
|
||||
if (str == "texture_external") {
|
||||
return Builtin::kTextureExternal;
|
||||
}
|
||||
@@ -197,6 +212,16 @@ std::ostream& operator<<(std::ostream& out, Builtin value) {
|
||||
return out << "sampler";
|
||||
case Builtin::kSamplerComparison:
|
||||
return out << "sampler_comparison";
|
||||
case Builtin::kTextureDepth2D:
|
||||
return out << "texture_depth_2d";
|
||||
case Builtin::kTextureDepth2DArray:
|
||||
return out << "texture_depth_2d_array";
|
||||
case Builtin::kTextureDepthCube:
|
||||
return out << "texture_depth_cube";
|
||||
case Builtin::kTextureDepthCubeArray:
|
||||
return out << "texture_depth_cube_array";
|
||||
case Builtin::kTextureDepthMultisampled2D:
|
||||
return out << "texture_depth_multisampled_2d";
|
||||
case Builtin::kTextureExternal:
|
||||
return out << "texture_external";
|
||||
case Builtin::kU32:
|
||||
|
||||
@@ -54,6 +54,11 @@ enum class Builtin {
|
||||
kMat4X4H,
|
||||
kSampler,
|
||||
kSamplerComparison,
|
||||
kTextureDepth2D,
|
||||
kTextureDepth2DArray,
|
||||
kTextureDepthCube,
|
||||
kTextureDepthCubeArray,
|
||||
kTextureDepthMultisampled2D,
|
||||
kTextureExternal,
|
||||
kU32,
|
||||
kVec2F,
|
||||
@@ -105,6 +110,11 @@ constexpr const char* kBuiltinStrings[] = {
|
||||
"mat4x4h",
|
||||
"sampler",
|
||||
"sampler_comparison",
|
||||
"texture_depth_2d",
|
||||
"texture_depth_2d_array",
|
||||
"texture_depth_cube",
|
||||
"texture_depth_cube_array",
|
||||
"texture_depth_multisampled_2d",
|
||||
"texture_external",
|
||||
"u32",
|
||||
"vec2f",
|
||||
|
||||
@@ -199,104 +199,139 @@ void BuiltinParser(::benchmark::State& state) {
|
||||
"samplpLL_comparisI",
|
||||
"smplerfomparison",
|
||||
"sYmpURDr_comprison",
|
||||
"texturh_external",
|
||||
"teqtureuIIextnal",
|
||||
"texture_externaH",
|
||||
"texturh_depth_2d",
|
||||
"teqtureuIIdep_2d",
|
||||
"texture_depth_2H",
|
||||
"texture_depth_2d",
|
||||
"texre_depth_2Qvv",
|
||||
"te66ue_depeh_2d",
|
||||
"textue_d7pOh_2d",
|
||||
"textureDDde0th_255_array",
|
||||
"texture_IIepth_Hd_array",
|
||||
"txture_depth_2d_array",
|
||||
"texture_depth_2d_array",
|
||||
"txture_depth_2r_array",
|
||||
"tlxture_depth_2d_array",
|
||||
"ttexturGdeth_2d_arrJJy",
|
||||
"yexture_depth_cbe",
|
||||
"texturedepth_cube",
|
||||
"texture_IIeptBB_cube",
|
||||
"texture_depth_cube",
|
||||
"textKre_depth_c83TTe",
|
||||
"texSnnYUUure_depth_cube",
|
||||
"textuxe_5eptCCdZube",
|
||||
"texturekkdepth_cube_arraq",
|
||||
"exture_dppt00iicube5array",
|
||||
"texIIurenndepth_cube_array",
|
||||
"texture_depth_cube_array",
|
||||
"ccextue_depth_cube_aKWa",
|
||||
"texture_epth_cube_raKK",
|
||||
"texture_depth_cube_a66ray",
|
||||
"textEPPeKKdept_multisampled_2",
|
||||
"texture_depth_mutisampledxx2d",
|
||||
"texture_depth_qultisampled_2d",
|
||||
"texture_depth_multisampled_2d",
|
||||
"textureyydMMptr_mutisampleSS_2d",
|
||||
"txture_depth_muluisampled2d",
|
||||
"texSure_ept_mutisampled_2d",
|
||||
"textu5e_externFFl",
|
||||
"text44rrr_exterzal",
|
||||
"texue_eWWtenal",
|
||||
"texture_external",
|
||||
"texre_externaQvv",
|
||||
"te66ue_external",
|
||||
"textue_e7tOrnal",
|
||||
"550DD",
|
||||
"II3H",
|
||||
"u3",
|
||||
"textuXe_ZZxtJJrnal",
|
||||
"textuPPe_eternal",
|
||||
"texturc_external",
|
||||
"ull62",
|
||||
"93yy",
|
||||
"u3KK",
|
||||
"u32",
|
||||
"r2",
|
||||
"u3l",
|
||||
"uGt",
|
||||
"ey2f",
|
||||
"x_",
|
||||
"K",
|
||||
"kVz",
|
||||
"veKSf",
|
||||
"vc2f",
|
||||
"IIeBB2f",
|
||||
"ec2VV",
|
||||
"vec2f",
|
||||
"TTec338",
|
||||
"veUUSS2nnd",
|
||||
"vZx5CC",
|
||||
"kkec2q",
|
||||
"v005ih",
|
||||
"vnIIc2h",
|
||||
"vec2h",
|
||||
"cceW",
|
||||
"cKK",
|
||||
"vec66h",
|
||||
"vePPK",
|
||||
"vexxi",
|
||||
"qec2i",
|
||||
"vec2i",
|
||||
"veSyMMr",
|
||||
"v2u",
|
||||
"ec",
|
||||
"5eFF2u",
|
||||
"rrecz44",
|
||||
"vWW",
|
||||
"vec2u",
|
||||
"XJecCZZ",
|
||||
"vePP2",
|
||||
"vec2c",
|
||||
"ve6ll3f",
|
||||
"vcyy99",
|
||||
"Jec3KK",
|
||||
"vec3f",
|
||||
"_ex3",
|
||||
"Ky3",
|
||||
"zek3f",
|
||||
"veKSh",
|
||||
"vc3h",
|
||||
"ec3VV",
|
||||
"vec3h",
|
||||
"IAAc3h",
|
||||
"IAAc2f",
|
||||
"jbR",
|
||||
"veY4",
|
||||
"ec3i",
|
||||
"ec2h",
|
||||
"vc911",
|
||||
"mmcci",
|
||||
"vec3i",
|
||||
"vJJci",
|
||||
"mmcch",
|
||||
"vec2h",
|
||||
"vJJch",
|
||||
"lDDcUfC",
|
||||
"vec3g",
|
||||
"vec2g",
|
||||
"CCe",
|
||||
"ec3u",
|
||||
"vIc__u",
|
||||
"vec3u",
|
||||
"ec2i",
|
||||
"vIc__i",
|
||||
"vec2i",
|
||||
"ePPtt",
|
||||
"v3dc3u",
|
||||
"vcyyu",
|
||||
"u4",
|
||||
"v03nnf",
|
||||
"v3dc2i",
|
||||
"vcyyi",
|
||||
"u2",
|
||||
"v03nnu",
|
||||
"Cuuecnv",
|
||||
"vec4f",
|
||||
"vX4ll",
|
||||
"vocppf",
|
||||
"vwwc4",
|
||||
"vec2u",
|
||||
"vX2ll",
|
||||
"vocppu",
|
||||
"vwwc2",
|
||||
"veuug",
|
||||
"vaac",
|
||||
"TRZccch",
|
||||
"vec4h",
|
||||
"vTc4O8",
|
||||
"vem04h",
|
||||
"meBB4h",
|
||||
"Mpp4",
|
||||
"OOe4i",
|
||||
"veG4G",
|
||||
"vec4i",
|
||||
"11eHH4i",
|
||||
"TRZcccf",
|
||||
"vec3f",
|
||||
"vTc3O8",
|
||||
"vem03f",
|
||||
"meBB3f",
|
||||
"Mpp3",
|
||||
"OOe3h",
|
||||
"veG3G",
|
||||
"vec3h",
|
||||
"11eHH3h",
|
||||
"veFFe6",
|
||||
"ve4",
|
||||
"vKii4l",
|
||||
"ec4u",
|
||||
"v994IIv",
|
||||
"ve3",
|
||||
"vKii3l",
|
||||
"ec3i",
|
||||
"v993IIv",
|
||||
"vec3i",
|
||||
"veci",
|
||||
"vechi",
|
||||
"vczllPi",
|
||||
"u",
|
||||
"vffqq3",
|
||||
"vJdd3u",
|
||||
"vec3u",
|
||||
"vecXX",
|
||||
"ve32",
|
||||
"Nyyc3u",
|
||||
"vO4",
|
||||
"PEruZ",
|
||||
"vlc2edd",
|
||||
"vec4f",
|
||||
"ec9f",
|
||||
"ve1II",
|
||||
"veb4f",
|
||||
"vi7",
|
||||
"oec4ii",
|
||||
"ec4",
|
||||
"vec4h",
|
||||
"veci",
|
||||
"22ec",
|
||||
"vGc4C",
|
||||
"ffec48",
|
||||
"c4i",
|
||||
"JJecSSi",
|
||||
"vec4i",
|
||||
"94i",
|
||||
"vbbJJ4TT",
|
||||
"e66i",
|
||||
"u664u",
|
||||
"vW4u",
|
||||
"v4u",
|
||||
"vec4u",
|
||||
"vecu",
|
||||
"vechu",
|
||||
"vczllPu",
|
||||
"rec4u",
|
||||
"2ec4B",
|
||||
};
|
||||
for (auto _ : state) {
|
||||
for (auto* str : kStrings) {
|
||||
|
||||
@@ -67,6 +67,11 @@ static constexpr Case kValidCases[] = {
|
||||
{"mat4x4h", Builtin::kMat4X4H},
|
||||
{"sampler", Builtin::kSampler},
|
||||
{"sampler_comparison", Builtin::kSamplerComparison},
|
||||
{"texture_depth_2d", Builtin::kTextureDepth2D},
|
||||
{"texture_depth_2d_array", Builtin::kTextureDepth2DArray},
|
||||
{"texture_depth_cube", Builtin::kTextureDepthCube},
|
||||
{"texture_depth_cube_array", Builtin::kTextureDepthCubeArray},
|
||||
{"texture_depth_multisampled_2d", Builtin::kTextureDepthMultisampled2D},
|
||||
{"texture_external", Builtin::kTextureExternal},
|
||||
{"u32", Builtin::kU32},
|
||||
{"vec2f", Builtin::kVec2F},
|
||||
@@ -156,48 +161,63 @@ static constexpr Case kInvalidCases[] = {
|
||||
{"sWWpleq_compari44on", Builtin::kUndefined},
|
||||
{"sampler_compaisoOO", Builtin::kUndefined},
|
||||
{"smpeoo_coYparison", Builtin::kUndefined},
|
||||
{"eture_eternal", Builtin::kUndefined},
|
||||
{"texture_exeFnal", Builtin::kUndefined},
|
||||
{"textureewternal", Builtin::kUndefined},
|
||||
{"Gf", Builtin::kUndefined},
|
||||
{"KK3q", Builtin::kUndefined},
|
||||
{"umm2", Builtin::kUndefined},
|
||||
{"vecf", Builtin::kUndefined},
|
||||
{"qc2f", Builtin::kUndefined},
|
||||
{"vecbb", Builtin::kUndefined},
|
||||
{"iic2", Builtin::kUndefined},
|
||||
{"vqOOh", Builtin::kUndefined},
|
||||
{"vevvTTh", Builtin::kUndefined},
|
||||
{"veFF2i", Builtin::kUndefined},
|
||||
{"00PfQ", Builtin::kUndefined},
|
||||
{"vec2P", Builtin::kUndefined},
|
||||
{"vec77s", Builtin::kUndefined},
|
||||
{"vecbbCu", Builtin::kUndefined},
|
||||
{"vecXXu", Builtin::kUndefined},
|
||||
{"CCOOec3", Builtin::kUndefined},
|
||||
{"vs3u", Builtin::kUndefined},
|
||||
{"Xec3f", Builtin::kUndefined},
|
||||
{"ve3h", Builtin::kUndefined},
|
||||
{"qq3", Builtin::kUndefined},
|
||||
{"vec322", Builtin::kUndefined},
|
||||
{"eture_dpth_2d", Builtin::kUndefined},
|
||||
{"texture_detF_2d", Builtin::kUndefined},
|
||||
{"texturedwpth_2d", Builtin::kUndefined},
|
||||
{"teKuffe_Gepth_2d_arry", Builtin::kUndefined},
|
||||
{"texture_dKKptq_2d_array", Builtin::kUndefined},
|
||||
{"texture_depmmh32d_arraF", Builtin::kUndefined},
|
||||
{"textur_depth_cube", Builtin::kUndefined},
|
||||
{"texure_depqh_cube", Builtin::kUndefined},
|
||||
{"texture_debth_cube", Builtin::kUndefined},
|
||||
{"txture_deptii_cube_arry", Builtin::kUndefined},
|
||||
{"textureqdepth_OOube_arry", Builtin::kUndefined},
|
||||
{"texture_deTvvth_cube_array", Builtin::kUndefined},
|
||||
{"texture_depth_multiFFampled_2d", Builtin::kUndefined},
|
||||
{"textue_depthPmfl00isampled_Qd", Builtin::kUndefined},
|
||||
{"textuPe_depth_multisampled_2d", Builtin::kUndefined},
|
||||
{"texture_exernss77", Builtin::kUndefined},
|
||||
{"texture_bbxternRRl", Builtin::kUndefined},
|
||||
{"textureXXexternal", Builtin::kUndefined},
|
||||
{"qOOO2", Builtin::kUndefined},
|
||||
{"us", Builtin::kUndefined},
|
||||
{"u3X", Builtin::kUndefined},
|
||||
{"ve2f", Builtin::kUndefined},
|
||||
{"qq2", Builtin::kUndefined},
|
||||
{"vec222", Builtin::kUndefined},
|
||||
{"vezzXy", Builtin::kUndefined},
|
||||
{"ieVVP", Builtin::kUndefined},
|
||||
{"venCi", Builtin::kUndefined},
|
||||
{"vHc3Aq", Builtin::kUndefined},
|
||||
{"ve3u", Builtin::kUndefined},
|
||||
{"venCh", Builtin::kUndefined},
|
||||
{"vHc2Aq", Builtin::kUndefined},
|
||||
{"ve2i", Builtin::kUndefined},
|
||||
{"vefK", Builtin::kUndefined},
|
||||
{"vgg4", Builtin::kUndefined},
|
||||
{"vecf", Builtin::kUndefined},
|
||||
{"4TNc4f", Builtin::kUndefined},
|
||||
{"vgg2", Builtin::kUndefined},
|
||||
{"vecu", Builtin::kUndefined},
|
||||
{"4TNc2u", Builtin::kUndefined},
|
||||
{"ppec7l", Builtin::kUndefined},
|
||||
{"zNe4h", Builtin::kUndefined},
|
||||
{"uXXb4h", Builtin::kUndefined},
|
||||
{"vec4", Builtin::kUndefined},
|
||||
{"884K", Builtin::kUndefined},
|
||||
{"vq9i", Builtin::kUndefined},
|
||||
{"vec411", Builtin::kUndefined},
|
||||
{"22ciiu", Builtin::kUndefined},
|
||||
{"ec77u", Builtin::kUndefined},
|
||||
{"zNe3f", Builtin::kUndefined},
|
||||
{"uXXb3f", Builtin::kUndefined},
|
||||
{"vec3", Builtin::kUndefined},
|
||||
{"883K", Builtin::kUndefined},
|
||||
{"vq9h", Builtin::kUndefined},
|
||||
{"vec311", Builtin::kUndefined},
|
||||
{"22ciii", Builtin::kUndefined},
|
||||
{"ec77i", Builtin::kUndefined},
|
||||
{"NN23u", Builtin::kUndefined},
|
||||
{"vVVc3u", Builtin::kUndefined},
|
||||
{"WW11w3u", Builtin::kUndefined},
|
||||
{"vcwwf", Builtin::kUndefined},
|
||||
{"vDc4f", Builtin::kUndefined},
|
||||
{"vecK", Builtin::kUndefined},
|
||||
{"f11r4PP", Builtin::kUndefined},
|
||||
{"ve4h", Builtin::kUndefined},
|
||||
{"vec4YY", Builtin::kUndefined},
|
||||
{"vkktHH", Builtin::kUndefined},
|
||||
{"rrec4i", Builtin::kUndefined},
|
||||
{"vWWssi", Builtin::kUndefined},
|
||||
{"veYu", Builtin::kUndefined},
|
||||
{"eq4f", Builtin::kUndefined},
|
||||
{"u22ec4u", Builtin::kUndefined},
|
||||
};
|
||||
|
||||
using BuiltinParseTest = testing::TestWithParam<Case>;
|
||||
|
||||
Reference in New Issue
Block a user