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

@ -17,4 +17,4 @@ public:
static void Set(int index, int value);
static int Get(int index);
};
};
}; // namespace DX11

View File

@ -30,4 +30,4 @@ private:
std::array<D3D12_INPUT_ELEMENT_DESC, MAX_VERTEX_ATTRIBUTES> m_attribute_descriptions = {};
u32 m_num_attributes = 0;
};
} // namespace Vulkan
} // namespace DX12

View File

@ -22,4 +22,4 @@ public:
private:
void FillBackendInfo();
};
}
} // namespace DX12

View File

@ -21,4 +21,4 @@ public:
bool IsFlushed() const override { return true; }
};
} // namespace
} // namespace Null

View File

@ -81,4 +81,4 @@ private:
void FlushOne();
};
} // namespace
} // namespace OGL

View File

@ -43,4 +43,4 @@ private:
};
extern std::unique_ptr<SamplerCache> g_sampler_cache;
}
} // namespace OGL

View File

@ -392,4 +392,4 @@ std::unique_ptr<StreamBuffer> StreamBuffer::Create(u32 type, u32 size)
// default fallback, should work everywhere, but isn't the best way to do this job
return std::make_unique<MapAndOrphan>(type, size);
}
}
} // namespace OGL

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