//---[ Memory ]----------------------- const char* OCCA_RFUNC occaMemoryMode(occaMemory memory) { occa::memory memory_((occa::memory_v*) occa::_typeValue(memory).data.void_); return memory_.mode().c_str(); }
void OCCA_RFUNC occaMemoryFree(occaMemory memory) { occa::memory memory_((occa::memory_v*) memory->value().data.void_); memory_.free(); delete memory; }
void* OCCA_RFUNC occaMemoryGetMappedPointer(occaMemory memory) { occa::memory memory_((occa::memory_v*) memory->value().data.void_); return memory_.getMappedPointer(); }
void* OCCA_RFUNC occaMemoryGetTextureHandle(occaMemory memory) { occa::memory memory_((occa::memory_v*) memory->value().data.void_); return memory_.getTextureHandle(); }
void* OCCA_RFUNC occaMemoryGetMemoryHandle(occaMemory memory) { occa::memory memory_((occa::memory_v*) occa::_typeValue(memory).data.void_); return memory_.getMemoryHandle(); }