summaryrefslogtreecommitdiff
path: root/src/mesh.h
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-08-10 00:20:23 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-08-10 00:20:23 -0400
commitea5cc8e4e0e9bd1d1a1e5e7140c0022a8bd2a59d (patch)
tree9f56dc3201743d33f4ca2f0d5a9446a3e4597fa9 /src/mesh.h
parent0f0028484c3b8168d54c4c8b0f490cc573a6190e (diff)
downloadchroma-ea5cc8e4e0e9bd1d1a1e5e7140c0022a8bd2a59d.tar.gz
chroma-ea5cc8e4e0e9bd1d1a1e5e7140c0022a8bd2a59d.tar.bz2
chroma-ea5cc8e4e0e9bd1d1a1e5e7140c0022a8bd2a59d.zip
add the ability to cache a geometry along with its bounding volume hierarchy. cached files are stored in $HOME/.chroma. fixed the timeit() decorator so that the decorated function is still able to pass back a return value.
Diffstat (limited to 'src/mesh.h')
-rw-r--r--src/mesh.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesh.h b/src/mesh.h
index 7c148af..b4714c4 100644
--- a/src/mesh.h
+++ b/src/mesh.h
@@ -16,10 +16,9 @@ __device__ unsigned int g_first_node;
texture<float4, 1, cudaReadModeElementType> upper_bounds;
texture<float4, 1, cudaReadModeElementType> lower_bounds;
-/* map to child nodes/triangles and the number of child nodes/triangles */
+/* map to child node/triangle indices */
texture<unsigned int, 1, cudaReadModeElementType> node_map;
texture<unsigned int, 1, cudaReadModeElementType> node_map_end;
-//texture<unsigned int, 1, cudaReadModeElementType> node_length;
__device__ float3 make_float3(const float4 &a)
{