Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/vis12-cl/src/compiler/cl-target/fragments/c-shadow-types.in
ViewVC logotype

Annotation of /branches/vis12-cl/src/compiler/cl-target/fragments/c-shadow-types.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2714 - (view) (download)

1 : jhr 2714 #if defined(DIDEROT_INT)
2 :     #else /* DIDEROT_LONGINT */
3 :     #endif
4 :    
5 :     #if defined(DIDEROT_SINGLE_PRECISION)
6 :     typedef cl_float Shadow_real_t;
7 :     typedef cl_float2 Shadow_vec2_t;
8 :     typedef cl_float3 Shadow_vec3_t;
9 :     typedef cl_float4 Shadow_vec4_t;
10 :     #else
11 :     typedef cl_double Shadow_real_t;
12 :     typedef cl_double2 Shadow_vec2_t;
13 :     typedef cl_double3 Shadow_vec3_t;
14 :     typedef cl_double4 Shadow_vec4_t;
15 :     #endif
16 :    
17 :     typedef Shadow_vec2_t Shadow_Mat2x2_t[2];
18 :     typedef Shadow_vec3_t Shadow_Mat3x3_t[3];
19 :     typedef Shadow_vec4_t Shadow_Mat4x4_t[4];
20 :    
21 :     // Shadow of GPU-side image types. Note that these should have the same organization as
22 :     // the Diderot_image[123]D_t types defined in cl-types.h
23 :    
24 :     //! shadow wrapper for 1D image meta-info
25 :     typedef struct {
26 :     cl_int size[1];
27 :     Shadow_real_t s; //!< scaling from world-space to image-space
28 :     Shadow_real_t t; //!< translation from world-space to image-space
29 :     } Shadow_image1D_t;
30 :    
31 :     //! shadow wrapper for 2D image meta-info
32 :     typedef struct {
33 :     cl_int size[2]; //!< sizes (fast to slow)
34 :     Shadow_Mat2x2_t w2i; //!< affine tranform from world space to index space. This is the
35 :     //! inverse of the index to world-space transform that is loaded from
36 :     //! the Nrrd file.
37 :     Shadow_vec2_t tVec; //!< translation part of world to index transform
38 :     Shadow_Mat2x2_t w2iT; //!< transpose w3i
39 :     } Shadow_image2D_t;
40 :    
41 :     //! shadow wrapper for 3D image meta-info
42 :     typedef struct {
43 :     cl_int size[3]; //!< sizes (fast to slow)
44 :     Shadow_Mat3x3_t w2i; //!< affine tranform from world space to index space. This is the
45 :     //! inverse of the index to world-space transform that is loaded from
46 :     //! the Nrrd file.
47 :     Shadow_vec3_t tVec; //!< translation part of world to index transform
48 :     Shadow_Mat3x3_t w2iT; //!< transpose w3i
49 :     } Shadow_image3D_t;

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0