Remove some format rule (#10919)

* remove some rules
* format all codes with new format rule
This commit is contained in:
minggo
2022-05-04 13:09:24 +08:00
committed by GitHub
parent e9a4bdd4dc
commit 271cc5cf23
1148 changed files with 32411 additions and 34416 deletions
@@ -41,18 +41,18 @@ CCVKFramebuffer::~CCVKFramebuffer() {
}
void CCVKFramebuffer::doInit(const FramebufferInfo & /*info*/) {
_gpuFBO = ccnew CCVKGPUFramebuffer;
_gpuFBO = ccnew CCVKGPUFramebuffer;
_gpuFBO->gpuRenderPass = static_cast<CCVKRenderPass *>(_renderPass)->gpuRenderPass();
_gpuFBO->gpuColorViews.resize(_colorTextures.size());
for (size_t i = 0; i < _colorTextures.size(); ++i) {
auto *colorTex = static_cast<CCVKTexture *>(_colorTextures[i]);
auto *colorTex = static_cast<CCVKTexture *>(_colorTextures[i]);
_gpuFBO->gpuColorViews[i] = colorTex->gpuTextureView();
CCVKDevice::getInstance()->gpuFramebufferHub()->connect(colorTex->gpuTexture(), _gpuFBO);
}
if (_depthStencilTexture) {
auto *depthTex = static_cast<CCVKTexture *>(_depthStencilTexture);
auto *depthTex = static_cast<CCVKTexture *>(_depthStencilTexture);
_gpuFBO->gpuDepthStencilView = depthTex->gpuTextureView();
CCVKDevice::getInstance()->gpuFramebufferHub()->connect(depthTex->gpuTexture(), _gpuFBO);
}