|
|
@ -137,6 +137,7 @@ typedef struct _cl_image_desc {
|
|
|
|
size_t image_slice_pitch;
|
|
|
|
size_t image_slice_pitch;
|
|
|
|
cl_uint num_mip_levels;
|
|
|
|
cl_uint num_mip_levels;
|
|
|
|
cl_uint num_samples;
|
|
|
|
cl_uint num_samples;
|
|
|
|
|
|
|
|
#ifdef CL_VERSION_2_0
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#ifdef __GNUC__
|
|
|
|
__extension__ /* Prevents warnings about anonymous union in -pedantic builds */
|
|
|
|
__extension__ /* Prevents warnings about anonymous union in -pedantic builds */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -145,12 +146,15 @@ typedef struct _cl_image_desc {
|
|
|
|
#pragma warning( disable : 4201 ) /* Prevents warning about nameless struct/union in /W4 /Za builds */
|
|
|
|
#pragma warning( disable : 4201 ) /* Prevents warning about nameless struct/union in /W4 /Za builds */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
union {
|
|
|
|
union {
|
|
|
|
|
|
|
|
#endif
|
|
|
|
cl_mem buffer;
|
|
|
|
cl_mem buffer;
|
|
|
|
|
|
|
|
#ifdef CL_VERSION_2_0
|
|
|
|
cl_mem mem_object;
|
|
|
|
cl_mem mem_object;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning( pop )
|
|
|
|
#pragma warning( pop )
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
} cl_image_desc;
|
|
|
|
} cl_image_desc;
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|