From 46bcdc4372209f343ff28994770c0666a0d6c3ac Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 17 May 2022 11:54:24 -0700 Subject: Rename CP and XF normal component count enums and update their descriptions --- Source/Core/VideoCommon/VertexLoader_Normal.cpp | 66 ++++++++++++------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp') diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp index db955639d7..6813e4128c 100644 --- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp @@ -123,7 +123,7 @@ struct Set using Common::EnumMap; using Formats = EnumMap; -using Elements = EnumMap; +using Elements = EnumMap; using Indices = std::array; using Types = EnumMap; @@ -140,11 +140,11 @@ constexpr Types InitializeTable() table[VCF::Direct][false][NCC::N][FMT::UShort] = Normal_Direct(); table[VCF::Direct][false][NCC::N][FMT::Short] = Normal_Direct(); table[VCF::Direct][false][NCC::N][FMT::Float] = Normal_Direct(); - table[VCF::Direct][false][NCC::NBT][FMT::UByte] = Normal_Direct(); - table[VCF::Direct][false][NCC::NBT][FMT::Byte] = Normal_Direct(); - table[VCF::Direct][false][NCC::NBT][FMT::UShort] = Normal_Direct(); - table[VCF::Direct][false][NCC::NBT][FMT::Short] = Normal_Direct(); - table[VCF::Direct][false][NCC::NBT][FMT::Float] = Normal_Direct(); + table[VCF::Direct][false][NCC::NTB][FMT::UByte] = Normal_Direct(); + table[VCF::Direct][false][NCC::NTB][FMT::Byte] = Normal_Direct(); + table[VCF::Direct][false][NCC::NTB][FMT::UShort] = Normal_Direct(); + table[VCF::Direct][false][NCC::NTB][FMT::Short] = Normal_Direct(); + table[VCF::Direct][false][NCC::NTB][FMT::Float] = Normal_Direct(); // Same as above, since there are no indices table[VCF::Direct][true][NCC::N][FMT::UByte] = Normal_Direct(); @@ -152,57 +152,57 @@ constexpr Types InitializeTable() table[VCF::Direct][true][NCC::N][FMT::UShort] = Normal_Direct(); table[VCF::Direct][true][NCC::N][FMT::Short] = Normal_Direct(); table[VCF::Direct][true][NCC::N][FMT::Float] = Normal_Direct(); - table[VCF::Direct][true][NCC::NBT][FMT::UByte] = Normal_Direct(); - table[VCF::Direct][true][NCC::NBT][FMT::Byte] = Normal_Direct(); - table[VCF::Direct][true][NCC::NBT][FMT::UShort] = Normal_Direct(); - table[VCF::Direct][true][NCC::NBT][FMT::Short] = Normal_Direct(); - table[VCF::Direct][true][NCC::NBT][FMT::Float] = Normal_Direct(); + table[VCF::Direct][true][NCC::NTB][FMT::UByte] = Normal_Direct(); + table[VCF::Direct][true][NCC::NTB][FMT::Byte] = Normal_Direct(); + table[VCF::Direct][true][NCC::NTB][FMT::UShort] = Normal_Direct(); + table[VCF::Direct][true][NCC::NTB][FMT::Short] = Normal_Direct(); + table[VCF::Direct][true][NCC::NTB][FMT::Float] = Normal_Direct(); table[VCF::Index8][false][NCC::N][FMT::UByte] = Normal_Index(); table[VCF::Index8][false][NCC::N][FMT::Byte] = Normal_Index(); table[VCF::Index8][false][NCC::N][FMT::UShort] = Normal_Index(); table[VCF::Index8][false][NCC::N][FMT::Short] = Normal_Index(); table[VCF::Index8][false][NCC::N][FMT::Float] = Normal_Index(); - table[VCF::Index8][false][NCC::NBT][FMT::UByte] = Normal_Index(); - table[VCF::Index8][false][NCC::NBT][FMT::Byte] = Normal_Index(); - table[VCF::Index8][false][NCC::NBT][FMT::UShort] = Normal_Index(); - table[VCF::Index8][false][NCC::NBT][FMT::Short] = Normal_Index(); - table[VCF::Index8][false][NCC::NBT][FMT::Float] = Normal_Index(); + table[VCF::Index8][false][NCC::NTB][FMT::UByte] = Normal_Index(); + table[VCF::Index8][false][NCC::NTB][FMT::Byte] = Normal_Index(); + table[VCF::Index8][false][NCC::NTB][FMT::UShort] = Normal_Index(); + table[VCF::Index8][false][NCC::NTB][FMT::Short] = Normal_Index(); + table[VCF::Index8][false][NCC::NTB][FMT::Float] = Normal_Index(); - // Same for NormalComponentCount::N; differs for NBT + // Same for NormalComponentCount::N; differs for NTB table[VCF::Index8][true][NCC::N][FMT::UByte] = Normal_Index(); table[VCF::Index8][true][NCC::N][FMT::Byte] = Normal_Index(); table[VCF::Index8][true][NCC::N][FMT::UShort] = Normal_Index(); table[VCF::Index8][true][NCC::N][FMT::Short] = Normal_Index(); table[VCF::Index8][true][NCC::N][FMT::Float] = Normal_Index(); - table[VCF::Index8][true][NCC::NBT][FMT::UByte] = Normal_Index_Indices3(); - table[VCF::Index8][true][NCC::NBT][FMT::Byte] = Normal_Index_Indices3(); - table[VCF::Index8][true][NCC::NBT][FMT::UShort] = Normal_Index_Indices3(); - table[VCF::Index8][true][NCC::NBT][FMT::Short] = Normal_Index_Indices3(); - table[VCF::Index8][true][NCC::NBT][FMT::Float] = Normal_Index_Indices3(); + table[VCF::Index8][true][NCC::NTB][FMT::UByte] = Normal_Index_Indices3(); + table[VCF::Index8][true][NCC::NTB][FMT::Byte] = Normal_Index_Indices3(); + table[VCF::Index8][true][NCC::NTB][FMT::UShort] = Normal_Index_Indices3(); + table[VCF::Index8][true][NCC::NTB][FMT::Short] = Normal_Index_Indices3(); + table[VCF::Index8][true][NCC::NTB][FMT::Float] = Normal_Index_Indices3(); table[VCF::Index16][false][NCC::N][FMT::UByte] = Normal_Index(); table[VCF::Index16][false][NCC::N][FMT::Byte] = Normal_Index(); table[VCF::Index16][false][NCC::N][FMT::UShort] = Normal_Index(); table[VCF::Index16][false][NCC::N][FMT::Short] = Normal_Index(); table[VCF::Index16][false][NCC::N][FMT::Float] = Normal_Index(); - table[VCF::Index16][false][NCC::NBT][FMT::UByte] = Normal_Index(); - table[VCF::Index16][false][NCC::NBT][FMT::Byte] = Normal_Index(); - table[VCF::Index16][false][NCC::NBT][FMT::UShort] = Normal_Index(); - table[VCF::Index16][false][NCC::NBT][FMT::Short] = Normal_Index(); - table[VCF::Index16][false][NCC::NBT][FMT::Float] = Normal_Index(); + table[VCF::Index16][false][NCC::NTB][FMT::UByte] = Normal_Index(); + table[VCF::Index16][false][NCC::NTB][FMT::Byte] = Normal_Index(); + table[VCF::Index16][false][NCC::NTB][FMT::UShort] = Normal_Index(); + table[VCF::Index16][false][NCC::NTB][FMT::Short] = Normal_Index(); + table[VCF::Index16][false][NCC::NTB][FMT::Float] = Normal_Index(); - // Same for NormalComponentCount::N; differs for NBT + // Same for NormalComponentCount::N; differs for NTB table[VCF::Index16][true][NCC::N][FMT::UByte] = Normal_Index(); table[VCF::Index16][true][NCC::N][FMT::Byte] = Normal_Index(); table[VCF::Index16][true][NCC::N][FMT::UShort] = Normal_Index(); table[VCF::Index16][true][NCC::N][FMT::Short] = Normal_Index(); table[VCF::Index16][true][NCC::N][FMT::Float] = Normal_Index(); - table[VCF::Index16][true][NCC::NBT][FMT::UByte] = Normal_Index_Indices3(); - table[VCF::Index16][true][NCC::NBT][FMT::Byte] = Normal_Index_Indices3(); - table[VCF::Index16][true][NCC::NBT][FMT::UShort] = Normal_Index_Indices3(); - table[VCF::Index16][true][NCC::NBT][FMT::Short] = Normal_Index_Indices3(); - table[VCF::Index16][true][NCC::NBT][FMT::Float] = Normal_Index_Indices3(); + table[VCF::Index16][true][NCC::NTB][FMT::UByte] = Normal_Index_Indices3(); + table[VCF::Index16][true][NCC::NTB][FMT::Byte] = Normal_Index_Indices3(); + table[VCF::Index16][true][NCC::NTB][FMT::UShort] = Normal_Index_Indices3(); + table[VCF::Index16][true][NCC::NTB][FMT::Short] = Normal_Index_Indices3(); + table[VCF::Index16][true][NCC::NTB][FMT::Float] = Normal_Index_Indices3(); return table; } -- cgit v1.2.3