Clang-Tidy adaptations (#3379)

* gfx: CommandBuffer.draw accept DrawInfo

* clang-tidy config

* tidy adapt

* enable function name check

* better workflow
This commit is contained in:
Yun Hsiao Wu
2021-04-12 09:41:28 +08:00
committed by GitHub
parent 919b10ec72
commit e1c240f2d0
138 changed files with 3866 additions and 3836 deletions
@@ -34,21 +34,19 @@
namespace cc {
namespace gfx {
CCVKFramebuffer::CCVKFramebuffer()
: Framebuffer() {
}
CCVKFramebuffer::CCVKFramebuffer() = default;
CCVKFramebuffer::~CCVKFramebuffer() {
destroy();
}
void CCVKFramebuffer::doInit(const FramebufferInfo &info) {
_gpuFBO = CC_NEW(CCVKGPUFramebuffer);
void CCVKFramebuffer::doInit(const FramebufferInfo & /*info*/) {
_gpuFBO = CC_NEW(CCVKGPUFramebuffer);
_gpuFBO->gpuRenderPass = static_cast<CCVKRenderPass *>(_renderPass)->gpuRenderPass();
_gpuFBO->gpuColorViews.resize(_colorTextures.size());
for (size_t i = 0; i < _colorTextures.size(); ++i) {
CCVKTexture *colorTex = (CCVKTexture *)_colorTextures[i];
auto *colorTex = static_cast<CCVKTexture *>(_colorTextures[i]);
if (colorTex) {
_gpuFBO->gpuColorViews[i] = colorTex->gpuTextureView();
}
@@ -58,7 +56,7 @@ void CCVKFramebuffer::doInit(const FramebufferInfo &info) {
_gpuFBO->gpuDepthStencilView = static_cast<CCVKTexture *>(_depthStencilTexture)->gpuTextureView();
}
CCVKCmdFuncCreateFramebuffer(CCVKDevice::getInstance(), _gpuFBO);
cmdFuncCCVKCreateFramebuffer(CCVKDevice::getInstance(), _gpuFBO);
}
void CCVKFramebuffer::doDestroy() {