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 2716 - (view) (download)

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

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