| // Copyright 2025 The Dawn & Tint Authors | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // | |
| // 1. Redistributions of source code must retain the above copyright notice, this | |
| // list of conditions and the following disclaimer. | |
| // | |
| // 2. Redistributions in binary form must reproduce the above copyright notice, | |
| // this list of conditions and the following disclaimer in the documentation | |
| // and/or other materials provided with the distribution. | |
| // | |
| // 3. Neither the name of the copyright holder nor the names of its | |
| // contributors may be used to endorse or promote products derived from | |
| // this software without specific prior written permission. | |
| // | |
| // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
| // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
| // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | |
| // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
| // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
| // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | |
| // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |
| // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| //////////////////////////////////////////////////////////////////////////////// | |
| // File generated by 'tools/src/cmd/gen' using the template: | |
| // src/tint/cmd/bench/enums_core_bench.cc.tmpl | |
| // | |
| // To regenerate run: './tools/run gen' | |
| // | |
| // Do not modify this file directly | |
| //////////////////////////////////////////////////////////////////////////////// | |
| // clang-format off | |
| #include <array> | |
| #include "benchmark/benchmark.h" | |
| #include "src/tint/lang/core/enums.h" | |
| namespace tint::core { | |
| namespace { | |
| void AccessParser(::benchmark::State& state) { | |
| const char* kStrings[] = { | |
| "ccad", | |
| "3", | |
| "rVad", | |
| "read", | |
| "1ead", | |
| "rqaJ", | |
| "rlla77", | |
| "reqqdppriHHe", | |
| "rv_wcit", | |
| "reabGwrte", | |
| "read_write", | |
| "read_vriite", | |
| "re8d_wriWWe", | |
| "Meadxxrite", | |
| "wggte", | |
| "VtX", | |
| "writ3", | |
| "write", | |
| "writE", | |
| "TTrPte", | |
| "wxxidd", | |
| }; | |
| for (auto _ : state) { | |
| for (auto* str : kStrings) { | |
| auto result = ParseAccess(str); | |
| benchmark::DoNotOptimize(result); | |
| } | |
| } | |
| } // NOLINT(readability/fn_size) | |
| BENCHMARK(AccessParser); | |
| void AddressSpaceParser(::benchmark::State& state) { | |
| const char* kStrings[] = { | |
| "44unction", | |
| "fSSnctioVV", | |
| "Rnc2Rion", | |
| "function", | |
| "uFc9ion", | |
| "funtion", | |
| "ROOuHciVn", | |
| "imyedate", | |
| "l77nnrrediaGe", | |
| "im4edi00te", | |
| "immediate", | |
| "imoodte", | |
| "imzzdiae", | |
| "m11pediiit", | |
| "pixel_lXXcal", | |
| "pixII99l55local", | |
| "pixaal_lSSrHHYl", | |
| "pixel_local", | |
| "iHkklocal", | |
| "jRRxellgal", | |
| "pxel_lobl", | |
| "privaje", | |
| "rivate", | |
| "qvate", | |
| "private", | |
| "priNNte", | |
| "rivtvv", | |
| "QQivate", | |
| "stffar", | |
| "storaje", | |
| "sNNwrag8", | |
| "storage", | |
| "stoage", | |
| "srrorage", | |
| "Gtorage", | |
| "uniforFF", | |
| "nifm", | |
| "unrrorm", | |
| "uniform", | |
| "iform", | |
| "DnfoJJm", | |
| "un8r", | |
| "orkgk1u", | |
| "worgroup", | |
| "Jorkgoup", | |
| "workgroup", | |
| "workgrcup", | |
| "workgroOp", | |
| "worttKK_rouvv", | |
| }; | |
| for (auto _ : state) { | |
| for (auto* str : kStrings) { | |
| auto result = ParseAddressSpace(str); | |
| benchmark::DoNotOptimize(result); | |
| } | |
| } | |
| } // NOLINT(readability/fn_size) | |
| BENCHMARK(AddressSpaceParser); | |
| void AttributeParser(::benchmark::State& state) { | |
| const char* kStrings[] = { | |
| "alxxn", | |
| "__qiF", | |
| "aigqq", | |
| "align", | |
| "33l6gn", | |
| "6QQottgn", | |
| "a6ign", | |
| "bnOizz66", | |
| "bindyyng", | |
| "ZiHHnZ", | |
| "binding", | |
| "4WWndqng", | |
| "bOOding", | |
| "oinYng", | |
| "lend_s", | |
| "blendsrF", | |
| "blendwrc", | |
| "blend_src", | |
| "GedKsrff", | |
| "KKlqnd_src", | |
| "blenmm_s3c", | |
| "uiltin", | |
| "biltiq", | |
| "builtbb", | |
| "builtin", | |
| "biltin", | |
| "buOOltq", | |
| "buiTvvtin", | |
| "coFFor", | |
| "00PfQ", | |
| "coloP", | |
| "color", | |
| "col77s", | |
| "colbbCr", | |
| "colXXr", | |
| "qoCCpuOOe", | |
| "copstL", | |
| "cXmpute", | |
| "compute", | |
| "compte", | |
| "qopOt", | |
| "compu22e", | |
| "dyaXX0szzic", | |
| "diVVgnitiP", | |
| "dagCosnnic", | |
| "diagnostic", | |
| "agnostqqHHA", | |
| "dignostic", | |
| "difgnoKKt", | |
| "frPggge", | |
| "frament", | |
| "TTragN4nc", | |
| "fragment", | |
| "prlgmen77", | |
| "fzaNgent", | |
| "bragmXXut", | |
| "grou", | |
| "88uK", | |
| "gq9p", | |
| "group", | |
| "grou11", | |
| "22oiip", | |
| "ro77p", | |
| "Nd", | |
| "VVd", | |
| "wW11", | |
| "id", | |
| "ww", | |
| "Dd", | |
| "K", | |
| "ifput_11tPPachmhntrindex", | |
| "input_atachment_index", | |
| "inputYYattachment_index", | |
| "input_attachment_index", | |
| "intutVatkkachmenHHindex", | |
| "irrput_attachment_index", | |
| "isput_attachment_inWWex", | |
| "inYerpolat", | |
| "iqterLlfte", | |
| "invver22uflte", | |
| "interpolate", | |
| "intrpolae", | |
| "interpYlae", | |
| "interyoYY77tE", | |
| "Mnoodriat", | |
| "invMMriat", | |
| "invaria55t", | |
| "invariant", | |
| "Nariant", | |
| "invari33n", | |
| "invarian3", | |
| "lmaIion", | |
| "lrcatnKon", | |
| "Xatio", | |
| "location", | |
| "loLLIion", | |
| "lcafin", | |
| "loUYRtDn", | |
| "must_uhe", | |
| "msqusuII", | |
| "must_usH", | |
| "must_use", | |
| "vvQQstue", | |
| "mus_66s", | |
| "m7sO_se", | |
| "055DDe", | |
| "IIiHe", | |
| "sze", | |
| "size", | |
| "sir", | |
| "slze", | |
| "JJGz", | |
| "subgoup_syze", | |
| "ubgroup_size", | |
| "subIIroupBBsize", | |
| "subgroup_size", | |
| "su8gTToup_s33ze", | |
| "dnnUUbgrouSSY_size", | |
| "xCu5groupZsize", | |
| "vqkrtex", | |
| "5iirp00", | |
| "vnnrIIex", | |
| "vertex", | |
| "cceKe", | |
| "vrKK", | |
| "ve66tex", | |
| "wKKkgroEp_PPiz", | |
| "xorkgroup_size", | |
| "workgroqp_size", | |
| "workgroup_size", | |
| "rorkgroupyMMSize", | |
| "wrgroup_uize", | |
| "wrkgrouSsie", | |
| }; | |
| for (auto _ : state) { | |
| for (auto* str : kStrings) { | |
| auto result = ParseAttribute(str); | |
| benchmark::DoNotOptimize(result); | |
| } | |
| } | |
| } // NOLINT(readability/fn_size) | |
| BENCHMARK(AttributeParser); | |
| void BuiltinTypeParser(::benchmark::State& state) { | |
| const char* kStrings[] = { | |
| "__atomic_cFFmpare_exchange_result_i52", | |
| "__at4zmic_compare_exchange_resurrt_i32", | |
| "__atWWic_ompare_exhange_result_i32", | |
| "__atomic_compare_exchange_result_i32", | |
| "__atomic_comZZare_JXxchange_result_C32", | |
| "PP_atomic_compare_exchange_reslt_i32", | |
| "__atomic_compare_exchange_resuct_i32", | |
| "__a6llmic_comparePPexchange_result_u32", | |
| "__a99omic_compare_xchanyye_result_u32", | |
| "__atoKKic_compare_exchange_result_u32", | |
| "__atomic_compare_exchange_result_u32", | |
| "__atomic_xompareexchange__esult_u32", | |
| "__atomi_compare_exhanyy_result_uK2", | |
| "__atomic_compare_zxchangeVresukt_u32", | |
| "__freqp_rKsult_abstract", | |
| "__rexp_result_abstract", | |
| "__frexpresult_abstrVVct", | |
| "__frexp_result_abstract", | |
| "__frAAUp_resIlt_abstract", | |
| "jfrexp_result_astrabt", | |
| "__44YYxp_resultabstrat", | |
| "__frxp_result_f16", | |
| "__frex11_rxxsul_f6", | |
| "__frccxpmmresulJ_f", | |
| "__frexp_result_f16", | |
| "__freJJ_result_f16", | |
| "_ffDDUxp_resulCClf16", | |
| "__frexp_resultgf16", | |
| "_frexp_rult_CC32", | |
| "_frexp_result_f32", | |
| "__freIp_res__lt_f32", | |
| "__frexp_result_f32", | |
| "__frttp_PPsult_f32", | |
| "__frexp_resul3d_f32", | |
| "_frexp_Kesultyyf32", | |
| "__rexp_resultvec2_abstacu", | |
| "__frexi_re3ult_venn2_abs0ract", | |
| "__frexpKrenultuuvecCC_vbstract", | |
| "__frexp_result_vec2_abstract", | |
| "__frllxp_Xesult_ec2_abstract", | |
| "__frexp_result_vec2_aostrppct", | |
| "ww_frexp_result_vec2_abstrat", | |
| "uu_fgxp_reslt_vec2mmf16", | |
| "aa_frexpesmmltvec2_f16", | |
| "__TrexRR_result_vecZ_cc16", | |
| "__frexp_result_vec2_f16", | |
| "__frexp_result_vec8T_fO6", | |
| "__frexp_mesult00vec2_f16", | |
| "m_frexp_result_vBBc2_f16", | |
| "__frex_ppeslt_vecM_f32", | |
| "__fexp_result_vOOc2_f32", | |
| "__GGrexp_reult_Gec2_f32", | |
| "__frexp_result_vec2_f32", | |
| "__frex11_resulHH_vec2_f32", | |
| "_eere6p_resulFF_vec2_f32", | |
| "__frexpresult_vec2_f2", | |
| "__friixplresult_vec3_abstrKct", | |
| "__frexp_esult_vec3_abstract", | |
| "__rexII_result99vec3_abvvtract", | |
| "__frexp_result_vec3_abstract", | |
| "__frexp_result_vec_abstract", | |
| "__frhxp_result_vec3_abstract", | |
| "__frexp_result_llec3_zzbtraPPt", | |
| "_frexp_rsult_v3_f16", | |
| "__frexp_reffulqq_vc3_f16", | |
| "_ddreJJp_result_vec3_f16", | |
| "__frexp_result_vec3_f16", | |
| "__feXXp_result_vec_zz16", | |
| "__frexp_result_ve23_16", | |
| "__frexp_result_yyeN3_f16", | |
| "__frexpresult_ve3_3OO", | |
| "__fZePp_rusrlt_vec3_fE2", | |
| "__freeepresddll_vec3_2232", | |
| "__frexp_result_vec3_f32", | |
| "mfrexp_r9sult_ec3_fVV2", | |
| "__IIrexp1result_vec3_f3", | |
| "__frexp_result_vec3_f3b", | |
| "__frexp_result_e7i_abstrat", | |
| "__frexp_oesult_vecii_abstract", | |
| "__fxp_r5sult_vecn_abstract", | |
| "__frexp_result_vec4_abstract", | |
| "__frexp_resultvec4Sabstract", | |
| "_22frexp_reslt_vec4_abstrct", | |
| "__Grexp_result7vecC_abst11ac", | |
| "__fre8ff_result_vec4_f16", | |
| "__frexp_resultve4_f16", | |
| "__frexp_resuJJSS_vec4_f16", | |
| "__frexp_result_vec4_f16", | |
| "__frep9esult_vec4_f16", | |
| "__frexp_JJesulTT_vecbb_f16", | |
| "_frexp_res66lt_vec4_16", | |
| "__fre0p_r66sultuvec_f32", | |
| "__frexp_resuyW_ec4_f32", | |
| "__frep_result_vec_f32", | |
| "__frexp_result_vec4_f32", | |
| "__frxp_result_vec4_f32", | |
| "__frexp_result_vec4rf32", | |
| "__frexp_2esult_vec4_f3B", | |
| "__modf_resultBBastract", | |
| "RR_modf_reult_abstract", | |
| "_LLmodf_resulVV0btract", | |
| "__modf_result_abstract", | |
| "__modOO_resltKKabstrac", | |
| "__modw_rggsult_absract", | |
| "__mod_resultLhabstrpct", | |
| "_mKKdf_reEiultf16", | |
| "_modf_result_f16", | |
| "UU_mdf88result_f6", | |
| "__modf_result_f16", | |
| "__movvrr_result_f16", | |
| "__mowf_mmesult_1", | |
| "__m44df_rsultjf16", | |
| "__modf_resulX_f32", | |
| "8_modf_result_f32", | |
| "EE_modf_reultvvf32", | |
| "__modf_result_f32", | |
| "__modziesult99f32", | |
| "__modfJJresnlGG_QQ32", | |
| "__modf_resultssf32", | |
| "K_modf_result_Pec2_abstract", | |
| "__modf_resut_vc2_abstrpttct", | |
| "__modf_reult_vec2_abstrct", | |
| "__modf_result_vec2_abstract", | |
| "__modMM_result_vec2_abstract", | |
| "__modf_result_vec2_absJ0ract", | |
| "__modf_resul_vV2_ab8trac", | |
| "__modfKrggsult_vec2_fhh6", | |
| "__modf_result_vec2_ff6", | |
| "__Qodf_re77ult_vec2_f16", | |
| "__modf_result_vec2_f16", | |
| "__modf_resultYYvc2_f16", | |
| "__mofkresult_vecS_f16", | |
| "__modf_resut_en2_f122", | |
| "__modf_rsult_FFec2_f2", | |
| "u_modf_resultUUvGGPP2_f3I", | |
| "_amodfFresult_vec2EEfv", | |
| "__modf_result_vec2_f32", | |
| "e_DDof_rddsult_vec2_BB32", | |
| "__Modf_reEEult_v55c2_cc3", | |
| "_mKKdvresult_vc2_f32", | |
| "__modf_Result_vec3_abstract", | |
| "__modf_re9ut_vec3_abstract", | |
| "__modf_result_ve3_abstract", | |
| "__modf_result_vec3_abstract", | |
| "aa_mdI_result_ec3_abstract", | |
| "__77odf_result_vec3_abstract", | |
| "__mIdf_result_vec3_abstract", | |
| "__modf_result_vec_f16", | |
| "__modf_reult_vec3_f16", | |
| "__modf_rsult_vec3_f6", | |
| "__modf_result_vec3_f16", | |
| "__m33df_reXXulc_vec3_f16", | |
| "__modf_resultveE3_f16", | |
| "__modf_result_vecXXf16", | |
| "__modxx_result_veB3_f32", | |
| "_modfresultGGec3_f32", | |
| "__modf_result_vec3_f366", | |
| "__modf_result_vec3_f32", | |
| "__0dv_result_veTT_f32", | |
| "__mdfresukt_ve_f32", | |
| "__mdf_reult_vec3_fpp2", | |
| "__modf_result_vec11_abstrt", | |
| "__Jodf_resulE_vec4BBybstract", | |
| "_qmodx_IImsult_vec4_abstract", | |
| "__modf_result_vec4_abstract", | |
| "__modf_result_vec4_aFstrac", | |
| "_modf_rYsult_vec4_abstract", | |
| "__modh_reHHult_vec4_abstDact", | |
| "__mHfreslt_ve224_f16", | |
| "__mdf_reslt_vec4_f16", | |
| "__modf_rsult_vec4_f16", | |
| "__modf_result_vec4_f16", | |
| "__mdf_result_vec4_f16", | |
| "__modf_result_vec4_fdd6", | |
| "__modf_result_OPc4_f16", | |
| "_modabbresult_vec4_f3", | |
| "__m00df_result_vec4_32", | |
| "__modf_result_hec4_f32", | |
| "__modf_result_vec4_f32", | |
| "__modf_YYesult_veg4_32", | |
| "__modf_result_Oec4_f32", | |
| "_hmodfresult_vec_f32", | |
| "fEppay", | |
| "rrvy", | |
| "arazz", | |
| "array", | |
| "arra", | |
| "OiiJa", | |
| "aGray", | |
| "aTT22mic", | |
| "ltomic", | |
| "atbmic", | |
| "atomic", | |
| "atomiB", | |
| "aPIIoXiS", | |
| "atojjic", | |
| "_fcc6", | |
| "zz6xS6", | |
| "G", | |
| "bf16", | |
| "v41x", | |
| "bfAA0", | |
| "yye", | |
| "bind0ng_arrWWy", | |
| "ttinming_arrMMy", | |
| "binidg_arr", | |
| "binding_array", | |
| "bin_ing_avay", | |
| "EEinding_array", | |
| "bindin4_array", | |
| "gooVX", | |
| "ooVl", | |
| "boo", | |
| "bool", | |
| "KKol", | |
| "G", | |
| "oal", | |
| "bufOr", | |
| "uGe", | |
| "5uffer", | |
| "buffer", | |
| "buff99jf", | |
| "buRXXYev", | |
| "bufr", | |
| "XX5", | |
| "1", | |
| "ppcc", | |
| "f16", | |
| "v16", | |
| "EESS", | |
| "f", | |
| "", | |
| "f3w", | |
| "fd992", | |
| "f32", | |
| "99P", | |
| "KK3", | |
| "foDD", | |
| "i", | |
| "q", | |
| "L00", | |
| "i32", | |
| "ivv66", | |
| "nrr", | |
| "x32", | |
| "NCCO", | |
| "i", | |
| "ia", | |
| "i8", | |
| "NNN", | |
| "i", | |
| "", | |
| "inYYutAattachmESt", | |
| "input_attac0ment", | |
| "input_attacaament", | |
| "input_attachment", | |
| "input_mmttachmen", | |
| "input_attachmnt", | |
| "inEtUUattahment", | |
| "KKDtx2", | |
| "__at2t2", | |
| "Apx2", | |
| "mat2x2", | |
| "matMx", | |
| "maBB2x2", | |
| "99nbbx2", | |
| "EEAA1x2f", | |
| "m5662xTf", | |
| "Hat2x2f", | |
| "mat2x2f", | |
| "xxHtx2f", | |
| "mnyt2z2f", | |
| "mt2x2f", | |
| "makH2h", | |
| "mat2ch", | |
| "mrrx2oo", | |
| "mat2x2h", | |
| "mJJx2h", | |
| "CCa202h", | |
| "mAxFx99h", | |
| "mat2c3", | |
| "Sat2x3", | |
| "mBBtox", | |
| "mat2x3", | |
| "ma2x3", | |
| "mmaex3", | |
| "mQPP2ggo", | |
| "Btx", | |
| "mlKKN3f", | |
| "marrx3", | |
| "mat2x3f", | |
| "atrpx3f", | |
| "yPat2x3f", | |
| "maZ2cc3", | |
| "t2x3h", | |
| "ma002x3h", | |
| "msst23BJP", | |
| "mat2x3h", | |
| "ffawwxJJh", | |
| "maXXI3h", | |
| "2h", | |
| "mat2x", | |
| "mKKt2x", | |
| "m4a2x4", | |
| "mat2x4", | |
| "pat2o4", | |
| "jNtHHxhh", | |
| "mww332EUU", | |
| "matxuf", | |
| "Kaddxrrf", | |
| "2tt2PP4r", | |
| "mat2x4f", | |
| "m1twwx4f", | |
| "mat2xc1nn", | |
| "at2x4f", | |
| "ma2x4h", | |
| "6SSaaIx4h", | |
| "matx4EE", | |
| "mat2x4h", | |
| "IcatVR4h", | |
| "m2x9h", | |
| "aaht24h", | |
| "mLS3x2", | |
| "mmtfx", | |
| "mV3qm", | |
| "mat3x2", | |
| "__tx2", | |
| "mQtx", | |
| "EaddxRR", | |
| "m93x2f", | |
| "at3C0", | |
| "t3x2z", | |
| "mat3x2f", | |
| "ccat3x2f", | |
| "at3x2Q_", | |
| "matt2f", | |
| "CCzzt333pEh", | |
| "mat3hhddh", | |
| "66t3x77h", | |
| "mat3x2h", | |
| "mat3xPh", | |
| "matwx2h", | |
| "uux2h", | |
| "mXXt363", | |
| "RRx3", | |
| "VVt3", | |
| "mat3x3", | |
| "GGaHH3x3", | |
| "MFFt373", | |
| "mat33", | |
| "at3xgg", | |
| "Pa1K3Q3_", | |
| "matx3E", | |
| "mat3x3f", | |
| "maM3f", | |
| "maG77S3xX", | |
| "FFtt3xKf", | |
| "mZZt3Uss3h", | |
| "mat33h", | |
| "mat3x3l", | |
| "mat3x3h", | |
| "mht3x3h", | |
| "mKtTTxk", | |
| "ma3xwwh", | |
| "mjjvvxK", | |
| "mtxYY", | |
| "EEIt3c", | |
| "mat3x4", | |
| "mat3xQQ", | |
| "Paxl", | |
| "mtffHx4", | |
| "man3x4f", | |
| "matg46F", | |
| "mhss8x4f", | |
| "mat3x4f", | |
| "llFa3x4f", | |
| "2atjx0f", | |
| "matgx4f", | |
| "mat3xe", | |
| "maff3xh", | |
| "atxh", | |
| "mat3x4h", | |
| "matx4h", | |
| "qqt3x4h", | |
| "AA34h", | |
| "vt4x2", | |
| "matjx2", | |
| "mat4ZZ2", | |
| "mat4x2", | |
| "UPPt4II2", | |
| "maZZ4x2", | |
| "mat4xnn", | |
| "kkZa224x2f", | |
| "mat42f", | |
| "ma4xR", | |
| "mat4x2f", | |
| "mat4xqq9f", | |
| "mat4772f", | |
| "matx3", | |
| "uut4xcch", | |
| "m1tRR2h", | |
| "mat4llJh", | |
| "mat4x2h", | |
| "MMatI", | |
| "7T6t4x2", | |
| "mat4xQQJ", | |
| "muAx3", | |
| "mat3", | |
| "maq33", | |
| "mat4x3", | |
| "mxxt4x3", | |
| "mNrr", | |
| "ma94x3", | |
| "at4x3", | |
| "mat4H3f", | |
| "_at4x3f", | |
| "mat4x3f", | |
| "m44t4x3f", | |
| "mat43f", | |
| "mt4j3f", | |
| "mmmt4EEtth", | |
| "matxh", | |
| "mrr4x3h", | |
| "mat4x3h", | |
| "maxx3h", | |
| "zzt4x3", | |
| "mat4x3e", | |
| "mZp4xu", | |
| "aTT400u7", | |
| "atvv4", | |
| "mat4x4", | |
| "maQ4x4", | |
| "maCR3", | |
| "C4", | |
| "ma4xPPpr", | |
| "muDDt4xxxf", | |
| "YYlqamd4x4f", | |
| "mat4x4f", | |
| "atFFx4__", | |
| "rrGGNNx4f", | |
| "matMl4f", | |
| "ax4h", | |
| "mlt4q4x", | |
| "mat44h", | |
| "mat4x4h", | |
| "mat444h", | |
| "WWGt4x4h", | |
| "mjjt4xh", | |
| "pjjr", | |
| "pr", | |
| "pt", | |
| "ptr", | |
| "p99r", | |
| "VVtr", | |
| "Ztx", | |
| "s33mpvve", | |
| "sa9plsr", | |
| "samleF", | |
| "sampler", | |
| "ampleuu", | |
| "aKKIer", | |
| "sJmple", | |
| "samplXXr_comparCCSSon", | |
| "sWWmpler_compaZZ66son", | |
| "sampder_omp5rmmsn", | |
| "sampler_comparison", | |
| "samBBBBer_cUmarison", | |
| "s0mpler_11oJJparison", | |
| "sampler_cottfarison", | |
| "subgroup_Xatittleft", | |
| "subgroup_matLix_lwft", | |
| "subgroup_matrix_1eft", | |
| "subgroup_matrix_left", | |
| "suwwgroup_matrix_left", | |
| "subgrup_aeerix_let", | |
| "subgroup_marix_left", | |
| "subgroup_matNNix_result", | |
| "sub__Uloup_matrix_resulRR", | |
| "subgroup_matrix_resHlt", | |
| "subgroup_matrix_result", | |
| "subgroup_matrix_resuCCt", | |
| "subgroup_matrix_reult", | |
| "dubgoup_matrix_rppsult", | |
| "sugroup_matrix_right", | |
| "Lubgrop_mNrix_right", | |
| "sugroupatix_righ", | |
| "subgroup_matrix_right", | |
| "subgrxup_matrix_rGRRghqq", | |
| "subgroSp_matGGix_right", | |
| "subro88p_matqi_riccht", | |
| "texel_bffer", | |
| "texl_ppufftr", | |
| "texeqq0FFbuffe55", | |
| "texel_buffer", | |
| "texl_buffer", | |
| "texel_ufer", | |
| "teOl_buffer", | |
| "textuHHe_1", | |
| "66extureSS1O", | |
| "tTTturddY_1d", | |
| "texture_1d", | |
| "textursg1d", | |
| "texture_1GG", | |
| "tIxtllOQQ_1d", | |
| "textue_2d", | |
| "texrrure_2d", | |
| "txtur7_yyd", | |
| "texture_2d", | |
| "textu22Be_Yd", | |
| "textyyVe_2d", | |
| "x4ure_2", | |
| "texture_2d_arrddy", | |
| "text2re_2d_VVrzy", | |
| "teyyture_2d_array", | |
| "texture_2d_array", | |
| "texture_2A_ar__ay", | |
| "texture_2hh_array", | |
| "teture_2davvray", | |
| "tetue_3d", | |
| "tNoogsure_3d", | |
| "exturmZ_3d", | |
| "texture_3d", | |
| "texk3_3d", | |
| "texturfA_d", | |
| "exurzrrW3d", | |
| "texturecbRR", | |
| "textuSSe_cu88e", | |
| "RxturebbPcube", | |
| "texture_cube", | |
| "txxxtWWre_cbe", | |
| "textvveAAcube", | |
| "texX44re_cjjbe", | |
| "textufe_cube_array", | |
| "textureAAUube_arOOy", | |
| "tuxtre_ssube_arry", | |
| "texture_cube_array", | |
| "bbexture_sFFbe_array", | |
| "texture_nnube_arraYY", | |
| "teture_cube_arrass", | |
| "texture_zzeptq2d", | |
| "textrQ_depNN_2d", | |
| "texture_dethk2pp", | |
| "texture_depth_2d", | |
| "tLxtureJsse8th_2d", | |
| "text77J5_depthTTffd", | |
| "t00xure_depth_2d", | |
| "text1re_depthA2d_rray", | |
| "txture_depth_2d_array", | |
| "texture_dept_2d_arQQay", | |
| "texture_depth_2d_array", | |
| "iexturewdepth_2darray", | |
| "texture_depwwh_2d_array", | |
| "texture_depth_2d_JhrYYay", | |
| "texturekdepRRhEube", | |
| "texturk_depth_cuube", | |
| "teRture_dept_cube", | |
| "texture_depth_cube", | |
| "textreNdepth_cubII", | |
| "tIIture_depth_cube", | |
| "textiire_Eeth_cube", | |
| "txture_depth_cube_ssrray", | |
| "Xexture_deCCth_55ube_aray", | |
| "texture_depth_cube_a9ray", | |
| "texture_depth_cube_array", | |
| "texure_depth_cueXarray", | |
| "txture_depth_cube_IIray", | |
| "texture_depth_zube_array", | |
| "exture_AAzzpth_multisa22pled_2d", | |
| "texture_depth_multisample_2d", | |
| "texturbb_dept_multismpledF2d", | |
| "texture_depth_multisampled_2d", | |
| "teVture_depth_multisamMMled_2d", | |
| "texturA_depth_multisawclezz_mmd", | |
| "texture_deOOh_multiQQample_2d", | |
| "textube_external", | |
| "tekktunne_exCenal", | |
| "teKKture_rrxeryyal", | |
| "texture_external", | |
| "txtureATexttrnal", | |
| "texure_exteZQQal", | |
| "texture8eernal", | |
| "teature_multisampled_d", | |
| "tccxture_mubtiseemple_2d", | |
| "textur_mulPPisamLLled_2", | |
| "texture_multisampled_2d", | |
| "teWWtureUmltisamled_2d", | |
| "textue_multisamplzzd_2d", | |
| "tetur_multNampled_2__", | |
| "textura_multisampled_2d_array", | |
| "texture_multisampled_2aBray", | |
| "teture_multisamped_2d_azzray", | |
| "texture_multisampled_2d_array", | |
| "textUreaamultisaHHpled_2dbarray", | |
| "tOxt4remultisampled_2d_arry", | |
| "exture_mulGGisammled_2d_array", | |
| "teture_storage_1d", | |
| "texturezzstG8rageN1d", | |
| "texture_storag_1d", | |
| "texture_storage_1d", | |
| "textuxe_storaAAe_1d", | |
| "tbbxture_suuorage_1d", | |
| "tejjture_storage_1d", | |
| "texturJJ_stoqqgccx2d", | |
| "teggtFe_torge_2d", | |
| "textvre_soragA_2d", | |
| "texture_storage_2d", | |
| "texture_storagcc_2d", | |
| "txtur7BstoraUUe_2d", | |
| "texture_storaAAB_2d", | |
| "texture_sxorage_2d_array", | |
| "texure_stor8Ue_2d_array", | |
| "teIture88storaBe_2d_arrUCy", | |
| "texture_storage_2d_array", | |
| "texture_storage_2d___rray", | |
| "texUUre_storage_2d_array", | |
| "texure_storage_2d_array", | |
| "tuurrture_strage_77d", | |
| "texture_storagkk3d", | |
| "texture_storage_ld", | |
| "texture_storage_3d", | |
| "texure_storage_3d", | |
| "tewtuYYe_st3age_3d", | |
| "tex44ure_storage_3d", | |
| "R6", | |
| "e1PP88", | |
| "J1", | |
| "u16", | |
| "t", | |
| "16", | |
| "6", | |
| "31", | |
| "uu", | |
| "u40", | |
| "u32", | |
| "r2", | |
| "YY32", | |
| "u3", | |
| "CC", | |
| "l", | |
| "uZZ", | |
| "u8", | |
| "t9Mq", | |
| "u", | |
| "7g8", | |
| "dddd", | |
| "aaecE", | |
| "vIIc2", | |
| "vec2", | |
| "ZllRR2", | |
| "kNNecrr", | |
| "e2", | |
| "vc2f", | |
| "veca", | |
| "HHec2G", | |
| "vec2f", | |
| "cc2f", | |
| "vB22nllf", | |
| "vec25", | |
| "eR2h", | |
| "gec2h", | |
| "ve2h", | |
| "vec2h", | |
| "vecph", | |
| "vecK99h", | |
| "22Rch", | |
| "vecnn", | |
| "veeENi", | |
| "fHHec3i", | |
| "vec2i", | |
| "ss226i", | |
| "em0i", | |
| "vecNp", | |
| "ve62", | |
| "oZWWV2u", | |
| "vHHu", | |
| "vec2u", | |
| "vAcu", | |
| "vTu", | |
| "2ec2u", | |
| "vec4W", | |
| "8eZ", | |
| "FRc", | |
| "vec3", | |
| "bbc3", | |
| "gce", | |
| "ech", | |
| "vZqNN", | |
| "v9f", | |
| "ccHMMf", | |
| "vec3f", | |
| "v3x", | |
| "veXX", | |
| "3f", | |
| "veh", | |
| "vecgg3h", | |
| "rfe3h", | |
| "vec3h", | |
| "ve3h", | |
| "vggc3D", | |
| "v993Q", | |
| "eeei", | |
| "veci", | |
| "vc3II", | |
| "vec3i", | |
| "veqi", | |
| "Ooc77i", | |
| "vrrDD", | |
| "vecju", | |
| "11ciiFu", | |
| "jBcRRu", | |
| "vec3u", | |
| "vdAc_7u", | |
| "3jj", | |
| "xxkeo", | |
| "veW4", | |
| "vQQI4", | |
| "vcI", | |
| "vec4", | |
| "vc4", | |
| "224", | |
| "vgElc4", | |
| "ve74", | |
| "vec66m88", | |
| "a4f", | |
| "vec4f", | |
| "vE4f", | |
| "hqf", | |
| "vc4_", | |
| "cr", | |
| "veBB4", | |
| "11nned4BB", | |
| "vec4h", | |
| "neFFh", | |
| "mmBc4cc", | |
| "vtt77h", | |
| "ti", | |
| "ecKi", | |
| "vejFFn", | |
| "vec4i", | |
| "Ec4", | |
| "vecDD", | |
| "voc4h55", | |
| "uueZu", | |
| "ve755PP", | |
| "vkkcS", | |
| "vec4u", | |
| "vFcSEE", | |
| "vyybb", | |
| "JcR", | |
| }; | |
| for (auto _ : state) { | |
| for (auto* str : kStrings) { | |
| auto result = ParseBuiltinType(str); | |
| benchmark::DoNotOptimize(result); | |
| } | |
| } | |
| } // NOLINT(readability/fn_size) | |
| BENCHMARK(BuiltinTypeParser); | |
| void BuiltinValueParser(::benchmark::State& state) { | |
| const char* kStrings[] = { | |
| "bTrycentrc1coord", | |
| "barXcXtric_corT", | |
| "arycentric_00oord", | |
| "barycentric_coord", | |
| "Pary77entric_coord", | |
| "barypentZic_coor", | |
| "PParycwnti_coorbb", | |
| "clipssbbH8stanjjes", | |
| "clip_distanchs", | |
| "cli_disxxane", | |
| "clip_distances", | |
| "clrQ_Bistanees", | |
| "clip_disJJances", | |
| "clp_uistawcv", | |
| "fragttdetxx", | |
| "fr99gvdepth", | |
| "frgdeh", | |
| "frag_depth", | |
| "ffrann_depth", | |
| "frag5depth", | |
| "UraJ_dupIh", | |
| "front_fcing", | |
| "fFonttfacing", | |
| "fr1nt_facing", | |
| "front_facing", | |
| "froAAt_faDDing", | |
| "OPnt_f2cin", | |
| "frontfacing", | |
| "g77obal_invocation_id", | |
| "globUUl_iAAvoatimmn_1d", | |
| "gloAAal_invoXation_fd", | |
| "global_invocation_id", | |
| "glvbal_invoVVativn_i", | |
| "pplobal_invocation_id", | |
| "global_invocatiTTn_id", | |
| "kjlobal_invo00ation_index", | |
| "global_invoation_index", | |
| "global_invocatin_inyyex", | |
| "global_invocation_index", | |
| "gloal_invzzcYYtion_index", | |
| "global_iinvWcation_index", | |
| "globUUl6invoc0tin_ind7x", | |
| "UUnsance_ndpx", | |
| "istancTThinex", | |
| "ins5nce_index", | |
| "instance_index", | |
| "insanc_id1x", | |
| "instmmnI44_index", | |
| "RntanceYDYYndex", | |
| "local_injjocation_id", | |
| "localinvocation_id", | |
| "local_inQQodation_i", | |
| "local_invocation_id", | |
| "lHcal_invocationi55", | |
| "locFFlxinvocation_kd", | |
| "lrcalinvcation_Dd", | |
| "lNcal_inKKocation_i_dex", | |
| "local_invocatxonTindex", | |
| "local_invocation_ivvdex", | |
| "local_invocation_index", | |
| "local_invocation_indjj", | |
| "localnnOOnvocation_ndex", | |
| "local_invocaggOOnOindex", | |
| "nQQmwwubgroups", | |
| "um_Jubgroups", | |
| "num_Dubgroups", | |
| "num_subgroups", | |
| "OOum_subroups", | |
| "num_subroups", | |
| "00um_subgrps", | |
| "num_wolrouqs", | |
| "nuE_workgroups", | |
| "nu_workgroiips", | |
| "num_workgroups", | |
| "num_wsrkgrups", | |
| "numttwokgros22s", | |
| "numsworkgriius", | |
| "poition", | |
| "poCtoou", | |
| "JHHston", | |
| "position", | |
| "psitggyh", | |
| "pWWitioB", | |
| "pEccEECion", | |
| "primGtiveeinyyex", | |
| "prUitive_44ndex", | |
| "primiive_index", | |
| "primitive_index", | |
| "primiNive_index", | |
| "primitMMve_ssndex", | |
| "primCtive_inDex", | |
| "ggTYple_index", | |
| "sampjje_index", | |
| "smpDDe_inde", | |
| "sample_index", | |
| "99MMpEEe_index", | |
| "sNmple_idex", | |
| "55ample_index", | |
| "Qample_mask", | |
| "nnamplemask", | |
| "sampWWFFmak", | |
| "sample_mask", | |
| "wample66mask", | |
| "sampleFmavk", | |
| "sample_Wsk", | |
| "sugrou_id", | |
| "sugrKu5d", | |
| "s4bgroup_id", | |
| "subgroup_id", | |
| "sgbgouP_inn", | |
| "7UgrouS_id", | |
| "subgropVi22", | |
| "subgroup_invocapion_id", | |
| "su99gro2p_XnvoVVa9ion_id", | |
| "subgrup_invocainn_d", | |
| "subgroup_invocation_id", | |
| "sbgru_inBocation_id", | |
| "subgrop_i8vocatioBBid", | |
| "subgroAAp_invoCCytioA_id", | |
| "suvgroip_sie", | |
| "subgouA4QQsize", | |
| "subgrZZp_sizT4", | |
| "subgroup_size", | |
| "subgrluX_size", | |
| "suddroup_size", | |
| "subddropsiz", | |
| "vi1ex_index", | |
| "vertexvGGne", | |
| "vejjex_inde", | |
| "vertex_index", | |
| "vertex_inwex", | |
| "vernexXindex", | |
| "ve9texjEindx", | |
| "view_inz", | |
| "view_iWW2ex", | |
| "view_ndex", | |
| "view_index", | |
| "Vie_index", | |
| "niew_inzzel", | |
| "Yie__indx", | |
| "worMgrHupkkid", | |
| "worDgroIpzzid", | |
| "qorkdrop_id", | |
| "workgroup_id", | |
| "workoroup_h", | |
| "wlMMkgroup_iN", | |
| "worgroupid", | |
| "wox9roup_inex", | |
| "norkgrop_indVVx", | |
| "workgrKp_indx", | |
| "workgroup_index", | |
| "woCCkgrop_indBB", | |
| "workgroupiodex", | |
| "workg88upccwinEEex", | |
| }; | |
| for (auto _ : state) { | |
| for (auto* str : kStrings) { | |
| auto result = ParseBuiltinValue(str); | |
| benchmark::DoNotOptimize(result); | |
| } | |
| } | |
| } // NOLINT(readability/fn_size) | |
| BENCHMARK(BuiltinValueParser); | |
| void InterpolationSamplingParser(::benchmark::State& state) { | |
| const char* kStrings[] = { | |
| "cenebb", | |
| "cente6", | |
| "geKe", | |
| "center", | |
| "c1ItEr", | |
| "cente", | |
| "ppeHer", | |
| "qqaantrGid", | |
| "cnroid", | |
| "xxxxn_roid", | |
| "centroid", | |
| "cezztroiSS", | |
| "centoid", | |
| "eo4oid", | |
| "eite", | |
| "eKhe", | |
| "eiczze", | |
| "either", | |
| "itgg8er", | |
| "eitjjsr", | |
| "1AAiher", | |
| "fir66Vl", | |
| "is", | |
| "GGrmht", | |
| "first", | |
| "fiiyyt", | |
| "QQtrsv_", | |
| "fLLs", | |
| "samWcc", | |
| "Fapve", | |
| "sazyyle", | |
| "sample", | |
| "oaml", | |
| "cRIple", | |
| "sddple", | |
| }; | |
| for (auto _ : state) { | |
| for (auto* str : kStrings) { | |
| auto result = ParseInterpolationSampling(str); | |
| benchmark::DoNotOptimize(result); | |
| } | |
| } | |
| } // NOLINT(readability/fn_size) | |
| BENCHMARK(InterpolationSamplingParser); | |
| void InterpolationTypeParser(::benchmark::State& state) { | |
| const char* kStrings[] = { | |
| "lMt", | |
| "Olat", | |
| "KTT6at", | |
| "flat", | |
| "RR", | |
| "4t", | |
| "lqq", | |
| "lBBnear", | |
| "BBaW2ear", | |
| "linejjr", | |
| "linear", | |
| "inatHH", | |
| "iJear", | |
| "ottinelS", | |
| "pespcSSi__r", | |
| "WWerspective", | |
| "kerspective", | |
| "perspective", | |
| "pestActbbve", | |
| "pe_spe1ive", | |
| "pepefNtive", | |
| }; | |
| for (auto _ : state) { | |
| for (auto* str : kStrings) { | |
| auto result = ParseInterpolationType(str); | |
| benchmark::DoNotOptimize(result); | |
| } | |
| } | |
| } // NOLINT(readability/fn_size) | |
| BENCHMARK(InterpolationTypeParser); | |
| void TexelFormatParser(::benchmark::State& state) { | |
| const char* kStrings[] = { | |
| "bkraunoiim", | |
| "bgUa8wnorm", | |
| "Ira8unoFm", | |
| "bgra8unorm", | |
| "b88ra8unoLL4m", | |
| "bgrZZ8unorm", | |
| "bMMra8unorm", | |
| "r16foat", | |
| "MM16f6ASSt", | |
| "TTx6flggGG", | |
| "r16float", | |
| "r16Iloat", | |
| "r16flolt", | |
| "r1OOflo", | |
| "1aKi5t", | |
| "Rf__zznt", | |
| "r1LLsinP", | |
| "r16sint", | |
| "r16shht", | |
| "r6sint", | |
| "16sjt", | |
| "r10oBB", | |
| "rgLLsxxr", | |
| "rMMIIsnorm", | |
| "r16snorm", | |
| "rgF6norX", | |
| "zz16ssprm", | |
| "rr16sZZFrm", | |
| "rrrjin00", | |
| "p1wrrint", | |
| "QZ6int", | |
| "r16uint", | |
| "rn__unh", | |
| "r1wint", | |
| "r36uint", | |
| "r16Xnoim", | |
| "runor", | |
| "r1Oucvvrm", | |
| "r16unorm", | |
| "rP65vorj", | |
| "N1unpri", | |
| "r26norm", | |
| "qJ32loDt", | |
| "r3fmoQt", | |
| "rJ2foat", | |
| "r32float", | |
| "r32lWWat", | |
| "rQQ2wlwgat", | |
| "r32floaz", | |
| "rzzWsint", | |
| "r2si", | |
| "993UUiqqt", | |
| "r32sint", | |
| "EE32RRit", | |
| "r32st", | |
| "r32tint", | |
| "r3MMqt", | |
| "KKT2uiBaat", | |
| "ll2uiII5", | |
| "r32uint", | |
| "r3BBoowt", | |
| "PP__2uint", | |
| "RR32uint", | |
| "rht", | |
| "Qn", | |
| "HH888t", | |
| "r8sint", | |
| "r8sYYDt", | |
| "rOsint", | |
| "r8si8ZI", | |
| "rYsoorm", | |
| "rX0sorm", | |
| "nc8sKKrm", | |
| "r8snorm", | |
| "r33GRor88", | |
| "r8sXXo33qm", | |
| "rszz4m", | |
| "rWhhtinW", | |
| "xuint", | |
| "ee8Cnt", | |
| "r8uint", | |
| "r8rYt", | |
| "S8uixmt", | |
| "ruint", | |
| "yy8unrm", | |
| "r88or", | |
| "r8eeorm", | |
| "r8unorm", | |
| "r8hhorkk", | |
| "r8BBnOOm", | |
| "r8u9om", | |
| "rg11D1ggfloat", | |
| "rg111nn0ufloa", | |
| "rgS1I1quflat", | |
| "rg11b10ufloat", | |
| "rg111YYufloat", | |
| "rg11b1LYu0oaVV", | |
| "mg21bI0uf66soat", | |
| "jjg16floa", | |
| "g7fpoat", | |
| "rg16floaN", | |
| "rg16float", | |
| "rgss6flggat", | |
| "rg16floa", | |
| "rg16flJOat", | |
| "MMg16sin00", | |
| "rg16smmMMt", | |
| "r16sqHnt", | |
| "rg16sint", | |
| "rg886sin", | |
| "gRR6wwint", | |
| "rgq6sint", | |
| "rU1sno", | |
| "rg16noQBM", | |
| "rg16sn33rm", | |
| "rg16snorm", | |
| "Og133snorm", | |
| "gw6sorm", | |
| "rgAkksMorm", | |
| "rg16uit", | |
| "rd6it", | |
| "rg55wXXuint", | |
| "rg16uint", | |
| "rg1uint", | |
| "g1dint", | |
| "dJJ6uit", | |
| "rg_6u1om", | |
| "r16uLLm", | |
| "99g6GGnrm", | |
| "rg16unorm", | |
| "rg6xxUnor", | |
| "rg16no9m", | |
| "rg16uvorm", | |
| "rg32f2LLoat", | |
| "f132fbot", | |
| "g32fAAgat", | |
| "rg32float", | |
| "32fUat", | |
| "rn3wflozzt", | |
| "rg32fnowVVMM", | |
| "g3NNXint", | |
| "r32siWWe77", | |
| "r333PPvvint", | |
| "rg32sint", | |
| "rg32sjj22t", | |
| "AAg32int", | |
| "rkkRR2sNn", | |
| "rg32uinQQ", | |
| "rg3uuint", | |
| "rg3uuut", | |
| "rg32uint", | |
| "Zg2uit", | |
| "r32Hint", | |
| "fSS32iSSdd", | |
| "rTT8sint", | |
| "rc8tin", | |
| "hhg8sint", | |
| "rg8sint", | |
| "rgGsit", | |
| "AAgwwHbbint", | |
| "rg8sBBnt", | |
| "Mgsnoh2m", | |
| "rg8snWWr", | |
| "rg8snqqrm", | |
| "rg8snorm", | |
| "rgBUUroO", | |
| "8g8sorE", | |
| "rg8VVrRorm", | |
| "rgOOiGG3H", | |
| "Dgu55t", | |
| "rQ8uiBSS", | |
| "rg8uint", | |
| "gauzzt", | |
| "rgiAA66", | |
| "rg8w_t", | |
| "rg8unom", | |
| "rg8rorm", | |
| "rG8unorRR", | |
| "rg8unorm", | |
| "rx81noLLKU", | |
| "rgNNFnoWWm", | |
| "rgUnorf", | |
| "r6bEEFFa2unt", | |
| "99TJJbyy02uint", | |
| "rzb0a2uint", | |
| "rgb10a2uint", | |
| "gb10Iuint", | |
| "r1pa2ui", | |
| "rgb10nnttint", | |
| "Kgb10a2unirm", | |
| "rgbee0a2unorm", | |
| "rgb10g112_orm", | |
| "rgb10a2unorm", | |
| "rgb0a2unorm", | |
| "rb10a2norm", | |
| "rpb12norX", | |
| "rgb6616flYss", | |
| "gbaY6f77IIat", | |
| "rgeeSS1Gfloat", | |
| "rgba16float", | |
| "rgQl1float", | |
| "gba16floa", | |
| "__gba16float", | |
| "rgba16iDDt", | |
| "rgb16snt", | |
| "rgb5l55sin1", | |
| "rgba16sint", | |
| "r4bacsint", | |
| "gba16sint", | |
| "rgOa111si6t", | |
| "rgba16ors", | |
| "rgXa16snorm", | |
| "rgba16sno44w", | |
| "rgba16snorm", | |
| "rgba16snYYrm", | |
| "gba16snorm", | |
| "rgba6ynTTm", | |
| "bbba16uivv", | |
| "rgba16uikt", | |
| "Vb516uin9", | |
| "rgba16uint", | |
| "rajjRR6uint", | |
| "YYgb1677int", | |
| "rbaLLJnt", | |
| "rb16unnorm", | |
| "rgba16udoor", | |
| "bHa16jnoEm", | |
| "rgba16unorm", | |
| "rgba16unrm", | |
| "Q11ba1uiorA", | |
| "rvvbaSSunorm", | |
| "rg32flTt", | |
| "rgba3qqbsoat", | |
| "rgba33oat", | |
| "rgba32float", | |
| "gba32nnlot", | |
| "rgbm32float", | |
| "Bba32IIoat", | |
| "rgba32fint", | |
| "ra__a32snt", | |
| "rga2int", | |
| "rgba32sint", | |
| "ii4a32sinD", | |
| "rgUa33sin", | |
| "rgb32sint", | |
| "rgba2uiWWV", | |
| "rgba32in8", | |
| "rgbM32unE", | |
| "rgba32uint", | |
| "r78ba32uj5t", | |
| "rzzba3gui88t", | |
| "gee32uunt", | |
| "rfa8i", | |
| "QQIba8sinll", | |
| "XXppbSS8inT", | |
| "rgba8sint", | |
| "rga8iv__", | |
| "gba8snt", | |
| "3gbacit", | |
| "JJgba8swW88m", | |
| "r88baysnorm", | |
| "rgba8snoUUm", | |
| "rgba8snorm", | |
| "rgbaDIxxorm", | |
| "g88qqnorm", | |
| "gba8sirrm", | |
| "rgba8uin", | |
| "rgba8in", | |
| "4gbaLLuint", | |
| "rgba8uint", | |
| "rgla8uint", | |
| "ooba8uint", | |
| "rgB8uSSnt", | |
| "rgbaeBBoMMm", | |
| "rgba99sdd4ohm", | |
| "rgb338unorm", | |
| "rgba8unorm", | |
| "rgba3unorm", | |
| "rgbaiunorm", | |
| "gba8noff", | |
| }; | |
| for (auto _ : state) { | |
| for (auto* str : kStrings) { | |
| auto result = ParseTexelFormat(str); | |
| benchmark::DoNotOptimize(result); | |
| } | |
| } | |
| } // NOLINT(readability/fn_size) | |
| BENCHMARK(TexelFormatParser); | |
| } // namespace | |
| } // namespace tint::core | |
| // clang-format on |