| // 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", | |
| "bccnding_a_ray", | |
| "bndiS6xx_azzray", | |
| "iing_array", | |
| "binding_array", | |
| "Nindi4g_vxxay", | |
| "iAAdingpp00rra", | |
| "byning_aeeya", | |
| "bWWbl", | |
| "MMtmol", | |
| "d", | |
| "bool", | |
| "_oo", | |
| "bEEoV", | |
| "boo4", | |
| "bVVfgeX", | |
| "ouffVr", | |
| "buffe", | |
| "buffer", | |
| "btfKKr", | |
| "uGr", | |
| "uafer", | |
| "O6", | |
| "G", | |
| "f6", | |
| "f16", | |
| "99R16", | |
| "12", | |
| "YYvXR", | |
| "2", | |
| "XX5", | |
| "3", | |
| "f32", | |
| "ppcc", | |
| "v32", | |
| "EESS", | |
| "i", | |
| "", | |
| "i3w", | |
| "i32", | |
| "id992", | |
| "99P", | |
| "KK3", | |
| "oDD", | |
| "22", | |
| "q", | |
| "i8", | |
| "0L", | |
| "vv66", | |
| "nr", | |
| "ineeut_aachmxxnt", | |
| "NNnput_aCCtOchment", | |
| "input_attachmnt", | |
| "input_attachment", | |
| "inp4t_attacament", | |
| "inNNut_attachmNNt", | |
| "input_atachment", | |
| "mux2", | |
| "at2YSEE", | |
| "m0t2x2", | |
| "mat2x2", | |
| "mataax2", | |
| "mmm2qq", | |
| "matx2", | |
| "mUUx2E", | |
| "mDDtK2f", | |
| "mat2x0t_", | |
| "mat2x2f", | |
| "lApxf", | |
| "mtMx2f", | |
| "mat2xBBf", | |
| "nnt99bbh", | |
| "EEAA1x2h", | |
| "m5662xTh", | |
| "mat2x2h", | |
| "Hat2x2h", | |
| "xxHtx2h", | |
| "mnyt2z2h", | |
| "mat23", | |
| "mktxH", | |
| "atcx3", | |
| "mat2x3", | |
| "orrtx3", | |
| "mtJJ3", | |
| "0CCt2x", | |
| "mAxFx99f", | |
| "matcx3f", | |
| "mat2S3f", | |
| "mat2x3f", | |
| "masoxBB", | |
| "matx3f", | |
| "matx3em", | |
| "oPPtx3gQQ", | |
| "Btx", | |
| "mlKKN3h", | |
| "mat2x3h", | |
| "marrx3", | |
| "atrpx3h", | |
| "yPat2x3h", | |
| "cc2ZZ4", | |
| "mt24", | |
| "m00t2x4", | |
| "mat2x4", | |
| "ssPBat24", | |
| "ffwaJJxf", | |
| "mIt2XX", | |
| "2f", | |
| "ma2x4f", | |
| "utKKx4f", | |
| "mat2x4f", | |
| "ma442df", | |
| "motpx4f", | |
| "mathhjN4f", | |
| "ma33UUEwwh", | |
| "matxuh", | |
| "Kaddxrrh", | |
| "mat2x4h", | |
| "2tt2PP4r", | |
| "m1twwx4h", | |
| "mat2xc1nn", | |
| "mt3x2", | |
| "mat32", | |
| "aatSS6xI", | |
| "mat3x2", | |
| "EED3x2", | |
| "ccatIVR", | |
| "atx2", | |
| "aaht32f", | |
| "mLtSx2f", | |
| "mfmm32", | |
| "mat3x2f", | |
| "mm4V2f", | |
| "matx__", | |
| "Qat2f", | |
| "mdRRE3x2", | |
| "m93x2h", | |
| "at3C0", | |
| "mat3x2h", | |
| "t3x2z", | |
| "ccat3x2h", | |
| "at3x2Q_", | |
| "ma3xt", | |
| "EpptCCzzx3", | |
| "mahh3dd3", | |
| "mat3x3", | |
| "_a66x77", | |
| "mPt3x3", | |
| "mwt3x3", | |
| "uux3f", | |
| "6at3XX3f", | |
| "mR33f", | |
| "mat3x3f", | |
| "m33VV", | |
| "mHHt3GG3f", | |
| "mMtFF73f", | |
| "9at3x3", | |
| "at3x33", | |
| "BBa3x3_", | |
| "mat3x3h", | |
| "matxBOOa", | |
| "mat3AAh", | |
| "maGG3yh", | |
| "77a3xX", | |
| "mFFttxK", | |
| "mZZossUU4", | |
| "mat3x4", | |
| "mt3x4", | |
| "mal3x4", | |
| "mah3x4", | |
| "mKtTTxk", | |
| "ma3xwwf", | |
| "mt3x4Kjj", | |
| "mat3x4f", | |
| "atxYYf", | |
| "mat3EE4", | |
| "QQat3x4f", | |
| "lat3P", | |
| "at3x4Hff", | |
| "man3x4h", | |
| "mat3x4h", | |
| "matg46F", | |
| "mhss8x4h", | |
| "llFa3x4h", | |
| "2t4002", | |
| "mag4x2", | |
| "eatx2", | |
| "mat4x2", | |
| "mft4x2", | |
| "at4", | |
| "matx2", | |
| "qqt4x2f", | |
| "AA42f", | |
| "matx2v", | |
| "mat4x2f", | |
| "mjjt4xf", | |
| "ZZat4x2f", | |
| "mPIItO22f", | |
| "mZZt4x2h", | |
| "mat4x2nn", | |
| "kkZa224x2h", | |
| "mat4x2h", | |
| "mat42h", | |
| "ma4xR", | |
| "mat4xqq9h", | |
| "m77t4x3", | |
| "at3x", | |
| "macc4x3", | |
| "mat4x3", | |
| "RR14x3", | |
| "mJJll4x", | |
| "IaMM", | |
| "7T6t4x3", | |
| "mat4xQQJ", | |
| "uu4x3f", | |
| "mat4x3f", | |
| "mat4f", | |
| "m433qf", | |
| "maxx4x3f", | |
| "Nrr4h", | |
| "a994x3h", | |
| "at4x3", | |
| "mat4x3h", | |
| "mat4H3h", | |
| "_at4x3h", | |
| "m44t4x3h", | |
| "mt4x4", | |
| "jt4x4", | |
| "matt4mEE4", | |
| "mat4x4", | |
| "t4x4", | |
| "mrrt44", | |
| "xatx4", | |
| "zzt4x4", | |
| "mat4x4e", | |
| "au4pZ4f", | |
| "mat4x4f", | |
| "muuTT4x00", | |
| "mvvxJJ", | |
| "maQ4x4f", | |
| "mC4R4h", | |
| "aCx", | |
| "ma4xPPpr", | |
| "mat4x4h", | |
| "muDDt4xxxh", | |
| "YYlqamd4x4h", | |
| "atFFx4__", | |
| "NNGtr", | |
| "Mlr", | |
| "", | |
| "ptr", | |
| "xlq", | |
| "tr", | |
| "44a", | |
| "WWGmpler", | |
| "sjjmplr", | |
| "sajjpler", | |
| "sampler", | |
| "sa1jer", | |
| "sample", | |
| "99ampler", | |
| "samVVler_comparison", | |
| "ZZampler_cmparxson", | |
| "sampl33r_ompavvison", | |
| "sampler_comparison", | |
| "sampler9comparisos", | |
| "samler_Fomparison", | |
| "sampuer_compaeison", | |
| "subgroup_mtIixlefKK", | |
| "subgroJ_matrix_left", | |
| "sXXCCgrouSS_matrix_left", | |
| "subgroup_matrix_left", | |
| "subgroup_matrWW66_ZZJft", | |
| "ubgoup_mdmt5ix_left", | |
| "subgroup_mUrBBBx_left", | |
| "subgr0up_mJJtri11_result", | |
| "subfroup_matrix_rettult", | |
| "subgrXupmtttrix_rsult", | |
| "subgroup_matrix_result", | |
| "subgroLp_matrix_reswlt", | |
| "su1group_matrix_result", | |
| "subgroup_matrix_resuwwt", | |
| "subgou_atrix_righee", | |
| "subgroup_matrx_right", | |
| "subgroup_matNNix_right", | |
| "subgroup_matrix_right", | |
| "__RRbgroup_matrix_riUUhl", | |
| "sHbgroup_matrix_right", | |
| "subgrour_maCCrix_right", | |
| "exel_buffer", | |
| "texppl_bdfIr", | |
| "texel_bufer", | |
| "texel_buffer", | |
| "Lexel_bNfr", | |
| "e_buffe", | |
| "teGRRexx_uqqfer", | |
| "texturS_GGd", | |
| "88tucce_1d", | |
| "texture_1", | |
| "texture_1d", | |
| "textte_ppd", | |
| "qqFF0xture551d", | |
| "txture_1d", | |
| "textur2d", | |
| "texOre_2d", | |
| "textuHHe_2", | |
| "texture_2d", | |
| "66extureSS2O", | |
| "tTTturddY_2d", | |
| "textursg2d", | |
| "texGGure_2d_array", | |
| "teQQtOreI2ll_array", | |
| "texture_2d_aray", | |
| "texture_2d_array", | |
| "texture_2d_arrray", | |
| "texture2d_ar7yyy", | |
| "tBBxtur22_2d_WrrYy", | |
| "textyyVe_3d", | |
| "x4ure_3", | |
| "texture_ddd", | |
| "texture_3d", | |
| "texuVVez2d", | |
| "teyyture_3d", | |
| "tex__ure_Ad", | |
| "texture_chhbe", | |
| "ttvvre_cube", | |
| "textureube", | |
| "texture_cube", | |
| "textoorsNNgube", | |
| "textrmm_Zube", | |
| "3extkecube", | |
| "texAur_ffube_aRray", | |
| "Wxturrr_cube_zzrry", | |
| "texture_ubRR_aray", | |
| "texture_cube_array", | |
| "textMr88_cube_arraSS", | |
| "txturRPPcubebbarray", | |
| "textWWre_cubexxrray", | |
| "texture_dptAAv_2d", | |
| "tj44xXure_depth_2d", | |
| "texture_depthf2d", | |
| "texture_depth_2d", | |
| "texAAureUepth_2OO", | |
| "textur_ssept_2d", | |
| "texbbure_depFsh_2d", | |
| "texture_depth_2d_annraYY", | |
| "teture_depth_2d_arrass", | |
| "texture_depth_zzd_araq", | |
| "texture_depth_2d_array", | |
| "texture_deptNN_d_arrQ", | |
| "texturekppdpth_2darray", | |
| "texturs8_depLh_Jd_array", | |
| "77exJure_depthff5TTbe", | |
| "texure_d00pth_cubx", | |
| "Ae1ture_deph_cube", | |
| "texture_depth_cube", | |
| "texture_depthcube", | |
| "textuQQe_depth_ube", | |
| "texture_weptiicbe", | |
| "texture_depth_cube_arwway", | |
| "texJJure_dephYh_cube_array", | |
| "kexture_deptRR_cube_E7ay", | |
| "texture_depth_cube_array", | |
| "texture_depth_kuube_array", | |
| "textureRdept_cube_trray", | |
| "textrN_depth_cIIbe_array", | |
| "texture_deptII_multisampled_d", | |
| "texture_depthmultisamiiledE2d", | |
| "textssre_depth_multisamped_2d", | |
| "texture_depth_multisampled_2d", | |
| "CCxture55Xepth_multisampled_2d", | |
| "tex9ure_depth_multisampled_2d", | |
| "texture_Xepth_mulisamped_2d", | |
| "txture_eteIInal", | |
| "texturz_external", | |
| "texurAAzz22xternal", | |
| "texture_external", | |
| "textur_external", | |
| "Fbbxtre_eternal", | |
| "texture_MMxVernal", | |
| "texturA_mwcmmisamplzzd_2d", | |
| "texture_muOOtisampeQQ2d", | |
| "texture_mbltisampled_2d", | |
| "texture_multisampled_2d", | |
| "texture_multisaCpleknn25", | |
| "texture_multisaplyyKK_2rr", | |
| "tAAture_multisampleT_2d", | |
| "QQexturZ_mutisampled_2d_array", | |
| "te8ture_mulisampled_d_array", | |
| "exture_mulaisampled_2d_array", | |
| "texture_multisampled_2d_array", | |
| "teeccture_mulisampled_2dbarray", | |
| "textue_multisampledPP2LLarray", | |
| "texture_multWWsampU_2d_array", | |
| "texture_stzzrage_1", | |
| "text__re_soNa_1d", | |
| "texture_storagea1d", | |
| "texture_storage_1d", | |
| "texre_stoBage_1d", | |
| "zzexture_torge_1d", | |
| "textureUaatorbge_HHd", | |
| "te4ture_sOorg_2d", | |
| "texGGme_storage_2d", | |
| "teture_storage_2d", | |
| "texture_storage_2d", | |
| "texturezzstG8rageN2d", | |
| "texture_storag_2d", | |
| "textuxe_storaAAe_2d", | |
| "texture_storage_2d_arbbuay", | |
| "tejjture_storage_2d_array", | |
| "tecture_storqqJge_2d_arxay", | |
| "texture_storage_2d_array", | |
| "Fexture_storag2d_array", | |
| "tevvure_stoAage_2_array", | |
| "texture_cctorage_2d_array", | |
| "txtur7BstoraUUe_3d", | |
| "texture_storaAAB_3d", | |
| "texxure_storage_3d", | |
| "texture_storage_3d", | |
| "8exture_sorageU3d", | |
| "tUIture_stora88CB_3d", | |
| "texture_stora__e_3d", | |
| "UU6", | |
| "16", | |
| "uu77r", | |
| "u16", | |
| "ukk", | |
| "ul6", | |
| "16", | |
| "YY3", | |
| "4432", | |
| "R2", | |
| "u32", | |
| "e3PP88", | |
| "J3", | |
| "t", | |
| "u", | |
| "", | |
| "1", | |
| "u8", | |
| "F", | |
| "p", | |
| "PPY", | |
| "crCC", | |
| "ecl", | |
| "vZZc2", | |
| "vec2", | |
| "t9qcMM", | |
| "vec", | |
| "veY7g", | |
| "vdddf", | |
| "vEcaaf", | |
| "vecIIf", | |
| "vec2f", | |
| "RReZ2ll", | |
| "vecNNkrr", | |
| "vec", | |
| "vc2h", | |
| "veca", | |
| "HHec2G", | |
| "vec2h", | |
| "cc2h", | |
| "vB22nllh", | |
| "vec25", | |
| "eR2i", | |
| "gec2i", | |
| "ve2i", | |
| "vec2i", | |
| "vecpi", | |
| "vecK99i", | |
| "22Rci", | |
| "vecnn", | |
| "veeENu", | |
| "fHHec3u", | |
| "vec2u", | |
| "ss226u", | |
| "em0u", | |
| "vecNp", | |
| "vec", | |
| "veZoo", | |
| "vTTc3", | |
| "vec3", | |
| "RRc3", | |
| "veVV3", | |
| "c31", | |
| "2ec3f", | |
| "ve443W", | |
| "8Z77", | |
| "vec3f", | |
| "FeR3", | |
| "vebb3", | |
| "ggce", | |
| "UeSh", | |
| "vZqNN", | |
| "v9h", | |
| "vec3h", | |
| "ccHMMh", | |
| "v3x", | |
| "veXX", | |
| "3i", | |
| "vei", | |
| "vecgg3i", | |
| "vec3i", | |
| "rfe3i", | |
| "ve3i", | |
| "vggc3D", | |
| "v993Q", | |
| "eeeu", | |
| "vecu", | |
| "vec3u", | |
| "vc3II", | |
| "vequ", | |
| "Ooc77u", | |
| "rrDD", | |
| "vej4", | |
| "e1iiF4", | |
| "vec4", | |
| "vjRc4", | |
| "__7Ad4", | |
| "cj", | |
| "xxkeo", | |
| "veW4f", | |
| "IQQN1f", | |
| "vec4f", | |
| "veIf", | |
| "vjc4", | |
| "e722", | |
| "vEElc4g", | |
| "ve74", | |
| "vec66m88", | |
| "vec4h", | |
| "a4h", | |
| "vE4h", | |
| "hqh", | |
| "vc4_", | |
| "cr", | |
| "veBB4", | |
| "vec4i", | |
| "11nned4BB", | |
| "neFFi", | |
| "mmBc4cc", | |
| "vtt77u", | |
| "tu", | |
| "ecKu", | |
| "vec4u", | |
| "vejFFn", | |
| "Ec4", | |
| "vecDD", | |
| }; | |
| 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[] = { | |
| "barycentrh55ocoorSS", | |
| "uuarZcentric_cord", | |
| "barycen7ricPP5coord", | |
| "barycentric_coord", | |
| "barycentric_ckkoS", | |
| "baSyc_nEEric_cFord", | |
| "baryyyntic_coorbb", | |
| "lRp_ditances", | |
| "cTip_d1stancs", | |
| "XiT_diXtanes", | |
| "clip_distances", | |
| "clip_distan00s", | |
| "cliP_dis77ances", | |
| "clip_isZances", | |
| "fbbag_PPtw", | |
| "8rjjbssHHdepth", | |
| "fraghdepth", | |
| "frag_depth", | |
| "xxag_det", | |
| "rrag_deBtQ", | |
| "frJJg_depth", | |
| "ronw_fucig", | |
| "front_fxttiZg", | |
| "fron99vfacing", | |
| "front_facing", | |
| "frnt_fcn", | |
| "fronfft_facing", | |
| "front_fa5ing", | |
| "global_invUcaJiou_Id", | |
| "global_invoation_id", | |
| "gtobal_invocation_id", | |
| "global_invocation_id", | |
| "global_invocation_1d", | |
| "global_invoAAation_DDd", | |
| "globaPOivoation_id", | |
| "gloal_invocation_index", | |
| "global_invocation_i77dex", | |
| "gUUobal_invocatAA1_mmndex", | |
| "global_invocation_index", | |
| "glAXbal_infocation_index", | |
| "gobal_invvcation_iVVdvx", | |
| "global_inppocation_index", | |
| "insTTance_index", | |
| "instance_jjnk0ex", | |
| "nstance_index", | |
| "instance_index", | |
| "intyynce_index", | |
| "inzztane_indYYx", | |
| "iiWstance_index", | |
| "lc6l_7nvUU0ation_id", | |
| "local_invoUUatiopd", | |
| "loaTT_invohationid", | |
| "local_invocation_id", | |
| "loca_in5ocation_id", | |
| "loal_invoc1ton_i", | |
| "local_iI44ocationmmid", | |
| "locaR_YnocatDDon_YYndex", | |
| "local_invocation_ijjdex", | |
| "local_invocation_idex", | |
| "local_invocation_index", | |
| "local_invocatdQQ_index", | |
| "locaH_invo55ation_inex", | |
| "local_ixvokatFFon_index", | |
| "nrsubgroups", | |
| "Num_KK_bgroups", | |
| "nua_subgxoups", | |
| "num_subgroups", | |
| "num_subgrouvvs", | |
| "num_sjjbgroup", | |
| "num_subnnroOOs", | |
| "nggmOOwokgroups", | |
| "QQum_worwwgrous", | |
| "nuJ_workgrops", | |
| "num_workgroups", | |
| "nuD_workgroups", | |
| "nuOOworkgroups", | |
| "nm_workgroups", | |
| "psi00io", | |
| "loiqio", | |
| "pusition", | |
| "position", | |
| "positio33", | |
| "ositioNN", | |
| "psMtio", | |
| "prbbmi22Re_index", | |
| "priimtive_index", | |
| "primiive_index", | |
| "primitive_index", | |
| "prmiooue_Cndex", | |
| "priHHitiJeinex", | |
| "primhive_inggyx", | |
| "smle_WWndeBB", | |
| "sample_inECEcc", | |
| "saGple_ieedyy", | |
| "sample_index", | |
| "sa44plUindex", | |
| "sample_inde", | |
| "samplN_index", | |
| "sample_MMasss", | |
| "sCmpDe_mask", | |
| "samgglYTmask", | |
| "sample_mask", | |
| "sample_jjask", | |
| "smple_mDDk", | |
| "MEEample_a99k", | |
| "sbgNoup_id", | |
| "subgroup_i55", | |
| "Qubgroup_id", | |
| "subgroup_id", | |
| "nnubgrop_id", | |
| "subgWWFFp_d", | |
| "wubgro66p_id", | |
| "subgroFp_vnvocation_id", | |
| "sWWbgroupinvocatio_id", | |
| "sugroup_invoation_id", | |
| "subgroup_invocation_id", | |
| "sKbgroupin5oation_d", | |
| "s4bgroup_invocation_id", | |
| "sggbgroup_nvoctioP_inn", | |
| "sUbgrou7SSie", | |
| "ubg22oup_Vize", | |
| "subgroup_sizp", | |
| "subgroup_size", | |
| "suVVgr929pXsize", | |
| "unroup_sie", | |
| "sbBro_size", | |
| "vere8inBBe8", | |
| "AeACCtex_iydex", | |
| "veitvvBndex", | |
| "vertex_index", | |
| "vertex44QQnAe", | |
| "verte44_ZTdex", | |
| "Xerlex_index", | |
| "workgroupddd", | |
| "ddogroup_i", | |
| "wi1group_id", | |
| "workgroup_id", | |
| "workgrvGGpi", | |
| "wojjgroup_i", | |
| "workgroupwid", | |
| "nokgroup_inXXex", | |
| "EEorkgoupji9dex", | |
| "wozkgro_index", | |
| "workgroup_index", | |
| "wWWrkgroup_2ndex", | |
| "orkgroup_index", | |
| "workgroup_Vndx", | |
| }; | |
| 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[] = { | |
| "lnz4ter", | |
| "ce__Y", | |
| "cenHkeM", | |
| "center", | |
| "cInzzeD", | |
| "qntdr", | |
| "centh", | |
| "cenlrFMMN", | |
| "entroi", | |
| "cen9ix", | |
| "centroid", | |
| "cennrVVd", | |
| "cKntrd", | |
| "BBeCroid", | |
| "ioher", | |
| "eitwwc8Er", | |
| "eitebb", | |
| "either", | |
| "eithe6", | |
| "giKe", | |
| "e1IhEr", | |
| "fist", | |
| "pHirt", | |
| "firqqat", | |
| "first", | |
| "fit", | |
| "frsxxxx", | |
| "zzirsSS", | |
| "sampe", | |
| "smoo", | |
| "saml", | |
| "sample", | |
| "sKpl", | |
| "saczzl", | |
| "amgg8le", | |
| }; | |
| 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[] = { | |
| "sjjat", | |
| "1laAi", | |
| "l66Vat", | |
| "flat", | |
| "f", | |
| "hltGG", | |
| "iilyy", | |
| "QQ_inevt", | |
| "lneLL", | |
| "linWcc", | |
| "linear", | |
| "Fievr", | |
| "lizyyar", | |
| "oina", | |
| "Ie_spectivc", | |
| "persddctive", | |
| "l2eMpectiv", | |
| "perspective", | |
| "perspectiOe", | |
| "perTTpeKK66ve", | |
| "pespRRive", | |
| }; | |
| 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[] = { | |
| "ra800o4m", | |
| "bgn8unrqq", | |
| "bgra8unorBB", | |
| "bgra8unorm", | |
| "bgra22BWnora", | |
| "bgra8unojjm", | |
| "bg8tnHHr66", | |
| "1JJflat", | |
| "r1ooSlttat", | |
| "rSS6far_", | |
| "r16float", | |
| "r16flWWat", | |
| "r16flokt", | |
| "r1Alotbb", | |
| "r16s1n", | |
| "rf6siN", | |
| "rii6iVt", | |
| "r16sint", | |
| "r16winU", | |
| "r1Fsnt", | |
| "r18LLsin44", | |
| "r16snZZrm", | |
| "r16snMMrm", | |
| "r16sorm", | |
| "r16snorm", | |
| "MM16s6ASSm", | |
| "TTx6snggGG", | |
| "r16Inorm", | |
| "r16lint", | |
| "rOO6ut", | |
| "1aKi5t", | |
| "r16uint", | |
| "Rf__zznt", | |
| "r1LLuinP", | |
| "r16uhht", | |
| "r16unrm", | |
| "1unojm", | |
| "r10oBB", | |
| "r16unorm", | |
| "rgLLuxxr", | |
| "rMMIIunorm", | |
| "rgF6norX", | |
| "zz32sspat", | |
| "rr32fZZFat", | |
| "r3flo00jt", | |
| "r32float", | |
| "r3rfpwwat", | |
| "32QQZat", | |
| "32__noat", | |
| "r3wint", | |
| "r32snt", | |
| "C2sit", | |
| "r32sint", | |
| "r32siGGt", | |
| "riillsiu2", | |
| "r3ccvsint", | |
| "rv2jPnt", | |
| "N3iuip", | |
| "r32u2t", | |
| "r32uint", | |
| "r32qJnD", | |
| "32uiQm", | |
| "r2uinJ", | |
| "WW8sin", | |
| "rggswQwt", | |
| "r8sznt", | |
| "r8sint", | |
| "r8szzWt", | |
| "rin", | |
| "rUqq99nt", | |
| "EE8sRRom", | |
| "r8snm", | |
| "r8storm", | |
| "r8snorm", | |
| "r8MMqm", | |
| "KKTsnoBaam", | |
| "llsnoII5", | |
| "roBBwnt", | |
| "PP__uint", | |
| "rRRuint", | |
| "r8uint", | |
| "rht", | |
| "Qn", | |
| "HH888t", | |
| "r8YDnorm", | |
| "r8unorO", | |
| "8u8IIZrm", | |
| "r8unorm", | |
| "rYuoorm", | |
| "rX0uorm", | |
| "nc8uKKrm", | |
| "rg11108GGfR33at", | |
| "33g11qq10uXXloat", | |
| "rg11z4ufloat", | |
| "rg11b10ufloat", | |
| "rttW1bW0uhhloaK", | |
| "rg1r10ufxoat", | |
| "rg1C10uflQeat", | |
| "g1rYloat", | |
| "rg16xmloat", | |
| "r1float", | |
| "rg16float", | |
| "rg1644ylyyat", | |
| "r1wwfloat", | |
| "r16fBBaii", | |
| "rgdd6ssint", | |
| "rgMsinee", | |
| "Tg16sint", | |
| "rg16sint", | |
| "r86s00l", | |
| "6mmg1Lsint", | |
| "Gg16IYYnt", | |
| "Yg16sLoVV0", | |
| "rg16ss2orm6", | |
| "jjg16snor", | |
| "rg16snorm", | |
| "g7sporm", | |
| "rg16snorN", | |
| "rgss6snggrm", | |
| "rg6uint", | |
| "rg16JiOOt", | |
| "MMg16uin00", | |
| "rg16uint", | |
| "rg16ummMMt", | |
| "r16uqHnt", | |
| "rg886uin", | |
| "pgRRuwworm", | |
| "rg16unqrm", | |
| "rU1uno", | |
| "rg16unorm", | |
| "rg16noQBM", | |
| "rg16un33rm", | |
| "Og133unorm", | |
| "gw2foat", | |
| "rgAkkfMoat", | |
| "rg3float", | |
| "rg32float", | |
| "dg3oat", | |
| "Ig3wwXX555at", | |
| "rg32loat", | |
| "g3dint", | |
| "dJJ2sit", | |
| "rg3_int", | |
| "rg32sint", | |
| "rgsinL", | |
| "99g32snt", | |
| "xU32sint", | |
| "rg29int", | |
| "vg32uint", | |
| "rg32u2LLnt", | |
| "rg32uint", | |
| "rg21fnt", | |
| "rg32Agin", | |
| "rguCU", | |
| "rnwsinzz", | |
| "rg8MMVVnnt", | |
| "NN8sXnt", | |
| "rg8sint", | |
| "g8WWe77nt", | |
| "rg833Pinvv", | |
| "rg8s2jjnt", | |
| "AAg8sorm", | |
| "rkkRRsnNr", | |
| "rg8snorQQ", | |
| "rg8snorm", | |
| "rgunorm", | |
| "g8snouum", | |
| "Zgsnom", | |
| "r8Hint", | |
| "SSdd8SSnt", | |
| "rTT8uint", | |
| "rg8uint", | |
| "rc8tin", | |
| "hhg8uint", | |
| "rgGuit", | |
| "rwwHHAAbborm", | |
| "rg8unBBrm", | |
| "Mgunoh2m", | |
| "rg8unorm", | |
| "rg8unWWr", | |
| "rg8unqqrm", | |
| "rgBUUroO", | |
| "rgb10aEint", | |
| "rgR10a2uiVVrr", | |
| "rg33OGG0H2uit", | |
| "rgb10a2uint", | |
| "55g0aDuint", | |
| "rSSbB0a2uiQt", | |
| "zzgb10aunt", | |
| "rgb1066AAuno", | |
| "g_w10a2norm", | |
| "rgb10aunorm", | |
| "rgb10a2unorm", | |
| "rgb1arunorm", | |
| "rgbRR0G2unorm", | |
| "rgb10x2unoLLKU", | |
| "rgba16NWWlFat", | |
| "rgba1GfoUt", | |
| "r6bEEFF6flat", | |
| "rgba16float", | |
| "99TJJbyy1float", | |
| "rzb16float", | |
| "gba1Iloat", | |
| "gb16pt", | |
| "ttgnn16sint", | |
| "rgba1isiKt", | |
| "rgba16sint", | |
| "reeba16sint", | |
| "rgbg_6si11t", | |
| "rgb16sint", | |
| "rgbo16snm", | |
| "rgb1Xpom", | |
| "rgb6616snYss", | |
| "rgba16snorm", | |
| "gbaY6s77IIrm", | |
| "rgeeSS1Gsnorm", | |
| "rgQl1snorm", | |
| "ba16uint", | |
| "rgba16u__nt", | |
| "rgba16iDDt", | |
| "rgba16uint", | |
| "rgb16unt", | |
| "rgb5l55uin1", | |
| "r4bacuint", | |
| "rgba16norm", | |
| "11b61OOunorm", | |
| "rgba16ors", | |
| "rgba16unorm", | |
| "rgXa16unorm", | |
| "rgba16uno44w", | |
| "rgba16unYYrm", | |
| "gba32float", | |
| "rgba2ylTTt", | |
| "rvbbb32foat", | |
| "rgba32float", | |
| "rgba3kfloat", | |
| "r5b99float", | |
| "rlljj3RRfloa", | |
| "YYgb3277int", | |
| "rbaLLJnt", | |
| "rgnn2sint", | |
| "rgba32sint", | |
| "rooba32ind", | |
| "rba3Esibt", | |
| "rba32sint", | |
| "rgbi31uAQt", | |
| "rgba32SSvnt", | |
| "gba3uin", | |
| "rgba32uint", | |
| "qqba32uisbY", | |
| "ab32u3nt", | |
| "rgb32nint", | |
| "rgba8mint", | |
| "gbIIsiBt", | |
| "gbaffsint", | |
| "rgba8sint", | |
| "rga__sint", | |
| "Ua8sij", | |
| "rgbaD4iit", | |
| "rgUa83nor", | |
| "rgb8snorm", | |
| "rgbasnoWWV", | |
| "rgba8snorm", | |
| "rgba8sor8", | |
| "rgbM8snrE", | |
| "r78ba8snj5m", | |
| "8zzgba8gint", | |
| "rgbauuee", | |
| "rfa8i", | |
| "rgba8uint", | |
| "QQIba8uinll", | |
| "XXppbSS8inT", | |
| "rga8iv__", | |
| "rga8norm", | |
| "rgb38com", | |
| "JJgba8uwW88m", | |
| "rgba8unorm", | |
| "r88bayunorm", | |
| "rgba8unoUUm", | |
| "rgbaDIxxorm", | |
| }; | |
| 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 |