/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/latest/include/hip/texture_types.h File Reference

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/latest/include/hip/texture_types.h File Reference#

HIP Runtime API Reference: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/latest/include/hip/texture_types.h File Reference
texture_types.h File Reference
#include <hip/hip_common.h>
#include <limits.h>
#include <hip/channel_descriptor.h>
#include <hip/driver_types.h>
Include dependency graph for texture_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  textureReference
 
struct  hipTextureDesc
 
struct  texture< T, texType, mode >
 

Macros

#define hipTextureType1D   0x01
 
#define hipTextureType2D   0x02
 
#define hipTextureType3D   0x03
 
#define hipTextureTypeCubemap   0x0C
 
#define hipTextureType1DLayered   0xF1
 
#define hipTextureType2DLayered   0xF2
 
#define hipTextureTypeCubemapLayered   0xFC
 
#define HIP_IMAGE_OBJECT_SIZE_DWORD   12
 
#define HIP_SAMPLER_OBJECT_SIZE_DWORD   8
 
#define HIP_SAMPLER_OBJECT_OFFSET_DWORD   HIP_IMAGE_OBJECT_SIZE_DWORD
 
#define HIP_TEXTURE_OBJECT_SIZE_DWORD   (HIP_IMAGE_OBJECT_SIZE_DWORD + HIP_SAMPLER_OBJECT_SIZE_DWORD)
 
#define __HIP_TEXTURE_ATTRIB
 

Typedefs

typedef struct __hip_texture * hipTextureObject_t
 
typedef textureReferencehipTexRef
 

Enumerations

enum  hipTextureAddressMode {
  hipAddressModeWrap = 0 ,
  hipAddressModeClamp = 1 ,
  hipAddressModeMirror = 2 ,
  hipAddressModeBorder = 3
}
 
enum  hipTextureFilterMode {
  hipFilterModePoint = 0 ,
  hipFilterModeLinear = 1
}
 
enum  hipTextureReadMode {
  hipReadModeElementType = 0 ,
  hipReadModeNormalizedFloat = 1
}
 

Macro Definition Documentation

◆ __HIP_TEXTURE_ATTRIB

#define __HIP_TEXTURE_ATTRIB

◆ HIP_IMAGE_OBJECT_SIZE_DWORD

#define HIP_IMAGE_OBJECT_SIZE_DWORD   12

Should be same as HSA_IMAGE_OBJECT_SIZE_DWORD/HSA_SAMPLER_OBJECT_SIZE_DWORD

◆ HIP_SAMPLER_OBJECT_OFFSET_DWORD

#define HIP_SAMPLER_OBJECT_OFFSET_DWORD   HIP_IMAGE_OBJECT_SIZE_DWORD

◆ HIP_SAMPLER_OBJECT_SIZE_DWORD

#define HIP_SAMPLER_OBJECT_SIZE_DWORD   8

◆ HIP_TEXTURE_OBJECT_SIZE_DWORD

#define HIP_TEXTURE_OBJECT_SIZE_DWORD   (HIP_IMAGE_OBJECT_SIZE_DWORD + HIP_SAMPLER_OBJECT_SIZE_DWORD)

◆ hipTextureType1D

#define hipTextureType1D   0x01

◆ hipTextureType1DLayered

#define hipTextureType1DLayered   0xF1

◆ hipTextureType2D

#define hipTextureType2D   0x02

◆ hipTextureType2DLayered

#define hipTextureType2DLayered   0xF2

◆ hipTextureType3D

#define hipTextureType3D   0x03

◆ hipTextureTypeCubemap

#define hipTextureTypeCubemap   0x0C

◆ hipTextureTypeCubemapLayered

#define hipTextureTypeCubemapLayered   0xFC

Typedef Documentation

◆ hipTexRef

◆ hipTextureObject_t

typedef struct __hip_texture* hipTextureObject_t

Enumeration Type Documentation

◆ hipTextureAddressMode

hip texture address modes

Enumerator
hipAddressModeWrap 
hipAddressModeClamp 
hipAddressModeMirror 
hipAddressModeBorder 

◆ hipTextureFilterMode

hip texture filter modes

Enumerator
hipFilterModePoint 
hipFilterModeLinear 

◆ hipTextureReadMode

hip texture read modes

Enumerator
hipReadModeElementType 
hipReadModeNormalizedFloat