MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / DeferredRelease_

Function DeferredRelease_

SampleFramework12/v1.00/Graphics/DX12.cpp:255–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void DeferredRelease_(IUnknown* resource)
256{
257 if(resource == nullptr)
258 return;
259
260 if(ShuttingDown || Device == nullptr)
261 {
262 // Free-for-all!
263 resource->Release();
264 return;
265 }
266
267 DeferredReleases[CurrFrameIdx].Add(resource);
268}
269
270} // namespace SampleFramework12
271

Callers 1

DeferredReleaseFunction · 0.85

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected