DHART
|
An object that holds a pointer to unmanaged memory or some other resource that must be freed. More...
Public Member Functions | |
void | UpdatePressure (int new_pressure) |
Update the pressure of this object. | |
Public Attributes | |
int | pressure |
the size of the object pointed to in unmanaged memory in bytes. Used to exert pressure on the GC. More... | |
Properties | |
override bool | IsInvalid [get] |
There is no way to invalidate this class without destroying it, so will always return false. | |
An object that holds a pointer to unmanaged memory or some other resource that must be freed.
An implementation of Safehandle, able to report it'ssize to the garbage collector to improve performance.
int DHARTAPI.NativeUtils.NativeObject.pressure |
the size of the object pointed to in unmanaged memory in bytes. Used to exert pressure on the GC.
While not mandatory, accurately setting this will improve the performance of the garbage collector.
Referenced by DHARTAPI.RayTracing.EmbreeBVH.AddMesh(), and DHARTAPI.RayTracing.EmbreeBVH.EmbreeBVH().