use IntrusivePtr to share object (#11729)

This commit is contained in:
minggo
2022-06-28 18:01:47 +08:00
committed by GitHub
parent d008270ef3
commit 8caec59711
40 changed files with 83 additions and 116 deletions
@@ -38,13 +38,11 @@ namespace gfx {
DescriptorSetValidator::DescriptorSetValidator(DescriptorSet *actor)
: Agent<DescriptorSet>(actor) {
CC_SAFE_ADD_REF(actor);
_typedID = actor->getTypedID();
}
DescriptorSetValidator::~DescriptorSetValidator() {
DeviceResourceTracker<DescriptorSet>::erase(this);
CC_SAFE_RELEASE(_actor);
}
void DescriptorSetValidator::doInit(const DescriptorSetInfo &info) {