mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user