MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnSet

Method OnSet

Source/Engine/Graphics/GPUDevice.cpp:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void GPUResourcePropertyBase::OnSet(GPUResource* resource)
42{
43 auto e = _resource;
44 if (e != resource)
45 {
46 if (e)
47 e->Releasing.Unbind<GPUResourcePropertyBase, &GPUResourcePropertyBase::OnReleased>(this);
48 _resource = e = resource;
49 if (e)
50 e->Releasing.Bind<GPUResourcePropertyBase, &GPUResourcePropertyBase::OnReleased>(this);
51 }
52}
53
54void GPUResourcePropertyBase::OnReleased()
55{

Callers 2

GPUResourcePropertyMethod · 0.45
GPUResourcePropertyClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected