This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

hipResourceDesc Struct Reference

hipResourceDesc Struct Reference#

HIP Runtime API Reference: hipResourceDesc Struct Reference
hipResourceDesc Struct Reference

#include <driver_types.h>

Collaboration diagram for hipResourceDesc:
[legend]

Data Fields

enum hipResourceType resType
 
union {
   struct {
      hipArray_t   array
 
   }   array
 
   struct {
      hipMipmappedArray_t   mipmap
 
   }   mipmap
 
   struct {
      void *   devPtr
 
      struct hipChannelFormatDesc   desc
 
      size_t   sizeInBytes
 
   }   linear
 
   struct {
      void *   devPtr
 
      struct hipChannelFormatDesc   desc
 
      size_t   width
 
      size_t   height
 
      size_t   pitchInBytes
 
   }   pitch2D
 
res
 

Detailed Description

HIP resource descriptor

Field Documentation

◆ array [1/2]

hipArray_t hipResourceDesc::array

◆  [2/2]

struct { ... } hipResourceDesc::array

◆ desc

struct hipChannelFormatDesc hipResourceDesc::desc

◆ devPtr

void* hipResourceDesc::devPtr

◆ height

size_t hipResourceDesc::height

◆ 

struct { ... } hipResourceDesc::linear

◆ mipmap [1/2]

hipMipmappedArray_t hipResourceDesc::mipmap

◆  [2/2]

struct { ... } hipResourceDesc::mipmap

◆ 

struct { ... } hipResourceDesc::pitch2D

◆ pitchInBytes

size_t hipResourceDesc::pitchInBytes

◆ 

union { ... } hipResourceDesc::res

◆ resType

enum hipResourceType hipResourceDesc::resType

◆ sizeInBytes

size_t hipResourceDesc::sizeInBytes

◆ width

size_t hipResourceDesc::width

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