2 * Copyright 1993-2013 NVIDIA Corporation. All rights reserved.
4 * Please refer to the NVIDIA end user license agreement (EULA) associated
5 * with this source code for terms and conditions that govern your use of
6 * this software. Any use, reproduction, disclosure, or distribution of
7 * this software and related documentation outside the terms of the EULA
8 * is strictly prohibited.
12 #ifndef _BINDLESSTEXTURE_CU_
13 #define _BINDLESSTEXTURE_CU_
16 #include <vector_types.h>
17 #include <driver_functions.h>
18 #include <cuda_runtime.h>
20 // CUDA utilities and system includes
21 #include <helper_cuda.h>
22 #include <vector_types.h>
24 typedef unsigned int uint;
25 typedef unsigned char uchar;
32 cudaResourceType type;
33 cudaArray_t dataArray;
34 cudaMipmappedArray_t mipmapArray;
35 cudaTextureObject_t textureObject;
39 memset(this,0,sizeof(Image));
44 inline void _checkHost(bool test, const char *condition, const char *file, int line, const char *func)
48 fprintf(stderr, "HOST error at %s:%d (%s) \"%s\" \n",
49 file, line, condition, func);
54 #define checkHost(condition) _checkHost(condition, #condition,__FILE__,__LINE__,__FUNCTION__)