 									   const unsigned int levelDepth,
 									   const CSVOConstants& svoConstants)
 {
-	__shared__ unsigned int sLocationHash[GI_THREAD_PER_BLOCK_PRIME];
-	__shared__ CSVONode sNode[GI_THREAD_PER_BLOCK_PRIME];
-
 	unsigned int globalId = threadIdx.x + blockIdx.x * GI_THREAD_PER_BLOCK;
 	unsigned int pageId = globalId / GI_PAGE_SIZE;
 	unsigned int pageLocalId = globalId % GI_PAGE_SIZE;

	if(gVoxelData[pageId].dIsSegmentOccupied[pageLocalSegmentId] == SegmentOccupation::EMPTY) return;
	if(gVoxelData[pageId].dIsSegmentOccupied[pageLocalSegmentId] == SegmentOccupation::MARKED_FOR_CLEAR) assert(false);

	// Init Hashtable
	sLocationHash[threadIdx.x] = 0xFFFFFFFF;
	sNode[threadIdx.x] = 0;
	if(threadIdx.x < (GI_THREAD_PER_BLOCK_PRIME - GI_THREAD_PER_BLOCK))
	{
		sLocationHash[threadIdx.x + GI_THREAD_PER_BLOCK] = 0xFFFFFFFF;
		sNode[threadIdx.x + GI_THREAD_PER_BLOCK] = 0;
	}
	__syncthreads();

	// Fetch voxel
	CVoxelNormPos voxelNormPos = gVoxelData[pageId].dGridVoxNormPos[pageLocalId];
	HashStoreLevel(sNode,
					sLocationHash,
					voxelNormPos,
					levelDepth,
					cascadeNo,
					svoConstants);

	// Wait everything to be written
	__syncthreads();

	StoreSparse(gSVOSparse, gLevelLookupTable,
				sLocationHash, sNode,
				tSVODense, threadIdx.x,
				cascadeNo, levelDepth,
				svoConstants);
	if(threadIdx.x < (GI_THREAD_PER_BLOCK_PRIME - GI_THREAD_PER_BLOCK))
	{
		StoreSparse(gSVOSparse, gLevelLookupTable,
					sLocationHash, sNode,
					tSVODense, threadIdx.x + GI_THREAD_PER_BLOCK,
					cascadeNo, levelDepth,
					svoConstants);
	}
}

__global__ void SVOReconstructAllocateNext(CSVONode* gSVO,

	atomicOr(gSVOSparse + nodeIndex, sNode[sharedLoc]);
}

__global__ void SVOReconstructChildSet(CSVONode* gSVODense,
									   const CVoxelPage* gVoxelData,

									   const unsigned int cascadeNo,
									   const CSVOConstants& svoConstants)
{
	unsigned int globalId = threadIdx.x + blockIdx.x * GI_THREAD_PER_BLOCK;
	unsigned int pageId = globalId / GI_PAGE_SIZE;
	unsigned int pageLocalId = globalId % GI_PAGE_SIZE;
