Reformat repo to clang-format 7.0 rules

This commit is contained in:
Techjar
2019-05-05 23:48:12 +00:00
parent d347867f2e
commit ff972e3673
208 changed files with 311 additions and 309 deletions

View File

@ -453,4 +453,4 @@ void PerspectiveDivide(OutputVertexData* vertex)
screen.y = projected.y * wInverse * xfmem.viewport.ht + xfmem.viewport.yOrig - 342;
screen.z = projected.z * wInverse * xfmem.viewport.zRange + xfmem.viewport.farZ;
}
}
} // namespace Clipper

View File

@ -18,4 +18,4 @@ bool CullTest(const OutputVertexData* v0, const OutputVertexData* v1, const Outp
bool& backface);
void PerspectiveDivide(OutputVertexData* vertex);
}
} // namespace Clipper

View File

@ -30,4 +30,4 @@ void CopyRegion(const T* const source, const MathUtil::Rectangle<int>& srcrect,
}
}
}
}
} // namespace SW

View File

@ -219,4 +219,4 @@ void OnObjectEnd()
stats.thisFrame.numDrawnObjects++;
}
}
} // namespace DebugUtil

View File

@ -23,4 +23,4 @@ void DrawObjectBuffer(s16 x, s16 y, const u8* color, int bufferBase, int subBuff
void DrawTempBuffer(const u8* color, int buffer);
void CopyTempBuffer(s16 x, s16 y, int bufferBase, int subBuffer, const char* name);
}
} // namespace DebugUtil

View File

@ -33,4 +33,4 @@ void ClearEfb()
}
}
}
}
} // namespace EfbCopy

View File

@ -710,4 +710,4 @@ void IncPerfCounterQuadCount(PerfQueryType type)
quad[type] = 0;
++perf_values[type];
}
}
} // namespace EfbInterface

View File

@ -467,4 +467,4 @@ void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v
}
}
}
}
} // namespace Rasterizer

View File

@ -40,4 +40,4 @@ struct RasterBlock
s32 TextureLod[16];
bool TextureLinear[16];
};
}
} // namespace Rasterizer

View File

@ -1468,7 +1468,7 @@ void EncodeEfbCopy(u8* dst, const EFBCopyParams& params, u32 native_width, u32 b
}
}
}
}
} // namespace
void Encode(AbstractStagingTexture* dst, const EFBCopyParams& params, u32 native_width,
u32 bytes_per_row, u32 num_blocks_y, u32 memory_stride,
@ -1493,4 +1493,4 @@ void Encode(AbstractStagingTexture* dst, const EFBCopyParams& params, u32 native
bytes_per_row, num_blocks_y, memory_stride, src_rect, scale_by_half);
}
}
}
} // namespace TextureEncoder

View File

@ -247,4 +247,4 @@ void SampleMip(s32 s, s32 t, s32 mip, bool linear, u8 texmap, u8* sample)
imageWidth);
}
}
}
} // namespace TextureSampler

View File

@ -19,4 +19,4 @@ enum
BLU_SMP,
ALP_SMP
};
}
} // namespace TextureSampler

View File

@ -455,4 +455,4 @@ void TransformTexCoord(const InputVertexData* src, OutputVertexData* dst, bool s
dst->texCoords[coordNum][1] *= (bpmem.texcoords[coordNum].t.scale_minus_1 + 1);
}
}
}
} // namespace TransformUnit

View File

@ -13,4 +13,4 @@ void TransformPosition(const InputVertexData* src, OutputVertexData* dst);
void TransformNormal(const InputVertexData* src, bool nbt, OutputVertexData* dst);
void TransformColor(const InputVertexData* src, OutputVertexData* dst);
void TransformTexCoord(const InputVertexData* src, OutputVertexData* dst, bool specialCase);
}
} // namespace TransformUnit