23 #ifndef HIP_INCLUDE_HIP_HCC_DETAIL_DRIVER_TYPES_H 24 #define HIP_INCLUDE_HIP_HCC_DETAIL_DRIVER_TYPES_H 30 typedef void* hipDeviceptr_t;
31 typedef enum hipChannelFormatKind {
32 hipChannelFormatKindSigned = 0,
33 hipChannelFormatKindUnsigned = 1,
34 hipChannelFormatKindFloat = 2,
35 hipChannelFormatKindNone = 3
36 }hipChannelFormatKind;
43 enum hipChannelFormatKind f;
46 #define HIP_TRSF_NORMALIZED_COORDINATES 0x01 47 #define HIP_TRSF_READ_AS_INTEGER 0x00 48 #define HIP_TRSA_OVERRIDE_FORMAT 0x01 50 typedef enum hipArray_Format {
51 HIP_AD_FORMAT_UNSIGNED_INT8 = 0x01,
52 HIP_AD_FORMAT_UNSIGNED_INT16 = 0x02,
53 HIP_AD_FORMAT_UNSIGNED_INT32 = 0x03,
54 HIP_AD_FORMAT_SIGNED_INT8 = 0x08,
55 HIP_AD_FORMAT_SIGNED_INT16 = 0x09,
56 HIP_AD_FORMAT_SIGNED_INT32 = 0x0a,
57 HIP_AD_FORMAT_HALF = 0x10,
58 HIP_AD_FORMAT_FLOAT = 0x20
62 enum hipArray_Format format;
63 unsigned int numChannels;
79 unsigned int textureType;
85 hipMemoryType srcMemoryType;
87 hipDeviceptr_t srcDevice;
92 hipMemoryType dstMemoryType;
94 hipDeviceptr_t dstDevice;
122 typedef enum hipResourceType {
123 hipResourceTypeArray = 0x00,
124 hipResourceTypeMipmappedArray = 0x01,
125 hipResourceTypeLinear = 0x02,
126 hipResourceTypePitch2D = 0x03
132 typedef enum hipResourceViewFormat {
133 hipResViewFormatNone = 0x00,
134 hipResViewFormatUnsignedChar1 = 0x01,
135 hipResViewFormatUnsignedChar2 = 0x02,
136 hipResViewFormatUnsignedChar4 = 0x03,
137 hipResViewFormatSignedChar1 = 0x04,
138 hipResViewFormatSignedChar2 = 0x05,
139 hipResViewFormatSignedChar4 = 0x06,
140 hipResViewFormatUnsignedShort1 = 0x07,
141 hipResViewFormatUnsignedShort2 = 0x08,
142 hipResViewFormatUnsignedShort4 = 0x09,
143 hipResViewFormatSignedShort1 = 0x0a,
144 hipResViewFormatSignedShort2 = 0x0b,
145 hipResViewFormatSignedShort4 = 0x0c,
146 hipResViewFormatUnsignedInt1 = 0x0d,
147 hipResViewFormatUnsignedInt2 = 0x0e,
148 hipResViewFormatUnsignedInt4 = 0x0f,
149 hipResViewFormatSignedInt1 = 0x10,
150 hipResViewFormatSignedInt2 = 0x11,
151 hipResViewFormatSignedInt4 = 0x12,
152 hipResViewFormatHalf1 = 0x13,
153 hipResViewFormatHalf2 = 0x14,
154 hipResViewFormatHalf4 = 0x15,
155 hipResViewFormatFloat1 = 0x16,
156 hipResViewFormatFloat2 = 0x17,
157 hipResViewFormatFloat4 = 0x18,
158 hipResViewFormatUnsignedBlockCompressed1 = 0x19,
159 hipResViewFormatUnsignedBlockCompressed2 = 0x1a,
160 hipResViewFormatUnsignedBlockCompressed3 = 0x1b,
161 hipResViewFormatUnsignedBlockCompressed4 = 0x1c,
162 hipResViewFormatSignedBlockCompressed4 = 0x1d,
163 hipResViewFormatUnsignedBlockCompressed5 = 0x1e,
164 hipResViewFormatSignedBlockCompressed5 = 0x1f,
165 hipResViewFormatUnsignedBlockCompressed6H = 0x20,
166 hipResViewFormatSignedBlockCompressed6H = 0x21,
167 hipResViewFormatUnsignedBlockCompressed7 = 0x22
168 }hipResourceViewFormat;
174 enum hipResourceType resType;
181 hipMipmappedArray_t mipmap;
202 enum hipResourceViewFormat format;
206 unsigned int firstMipmapLevel;
207 unsigned int lastMipmapLevel;
208 unsigned int firstLayer;
209 unsigned int lastLayer;
216 typedef enum hipMemcpyKind {
217 hipMemcpyHostToHost = 0,
218 hipMemcpyHostToDevice = 1,
219 hipMemcpyDeviceToHost = 2,
220 hipMemcpyDeviceToDevice = 3,
255 enum hipMemcpyKind kind;
260 hipDeviceptr_t dstDevice;
264 hipMemoryType dstMemoryType;
271 hipDeviceptr_t srcDevice;
275 hipMemoryType srcMemoryType;
282 static inline struct hipPitchedPtr make_hipPitchedPtr(void* d,
size_t p,
size_t xsz,
294 static inline struct hipPos make_hipPos(size_t x, size_t y, size_t z) {
304 static inline struct hipExtent make_hipExtent(size_t w, size_t h, size_t d) {
Definition: driver_types.h:239
Definition: driver_types.h:232
Definition: driver_types.h:173
Definition: driver_types.h:107
Definition: driver_types.h:70
Definition: driver_types.h:245
Definition: driver_types.h:61
Definition: driver_types.h:225
Definition: driver_types.h:82
Definition: driver_types.h:201