mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
use IntrusivePtr to share object (#11729)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user