/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-5.4.3/include/hip/driver_types.h Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-5.4.3/include/hip/driver_types.h Source File#

HIP Runtime API Reference: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-5.4.3/include/hip/driver_types.h Source File
driver_types.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved.
3 
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 THE SOFTWARE.
21 */
22 
23 #ifndef HIP_INCLUDE_HIP_DRIVER_TYPES_H
24 #define HIP_INCLUDE_HIP_DRIVER_TYPES_H
25 
26 #include <hip/hip_common.h>
27 
28 #if !(defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && (defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__))
29 #include "driver_types.h"
30 #elif (defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && !(defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__))
31 
32 // The follow macro should be removed after upstream updation.
33 // It's defined here for workarround of rocThrust building failure.
34 #define HIP_INCLUDE_HIP_HCC_DETAIL_DRIVER_TYPES_H
35 #if !defined(__HIPCC_RTC__)
36 #ifndef __cplusplus
37 #include <stdbool.h>
38 #endif
39 #endif // !defined(__HIPCC_RTC__)
40 typedef void* hipDeviceptr_t;
41 typedef enum hipChannelFormatKind {
47 typedef struct hipChannelFormatDesc {
48  int x;
49  int y;
50  int z;
51  int w;
54 #define HIP_TRSA_OVERRIDE_FORMAT 0x01
55 #define HIP_TRSF_READ_AS_INTEGER 0x01
56 #define HIP_TRSF_NORMALIZED_COORDINATES 0x02
57 #define HIP_TRSF_SRGB 0x10
58 typedef enum hipArray_Format {
66  HIP_AD_FORMAT_FLOAT = 0x20
68 typedef struct HIP_ARRAY_DESCRIPTOR {
69  size_t Width;
70  size_t Height;
72  unsigned int NumChannels;
74 typedef struct HIP_ARRAY3D_DESCRIPTOR {
75  size_t Width;
76  size_t Height;
77  size_t Depth;
79  unsigned int NumChannels;
80  unsigned int Flags;
82 typedef struct hipArray {
83  void* data; // FIXME: generalize this
85  unsigned int type;
86  unsigned int width;
87  unsigned int height;
88  unsigned int depth;
90  unsigned int NumChannels;
91  bool isDrv;
92  unsigned int textureType;
93 }hipArray;
94 #if !defined(__HIPCC_RTC__)
95 typedef struct hip_Memcpy2D {
96  size_t srcXInBytes;
97  size_t srcY;
99  const void* srcHost;
102  size_t srcPitch;
103  size_t dstXInBytes;
104  size_t dstY;
106  void* dstHost;
109  size_t dstPitch;
110  size_t WidthInBytes;
111  size_t Height;
112 } hip_Memcpy2D;
113 #endif // !defined(__HIPCC_RTC__)
114 typedef struct hipArray* hipArray_t;
115 typedef hipArray_t hiparray;
116 typedef const struct hipArray* hipArray_const_t;
117 typedef struct hipMipmappedArray {
118  void* data;
119  struct hipChannelFormatDesc desc;
120  unsigned int type;
121  unsigned int width;
122  unsigned int height;
123  unsigned int depth;
124  unsigned int min_mipmap_level;
125  unsigned int max_mipmap_level;
126  unsigned int flags;
127  enum hipArray_Format format;
129 typedef struct hipMipmappedArray* hipMipmappedArray_t;
134 typedef enum hipResourceType {
140 typedef enum HIPresourcetype_enum {
145 } HIPresourcetype, hipResourcetype;
149 typedef enum HIPaddress_mode_enum {
158 typedef enum HIPfilter_mode_enum {
165 typedef struct HIP_TEXTURE_DESC_st {
166  HIPaddress_mode addressMode[3];
168  unsigned int flags;
169  unsigned int maxAnisotropy;
174  float borderColor[4];
175  int reserved[12];
180 typedef enum hipResourceViewFormat {
217 typedef enum HIPresourceViewFormat_enum
218 {
258 typedef struct hipResourceDesc {
260  union {
261  struct {
262  hipArray_t array;
263  } array;
264  struct {
265  hipMipmappedArray_t mipmap;
267  struct {
268  void* devPtr;
269  struct hipChannelFormatDesc desc;
270  size_t sizeInBytes;
272  struct {
273  void* devPtr;
274  struct hipChannelFormatDesc desc;
275  size_t width;
276  size_t height;
277  size_t pitchInBytes;
279  } res;
281 typedef struct HIP_RESOURCE_DESC_st
282 {
283  HIPresourcetype resType;
284  union {
285  struct {
286  hipArray_t hArray;
287  } array;
288  struct {
289  hipMipmappedArray_t hMipmappedArray;
290  } mipmap;
291  struct {
294  unsigned int numChannels;
295  size_t sizeInBytes;
296  } linear;
297  struct {
298  hipDeviceptr_t devPtr;
299  hipArray_Format format;
300  unsigned int numChannels;
301  size_t width;
302  size_t height;
303  size_t pitchInBytes;
304  } pitch2D;
305  struct {
306  int reserved[32];
307  } reserved;
308  } res;
309  unsigned int flags;
316  size_t width;
317  size_t height;
318  size_t depth;
319  unsigned int firstMipmapLevel;
320  unsigned int lastMipmapLevel;
321  unsigned int firstLayer;
322  unsigned int lastLayer;
323 };
327 typedef struct HIP_RESOURCE_VIEW_DESC_st
328 {
330  size_t width;
331  size_t height;
332  size_t depth;
333  unsigned int firstMipmapLevel;
334  unsigned int lastMipmapLevel;
335  unsigned int firstLayer;
336  unsigned int lastLayer;
337  unsigned int reserved[16];
343 #if !defined(__HIPCC_RTC__)
344 typedef enum hipMemcpyKind {
350  4
352 typedef struct hipPitchedPtr {
353  void* ptr;
354  size_t pitch;
355  size_t xsize;
356  size_t ysize;
358 typedef struct hipExtent {
359  size_t width; // Width in elements when referring to array memory, in bytes when referring to
360  // linear memory
361  size_t height;
362  size_t depth;
363 }hipExtent;
364 typedef struct hipPos {
365  size_t x;
366  size_t y;
367  size_t z;
368 }hipPos;
369 typedef struct hipMemcpy3DParms {
370  hipArray_t srcArray;
371  struct hipPos srcPos;
372  struct hipPitchedPtr srcPtr;
373  hipArray_t dstArray;
374  struct hipPos dstPos;
375  struct hipPitchedPtr dstPtr;
376  struct hipExtent extent;
377  enum hipMemcpyKind kind;
379 typedef struct HIP_MEMCPY3D {
380  unsigned int srcXInBytes;
381  unsigned int srcY;
382  unsigned int srcZ;
383  unsigned int srcLOD;
385  const void* srcHost;
387  hipArray_t srcArray;
388  unsigned int srcPitch;
389  unsigned int srcHeight;
390  unsigned int dstXInBytes;
391  unsigned int dstY;
392  unsigned int dstZ;
393  unsigned int dstLOD;
395  void* dstHost;
397  hipArray_t dstArray;
398  unsigned int dstPitch;
399  unsigned int dstHeight;
400  unsigned int WidthInBytes;
401  unsigned int Height;
402  unsigned int Depth;
403 } HIP_MEMCPY3D;
404 static inline struct hipPitchedPtr make_hipPitchedPtr(void* d, size_t p, size_t xsz,
405  size_t ysz) {
406  struct hipPitchedPtr s;
407  s.ptr = d;
408  s.pitch = p;
409  s.xsize = xsz;
410  s.ysize = ysz;
411  return s;
412 }
413 static inline struct hipPos make_hipPos(size_t x, size_t y, size_t z) {
414  struct hipPos p;
415  p.x = x;
416  p.y = y;
417  p.z = z;
418  return p;
419 }
420 static inline struct hipExtent make_hipExtent(size_t w, size_t h, size_t d) {
421  struct hipExtent e;
422  e.width = w;
423  e.height = h;
424  e.depth = d;
425  return e;
426 }
427 typedef enum hipFunction_attribute {
440 
441 typedef enum hipPointer_attribute {
473 
474 #endif // !defined(__HIPCC_RTC__)
475 #else
476 #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
477 #endif
478 #endif
hipChannelFormatKind
Definition: driver_types.h:41
@ hipChannelFormatKindFloat
Definition: driver_types.h:44
@ hipChannelFormatKindNone
Definition: driver_types.h:45
@ hipChannelFormatKindUnsigned
Definition: driver_types.h:43
@ hipChannelFormatKindSigned
Definition: driver_types.h:42
hipResourcetype
Definition: driver_types.h:140
@ HIP_RESOURCE_TYPE_ARRAY
Definition: driver_types.h:141
@ HIP_RESOURCE_TYPE_PITCH2D
Definition: driver_types.h:144
@ HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY
Definition: driver_types.h:142
@ HIP_RESOURCE_TYPE_LINEAR
Definition: driver_types.h:143
HIPfilter_mode
Definition: driver_types.h:158
@ HIP_TR_FILTER_MODE_POINT
Definition: driver_types.h:159
@ HIP_TR_FILTER_MODE_LINEAR
Definition: driver_types.h:160
hipMemcpyKind
Definition: driver_types.h:344
@ hipMemcpyDefault
Runtime will automatically determine copy-kind based on virtual addresses.
Definition: driver_types.h:349
@ hipMemcpyHostToHost
Host-to-Host Copy.
Definition: driver_types.h:345
@ hipMemcpyDeviceToHost
Device-to-Host Copy.
Definition: driver_types.h:347
@ hipMemcpyDeviceToDevice
Device-to-Device Copy.
Definition: driver_types.h:348
@ hipMemcpyHostToDevice
Host-to-Device Copy.
Definition: driver_types.h:346
HIPresourceViewFormat
Definition: driver_types.h:218
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC1
Definition: driver_types.h:244
@ HIP_RES_VIEW_FORMAT_UINT_1X8
Definition: driver_types.h:220
@ HIP_RES_VIEW_FORMAT_FLOAT_4X32
Definition: driver_types.h:243
@ HIP_RES_VIEW_FORMAT_UINT_1X32
Definition: driver_types.h:232
@ HIP_RES_VIEW_FORMAT_UINT_1X16
Definition: driver_types.h:226
@ HIP_RES_VIEW_FORMAT_UINT_2X16
Definition: driver_types.h:227
@ HIP_RES_VIEW_FORMAT_SINT_2X16
Definition: driver_types.h:230
@ HIP_RES_VIEW_FORMAT_SINT_2X8
Definition: driver_types.h:224
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H
Definition: driver_types.h:251
@ HIP_RES_VIEW_FORMAT_SINT_4X16
Definition: driver_types.h:231
@ HIP_RES_VIEW_FORMAT_UINT_2X8
Definition: driver_types.h:221
@ HIP_RES_VIEW_FORMAT_UINT_4X8
Definition: driver_types.h:222
@ HIP_RES_VIEW_FORMAT_SINT_1X32
Definition: driver_types.h:235
@ HIP_RES_VIEW_FORMAT_NONE
Definition: driver_types.h:219
@ HIP_RES_VIEW_FORMAT_SINT_2X32
Definition: driver_types.h:236
@ HIP_RES_VIEW_FORMAT_SINT_4X8
Definition: driver_types.h:225
@ HIP_RES_VIEW_FORMAT_SIGNED_BC4
Definition: driver_types.h:248
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC7
Definition: driver_types.h:253
@ HIP_RES_VIEW_FORMAT_SIGNED_BC6H
Definition: driver_types.h:252
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC4
Definition: driver_types.h:247
@ HIP_RES_VIEW_FORMAT_UINT_4X16
Definition: driver_types.h:228
@ HIP_RES_VIEW_FORMAT_FLOAT_4X16
Definition: driver_types.h:240
@ HIP_RES_VIEW_FORMAT_SINT_1X8
Definition: driver_types.h:223
@ HIP_RES_VIEW_FORMAT_SIGNED_BC5
Definition: driver_types.h:250
@ HIP_RES_VIEW_FORMAT_FLOAT_2X32
Definition: driver_types.h:242
@ HIP_RES_VIEW_FORMAT_SINT_1X16
Definition: driver_types.h:229
@ HIP_RES_VIEW_FORMAT_FLOAT_2X16
Definition: driver_types.h:239
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC5
Definition: driver_types.h:249
@ HIP_RES_VIEW_FORMAT_UINT_4X32
Definition: driver_types.h:234
@ HIP_RES_VIEW_FORMAT_FLOAT_1X16
Definition: driver_types.h:238
@ HIP_RES_VIEW_FORMAT_SINT_4X32
Definition: driver_types.h:237
@ HIP_RES_VIEW_FORMAT_UINT_2X32
Definition: driver_types.h:233
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC3
Definition: driver_types.h:246
@ HIP_RES_VIEW_FORMAT_FLOAT_1X32
Definition: driver_types.h:241
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC2
Definition: driver_types.h:245
hipPointer_attribute
Definition: driver_types.h:441
@ HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL
Definition: driver_types.h:453
@ HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE
Definition: driver_types.h:455
@ HIP_POINTER_ATTRIBUTE_RANGE_SIZE
Size of the address range for this requested pointer.
Definition: driver_types.h:459
@ HIP_POINTER_ATTRIBUTE_DEVICE_POINTER
address at which the pointer is allocated on device
Definition: driver_types.h:445
@ HIP_POINTER_ATTRIBUTE_BUFFER_ID
Unique ID for an allocated memory region.
Definition: driver_types.h:451
@ HIP_POINTER_ATTRIBUTE_MAPPED
Definition: driver_types.h:460
@ HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE
Definition: driver_types.h:469
@ HIP_POINTER_ATTRIBUTE_CONTEXT
Definition: driver_types.h:442
@ HIP_POINTER_ATTRIBUTE_HOST_POINTER
address at which the pointer is allocated on host
Definition: driver_types.h:446
@ HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE
Definition: driver_types.h:464
@ HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS
Definition: driver_types.h:449
@ HIP_POINTER_ATTRIBUTE_P2P_TOKENS
Definition: driver_types.h:447
@ HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS
Definition: driver_types.h:467
@ HIP_POINTER_ATTRIBUTE_IS_MANAGED
Indicates if the pointer points to managed memory.
Definition: driver_types.h:452
@ HIP_POINTER_ATTRIBUTE_MEMORY_TYPE
memory type describing location of a pointer
Definition: driver_types.h:444
@ HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR
Starting address for this requested pointer.
Definition: driver_types.h:458
@ HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES
for this allocation
Definition: driver_types.h:462
void * hipDeviceptr_t
Definition: driver_types.h:40
hipFunction_attribute
Definition: driver_types.h:427
@ HIP_FUNC_ATTRIBUTE_MAX
Definition: driver_types.h:438
@ HIP_FUNC_ATTRIBUTE_BINARY_VERSION
Definition: driver_types.h:434
@ HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK
Definition: driver_types.h:428
@ HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA
Definition: driver_types.h:435
@ HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT
Definition: driver_types.h:437
@ HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES
Definition: driver_types.h:431
@ HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES
Definition: driver_types.h:429
@ HIP_FUNC_ATTRIBUTE_NUM_REGS
Definition: driver_types.h:432
@ HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES
Definition: driver_types.h:430
@ HIP_FUNC_ATTRIBUTE_PTX_VERSION
Definition: driver_types.h:433
@ HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES
Definition: driver_types.h:436
const struct hipArray * hipArray_const_t
Definition: driver_types.h:116
hipResourceViewFormat
Definition: driver_types.h:180
@ hipResViewFormatSignedInt2
Definition: driver_types.h:198
@ hipResViewFormatSignedChar4
Definition: driver_types.h:187
@ hipResViewFormatFloat1
Definition: driver_types.h:203
@ hipResViewFormatUnsignedBlockCompressed5
Definition: driver_types.h:211
@ hipResViewFormatNone
Definition: driver_types.h:181
@ hipResViewFormatUnsignedChar2
Definition: driver_types.h:183
@ hipResViewFormatSignedShort4
Definition: driver_types.h:193
@ hipResViewFormatUnsignedBlockCompressed4
Definition: driver_types.h:209
@ hipResViewFormatSignedInt4
Definition: driver_types.h:199
@ hipResViewFormatUnsignedInt2
Definition: driver_types.h:195
@ hipResViewFormatSignedShort2
Definition: driver_types.h:192
@ hipResViewFormatHalf4
Definition: driver_types.h:202
@ hipResViewFormatFloat4
Definition: driver_types.h:205
@ hipResViewFormatUnsignedBlockCompressed1
Definition: driver_types.h:206
@ hipResViewFormatUnsignedInt1
Definition: driver_types.h:194
@ hipResViewFormatUnsignedChar4
Definition: driver_types.h:184
@ hipResViewFormatUnsignedInt4
Definition: driver_types.h:196
@ hipResViewFormatSignedBlockCompressed6H
Definition: driver_types.h:214
@ hipResViewFormatUnsignedBlockCompressed2
Definition: driver_types.h:207
@ hipResViewFormatHalf2
Definition: driver_types.h:201
@ hipResViewFormatUnsignedShort1
Definition: driver_types.h:188
@ hipResViewFormatSignedBlockCompressed5
Definition: driver_types.h:212
@ hipResViewFormatSignedBlockCompressed4
Definition: driver_types.h:210
@ hipResViewFormatHalf1
Definition: driver_types.h:200
@ hipResViewFormatSignedChar2
Definition: driver_types.h:186
@ hipResViewFormatFloat2
Definition: driver_types.h:204
@ hipResViewFormatUnsignedBlockCompressed3
Definition: driver_types.h:208
@ hipResViewFormatUnsignedChar1
Definition: driver_types.h:182
@ hipResViewFormatSignedChar1
Definition: driver_types.h:185
@ hipResViewFormatUnsignedBlockCompressed6H
Definition: driver_types.h:213
@ hipResViewFormatUnsignedBlockCompressed7
Definition: driver_types.h:215
@ hipResViewFormatSignedShort1
Definition: driver_types.h:191
@ hipResViewFormatUnsignedShort2
Definition: driver_types.h:189
@ hipResViewFormatUnsignedShort4
Definition: driver_types.h:190
@ hipResViewFormatSignedInt1
Definition: driver_types.h:197
hipArray_Format
Definition: driver_types.h:58
@ HIP_AD_FORMAT_UNSIGNED_INT16
Definition: driver_types.h:60
@ HIP_AD_FORMAT_HALF
Definition: driver_types.h:65
@ HIP_AD_FORMAT_UNSIGNED_INT32
Definition: driver_types.h:61
@ HIP_AD_FORMAT_UNSIGNED_INT8
Definition: driver_types.h:59
@ HIP_AD_FORMAT_SIGNED_INT8
Definition: driver_types.h:62
@ HIP_AD_FORMAT_SIGNED_INT32
Definition: driver_types.h:64
@ HIP_AD_FORMAT_SIGNED_INT16
Definition: driver_types.h:63
@ HIP_AD_FORMAT_FLOAT
Definition: driver_types.h:66
hipResourceType
Definition: driver_types.h:134
@ hipResourceTypeArray
Definition: driver_types.h:135
@ hipResourceTypeMipmappedArray
Definition: driver_types.h:136
@ hipResourceTypePitch2D
Definition: driver_types.h:138
@ hipResourceTypeLinear
Definition: driver_types.h:137
hipArray_t hiparray
Definition: driver_types.h:115
const struct hipMipmappedArray * hipMipmappedArray_const_t
Definition: driver_types.h:130
HIPaddress_mode
Definition: driver_types.h:149
@ HIP_TR_ADDRESS_MODE_WRAP
Definition: driver_types.h:150
@ HIP_TR_ADDRESS_MODE_BORDER
Definition: driver_types.h:153
@ HIP_TR_ADDRESS_MODE_MIRROR
Definition: driver_types.h:152
@ HIP_TR_ADDRESS_MODE_CLAMP
Definition: driver_types.h:151
hipMemoryType
Definition: hip_runtime_api.h:159
Definition: driver_types.h:74
size_t Width
Definition: driver_types.h:75
size_t Depth
Definition: driver_types.h:77
size_t Height
Definition: driver_types.h:76
enum hipArray_Format Format
Definition: driver_types.h:78
unsigned int NumChannels
Definition: driver_types.h:79
unsigned int Flags
Definition: driver_types.h:80
Definition: driver_types.h:68
size_t Width
Definition: driver_types.h:69
unsigned int NumChannels
Definition: driver_types.h:72
enum hipArray_Format Format
Definition: driver_types.h:71
size_t Height
Definition: driver_types.h:70
Definition: driver_types.h:379
unsigned int srcY
Definition: driver_types.h:381
hipArray_t srcArray
Definition: driver_types.h:387
unsigned int WidthInBytes
Definition: driver_types.h:400
unsigned int dstLOD
Definition: driver_types.h:393
hipDeviceptr_t dstDevice
Definition: driver_types.h:396
hipDeviceptr_t srcDevice
Definition: driver_types.h:386
unsigned int dstXInBytes
Definition: driver_types.h:390
unsigned int srcXInBytes
Definition: driver_types.h:380
unsigned int srcLOD
Definition: driver_types.h:383
unsigned int srcZ
Definition: driver_types.h:382
unsigned int srcHeight
Definition: driver_types.h:389
hipMemoryType dstMemoryType
Definition: driver_types.h:394
unsigned int Height
Definition: driver_types.h:401
hipArray_t dstArray
Definition: driver_types.h:397
hipMemoryType srcMemoryType
Definition: driver_types.h:384
unsigned int srcPitch
Definition: driver_types.h:388
unsigned int dstY
Definition: driver_types.h:391
void * dstHost
Definition: driver_types.h:395
unsigned int dstHeight
Definition: driver_types.h:399
unsigned int Depth
Definition: driver_types.h:402
const void * srcHost
Definition: driver_types.h:385
unsigned int dstPitch
Definition: driver_types.h:398
unsigned int dstZ
Definition: driver_types.h:392
Definition: driver_types.h:282
unsigned int flags
Definition: driver_types.h:309
size_t height
Definition: driver_types.h:302
hipArray_t hArray
Definition: driver_types.h:286
size_t pitchInBytes
Definition: driver_types.h:303
HIPresourcetype resType
Definition: driver_types.h:283
hipDeviceptr_t devPtr
Definition: driver_types.h:292
hipMipmappedArray_t hMipmappedArray
Definition: driver_types.h:289
hipArray_Format format
Definition: driver_types.h:293
size_t width
Definition: driver_types.h:301
unsigned int numChannels
Definition: driver_types.h:294
size_t sizeInBytes
Definition: driver_types.h:295
Definition: driver_types.h:328
size_t width
Definition: driver_types.h:330
unsigned int firstMipmapLevel
Definition: driver_types.h:333
unsigned int lastMipmapLevel
Definition: driver_types.h:334
unsigned int firstLayer
Definition: driver_types.h:335
size_t depth
Definition: driver_types.h:332
size_t height
Definition: driver_types.h:331
HIPresourceViewFormat format
Definition: driver_types.h:329
unsigned int lastLayer
Definition: driver_types.h:336
Definition: driver_types.h:165
float maxMipmapLevelClamp
Definition: driver_types.h:173
unsigned int flags
Definition: driver_types.h:168
float mipmapLevelBias
Definition: driver_types.h:171
float minMipmapLevelClamp
Definition: driver_types.h:172
unsigned int maxAnisotropy
Definition: driver_types.h:169
HIPfilter_mode filterMode
Definition: driver_types.h:167
HIPfilter_mode mipmapFilterMode
Definition: driver_types.h:170
Definition: driver_types.h:95
void * dstHost
Definition: driver_types.h:106
size_t srcXInBytes
Definition: driver_types.h:96
size_t WidthInBytes
Definition: driver_types.h:110
size_t dstPitch
Definition: driver_types.h:109
size_t dstY
Definition: driver_types.h:104
hipMemoryType dstMemoryType
Definition: driver_types.h:105
hipDeviceptr_t srcDevice
Definition: driver_types.h:100
hipDeviceptr_t dstDevice
Definition: driver_types.h:107
hipMemoryType srcMemoryType
Definition: driver_types.h:98
size_t srcY
Definition: driver_types.h:97
size_t Height
Definition: driver_types.h:111
hipArray * dstArray
Definition: driver_types.h:108
const void * srcHost
Definition: driver_types.h:99
size_t dstXInBytes
Definition: driver_types.h:103
hipArray * srcArray
Definition: driver_types.h:101
size_t srcPitch
Definition: driver_types.h:102
Definition: driver_types.h:82
unsigned int type
Definition: driver_types.h:85
bool isDrv
Definition: driver_types.h:91
enum hipArray_Format Format
Definition: driver_types.h:89
unsigned int NumChannels
Definition: driver_types.h:90
unsigned int width
Definition: driver_types.h:86
void * data
Definition: driver_types.h:83
unsigned int height
Definition: driver_types.h:87
unsigned int depth
Definition: driver_types.h:88
unsigned int textureType
Definition: driver_types.h:92
struct hipChannelFormatDesc desc
Definition: driver_types.h:84
Definition: driver_types.h:47
int y
Definition: driver_types.h:49
enum hipChannelFormatKind f
Definition: driver_types.h:52
int w
Definition: driver_types.h:51
int z
Definition: driver_types.h:50
int x
Definition: driver_types.h:48
Definition: driver_types.h:358
size_t depth
Definition: driver_types.h:362
size_t width
Definition: driver_types.h:359
size_t height
Definition: driver_types.h:361
Definition: driver_types.h:369
struct hipPitchedPtr srcPtr
Definition: driver_types.h:372
struct hipPitchedPtr dstPtr
Definition: driver_types.h:375
hipArray_t srcArray
Definition: driver_types.h:370
enum hipMemcpyKind kind
Definition: driver_types.h:377
hipArray_t dstArray
Definition: driver_types.h:373
struct hipPos srcPos
Definition: driver_types.h:371
struct hipPos dstPos
Definition: driver_types.h:374
struct hipExtent extent
Definition: driver_types.h:376
Definition: driver_types.h:117
unsigned int depth
Definition: driver_types.h:123
unsigned int height
Definition: driver_types.h:122
unsigned int flags
Definition: driver_types.h:126
unsigned int max_mipmap_level
Definition: driver_types.h:125
void * data
Definition: driver_types.h:118
struct hipChannelFormatDesc desc
Definition: driver_types.h:119
enum hipArray_Format format
Definition: driver_types.h:127
unsigned int type
Definition: driver_types.h:120
unsigned int min_mipmap_level
Definition: driver_types.h:124
unsigned int width
Definition: driver_types.h:121
Definition: driver_types.h:352
void * ptr
Definition: driver_types.h:353
size_t ysize
Definition: driver_types.h:356
size_t pitch
Definition: driver_types.h:354
size_t xsize
Definition: driver_types.h:355
Definition: driver_types.h:364
size_t z
Definition: driver_types.h:367
size_t x
Definition: driver_types.h:365
size_t y
Definition: driver_types.h:366
Definition: driver_types.h:258
struct hipResourceDesc::@0::@4 pitch2D
size_t height
Definition: driver_types.h:276
enum hipResourceType resType
Definition: driver_types.h:259
void * devPtr
Definition: driver_types.h:268
struct hipResourceDesc::@0::@3 linear
struct hipChannelFormatDesc desc
Definition: driver_types.h:269
size_t pitchInBytes
Definition: driver_types.h:277
size_t sizeInBytes
Definition: driver_types.h:270
size_t width
Definition: driver_types.h:275
hipMipmappedArray_t mipmap
Definition: driver_types.h:265
hipArray_t array
Definition: driver_types.h:262
union hipResourceDesc::@0 res
Definition: driver_types.h:314
unsigned int firstMipmapLevel
Definition: driver_types.h:319
size_t depth
Definition: driver_types.h:318
enum hipResourceViewFormat format
Definition: driver_types.h:315
size_t height
Definition: driver_types.h:317
unsigned int lastMipmapLevel
Definition: driver_types.h:320
unsigned int firstLayer
Definition: driver_types.h:321
size_t width
Definition: driver_types.h:316
unsigned int lastLayer
Definition: driver_types.h:322