Refactor CC_NEW/CC_DELETE (#10810)

* replace CC_NEW/CC_DELETE with ccnew/delete
This commit is contained in:
minggo
2022-04-21 16:39:34 +08:00
committed by GitHub
parent 15affc6031
commit 444bfe31c4
245 changed files with 958 additions and 968 deletions
@@ -50,7 +50,7 @@ CCWGPUDescriptorSetLayout::CCWGPUDescriptorSetLayout() : wrapper<DescriptorSetLa
}
void CCWGPUDescriptorSetLayout::doInit(const DescriptorSetLayoutInfo &info) {
_gpuLayoutEntryObj = CC_NEW(CCWGPUBindGroupLayoutObject);
_gpuLayoutEntryObj = ccnew CCWGPUBindGroupLayoutObject;
for (size_t i = 0; i < _bindings.size(); i++) {
if (_bindings[i].descriptorType == DescriptorType::UNKNOWN)
continue;
@@ -304,7 +304,7 @@ void *CCWGPUDescriptorSetLayout::defaultBindGroupLayout() {
}
void CCWGPUDescriptorSetLayout::doDestroy() {
CC_DELETE(_gpuLayoutEntryObj);
delete _gpuLayoutEntryObj;
}
} // namespace gfx