summaryrefslogtreecommitdiff
path: root/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp
diff options
context:
space:
mode:
authorDr. Dystopia <jonis9898@hotmail.com>2024-07-28 22:28:58 +0200
committerDr. Dystopia <jonis9898@hotmail.com>2024-08-15 07:14:43 +0200
commit309df9ed5bbfefc68fb0cf6285b41324961aebbc (patch)
treeebf2e7da5a5390220ad46660d6d59d2d0c025e67 /Source/UnitTests/VideoCommon/VertexLoaderTest.cpp
parent5af0ae25e6ebeaec187950f579f722637546740f (diff)
Replace boolean constants with boolean literals
Diffstat (limited to 'Source/UnitTests/VideoCommon/VertexLoaderTest.cpp')
-rw-r--r--Source/UnitTests/VideoCommon/VertexLoaderTest.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp
index 853d690142..92a9888ba2 100644
--- a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp
+++ b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp
@@ -316,15 +316,15 @@ TEST_P(VertexLoaderSpeedTest, TexCoordSingleElement)
TEST_F(VertexLoaderTest, LargeFloatVertexSpeed)
{
// Enables most attributes in floating point indexed mode to test speed.
- m_vtx_desc.low.PosMatIdx = 1;
- m_vtx_desc.low.Tex0MatIdx = 1;
- m_vtx_desc.low.Tex1MatIdx = 1;
- m_vtx_desc.low.Tex2MatIdx = 1;
- m_vtx_desc.low.Tex3MatIdx = 1;
- m_vtx_desc.low.Tex4MatIdx = 1;
- m_vtx_desc.low.Tex5MatIdx = 1;
- m_vtx_desc.low.Tex6MatIdx = 1;
- m_vtx_desc.low.Tex7MatIdx = 1;
+ m_vtx_desc.low.PosMatIdx = true;
+ m_vtx_desc.low.Tex0MatIdx = true;
+ m_vtx_desc.low.Tex1MatIdx = true;
+ m_vtx_desc.low.Tex2MatIdx = true;
+ m_vtx_desc.low.Tex3MatIdx = true;
+ m_vtx_desc.low.Tex4MatIdx = true;
+ m_vtx_desc.low.Tex5MatIdx = true;
+ m_vtx_desc.low.Tex6MatIdx = true;
+ m_vtx_desc.low.Tex7MatIdx = true;
m_vtx_desc.low.Position = VertexComponentFormat::Index16;
m_vtx_desc.low.Normal = VertexComponentFormat::Index16;
m_vtx_desc.low.Color0 = VertexComponentFormat::Index16;
@@ -379,15 +379,15 @@ TEST_F(VertexLoaderTest, LargeFloatVertexSpeed)
TEST_F(VertexLoaderTest, DirectAllComponents)
{
- m_vtx_desc.low.PosMatIdx = 1;
- m_vtx_desc.low.Tex0MatIdx = 1;
- m_vtx_desc.low.Tex1MatIdx = 1;
- m_vtx_desc.low.Tex2MatIdx = 1;
- m_vtx_desc.low.Tex3MatIdx = 1;
- m_vtx_desc.low.Tex4MatIdx = 1;
- m_vtx_desc.low.Tex5MatIdx = 1;
- m_vtx_desc.low.Tex6MatIdx = 1;
- m_vtx_desc.low.Tex7MatIdx = 1;
+ m_vtx_desc.low.PosMatIdx = true;
+ m_vtx_desc.low.Tex0MatIdx = true;
+ m_vtx_desc.low.Tex1MatIdx = true;
+ m_vtx_desc.low.Tex2MatIdx = true;
+ m_vtx_desc.low.Tex3MatIdx = true;
+ m_vtx_desc.low.Tex4MatIdx = true;
+ m_vtx_desc.low.Tex5MatIdx = true;
+ m_vtx_desc.low.Tex6MatIdx = true;
+ m_vtx_desc.low.Tex7MatIdx = true;
m_vtx_desc.low.Position = VertexComponentFormat::Direct;
m_vtx_desc.low.Normal = VertexComponentFormat::Direct;
m_vtx_desc.low.Color0 = VertexComponentFormat::Direct;