Home -> IRenderPassNode -> Delete
Description
The Delete method schedules this object for deletion. The IRenderer object which created this object performs deferred destruction, and will prevent the object being destroyed until any current drawing process completes. This relieves the application from the burden of tracking which resources are still in use, and determining when they can be safely destroyed.
Warning
The renderer does not perform any checks to ensure that an object is not still attached to the render tree when it is scheduled for deletion. It is the responsibility of the application to ensure that all resources which are being deleted will not attempt to be used by subsequent frames.
Warning
Under normal circumstances, this method should never need to be called directly. The unique_ptr which is returned when this object is constructed will call this method itself when the pointer is released. You must not call this method if the object lifetime is still being managed by the unique_ptr object, otherwise the method will be called more than once. If this occurs the behaviour is undefined, and it may result in runtime errors.
Usage
void Delete();