HIP_RESOURCE_DESC Struct Reference

HIP_RESOURCE_DESC Struct Reference#

HIP Runtime API Reference: HIP_RESOURCE_DESC Struct Reference
HIP_RESOURCE_DESC Struct Reference

#include <driver_types.h>

Data Fields

HIPresourcetype resType
 
union { 
 
   struct { 
 
      hipArray_t   hArray 
 
   }   array 
 
   struct { 
 
      hipMipmappedArray_t   hMipmappedArray 
 
   }   mipmap 
 
   struct { 
 
      hipDeviceptr_t   devPtr 
 
      hipArray_Format   format 
 
      unsigned int   numChannels 
 
      size_t   sizeInBytes 
 
   }   linear 
 
   struct { 
 
      hipDeviceptr_t   devPtr 
 
      hipArray_Format   format 
 
      unsigned int   numChannels 
 
      size_t   width 
 
      size_t   height 
 
      size_t   pitchInBytes 
 
   }   pitch2D 
 
   struct { 
 
      int   reserved [32] 
 
   }   reserved 
 
res 
 
unsigned int flags
 

Field Documentation

◆ [struct]

struct { ... } HIP_RESOURCE_DESC::array

◆ devPtr

hipDeviceptr_t HIP_RESOURCE_DESC::devPtr

Device pointer

◆ flags

unsigned int HIP_RESOURCE_DESC::flags

Flags (must be zero)

◆ format

hipArray_Format HIP_RESOURCE_DESC::format

Array format

◆ hArray

hipArray_t HIP_RESOURCE_DESC::hArray

HIP array

◆ height

size_t HIP_RESOURCE_DESC::height

Height of the array in elements

◆ hMipmappedArray

hipMipmappedArray_t HIP_RESOURCE_DESC::hMipmappedArray

HIP mipmapped array

◆ [struct]

struct { ... } HIP_RESOURCE_DESC::linear

◆ [struct]

struct { ... } HIP_RESOURCE_DESC::mipmap

◆ numChannels

unsigned int HIP_RESOURCE_DESC::numChannels

Channels per array element

◆ [struct]

struct { ... } HIP_RESOURCE_DESC::pitch2D

◆ pitchInBytes

size_t HIP_RESOURCE_DESC::pitchInBytes

Pitch between two rows in bytes

◆ [union]

union { ... } HIP_RESOURCE_DESC::res

◆ reserved [1/2]

int HIP_RESOURCE_DESC::reserved[32]

◆ [struct] [2/2]

struct { ... } HIP_RESOURCE_DESC::reserved

◆ resType

HIPresourcetype HIP_RESOURCE_DESC::resType

Resource type

◆ sizeInBytes

size_t HIP_RESOURCE_DESC::sizeInBytes

Size in bytes

◆ width

size_t HIP_RESOURCE_DESC::width

Width of the array in elements


The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-5.0.2/include/hip/driver_types.h