mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
Merge pull request #13015 from tygyh/Use-boolean-literals
Replace boolean constants with boolean literals
This commit is contained in:
commit
07557e5d9c
4 changed files with 21 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue