~GpuData()
 {
     device->DeleteBuffer(bvh);
     device->DeleteBuffer(vertices);
     device->DeleteBuffer(stack);
     executable->DeleteFunction(isect_func);
     executable->DeleteFunction(occlude_func);
     device->DeleteExecutable(executable);
 }
Exemplo n.º 2
0
		~GpuData()
		{
			device->DeleteBuffer(bvh);
			device->DeleteBuffer(vertices);
			device->DeleteBuffer(faces);
			device->DeleteBuffer(shapes);
			device->DeleteBuffer(raycnt);
			executable->DeleteFunction(isect_func);
			executable->DeleteFunction(occlude_func);
			executable->DeleteFunction(isect_indirect_func);
			executable->DeleteFunction(occlude_indirect_func);
			device->DeleteExecutable(executable);
		}