Here is a summary of all the types in OWL, and their create / release / destroy functions.
| Type |
Create |
Release |
Destroy |
OWLContext |
owlContextCreate |
N/A |
owlContextDestroy |
OWLBuffer |
owlDeviceBufferCreate, owlHostPinnedBufferCreate, owlManagedMemoryBufferCreate, owlGraphicsBufferCreate |
owlBufferRelease |
owlBufferDestroy |
OWLTexture |
owlTexture2DCreate |
*1 |
owlTexture2DDestroy |
OWLGeom |
owlGeomCreate |
owlGeomRelease |
N/A |
OWLGeomType |
owlGeomTypeCreate |
Missing |
N/A |
OWLVariable |
*2 |
owlVariableRelease |
N/A |
OWLModule |
owlModuleCreate |
owlModuleRelease |
N/A |
OWLGroup |
owlUserGeomGroupCreate, owlTrianglesGeomGroupCreate, owlInstanceGroupCreate |
owlGroupRelease |
N/A |
OWLRayGen |
owlRayGenCreate |
owlRayGenRelease |
N/A |
OWLMissProg |
owlMissProgCreate |
Missing |
N/A |
OWLParams, OWLLaunchParams, OWLGlobals |
owlParamsCreate |
Missing |
N/A |
owlGeomTypeRelease, owlMissProgRelease, and owlParamsRelease are missing.
*1: OWLBuffer has both a release and a destroy, but OWLTexture which is conceptually similar only has a destroy. This seems inconsistent?
*2: Probably created internally and returned through owlGeomGetVariable, owlRayGenGetVariable, owlMissProgGetVariable, and owlParamsGetVariable.
Here is a summary of all the types in OWL, and their create / release / destroy functions.
OWLContextowlContextCreateowlContextDestroyOWLBufferowlDeviceBufferCreate,owlHostPinnedBufferCreate,owlManagedMemoryBufferCreate,owlGraphicsBufferCreateowlBufferReleaseowlBufferDestroyOWLTextureowlTexture2DCreateowlTexture2DDestroyOWLGeomowlGeomCreateowlGeomReleaseOWLGeomTypeowlGeomTypeCreateOWLVariableowlVariableReleaseOWLModuleowlModuleCreateowlModuleReleaseOWLGroupowlUserGeomGroupCreate,owlTrianglesGeomGroupCreate,owlInstanceGroupCreateowlGroupReleaseOWLRayGenowlRayGenCreateowlRayGenReleaseOWLMissProgowlMissProgCreateOWLParams,OWLLaunchParams,OWLGlobalsowlParamsCreateowlGeomTypeRelease,owlMissProgRelease, andowlParamsReleaseare missing.*1:
OWLBufferhas both a release and a destroy, butOWLTexturewhich is conceptually similar only has a destroy. This seems inconsistent?*2: Probably created internally and returned through
owlGeomGetVariable,owlRayGenGetVariable,owlMissProgGetVariable, andowlParamsGetVariable.