Texture Management

Texture Management#

HIP Runtime API Reference: Texture Management
Texture Management
Collaboration diagram for Texture Management:

Modules

 Runtime Compilation
 
 Callback Activity APIs
 
 Graph Management
 
 GL Interop
 
 Texture Management [Deprecated]
 
 Texture Management [Unsupported]
 

Functions

hipError_t hipBindTextureToMipmappedArray (const textureReference *tex, hipMipmappedArray_const_t mipmappedArray, const hipChannelFormatDesc *desc)
 
hipError_t hipGetTextureReference (const textureReference **texref, const void *symbol)
 
hipError_t hipCreateTextureObject (hipTextureObject_t *pTexObject, const hipResourceDesc *pResDesc, const hipTextureDesc *pTexDesc, const struct hipResourceViewDesc *pResViewDesc)
 
hipError_t hipDestroyTextureObject (hipTextureObject_t textureObject)
 
hipError_t hipGetChannelDesc (hipChannelFormatDesc *desc, hipArray_const_t array)
 
hipError_t hipGetTextureObjectResourceDesc (hipResourceDesc *pResDesc, hipTextureObject_t textureObject)
 
hipError_t hipGetTextureObjectResourceViewDesc (struct hipResourceViewDesc *pResViewDesc, hipTextureObject_t textureObject)
 
hipError_t hipGetTextureObjectTextureDesc (hipTextureDesc *pTexDesc, hipTextureObject_t textureObject)
 
hipError_t hipTexRefSetAddressMode (textureReference *texRef, int dim, enum hipTextureAddressMode am)
 
hipError_t hipTexRefSetArray (textureReference *tex, hipArray_const_t array, unsigned int flags)
 
hipError_t hipTexRefSetFilterMode (textureReference *texRef, enum hipTextureFilterMode fm)
 
hipError_t hipTexRefSetFlags (textureReference *texRef, unsigned int Flags)
 
hipError_t hipTexRefSetFormat (textureReference *texRef, hipArray_Format fmt, int NumPackedComponents)
 
hipError_t hipTexObjectCreate (hipTextureObject_t *pTexObject, const HIP_RESOURCE_DESC *pResDesc, const HIP_TEXTURE_DESC *pTexDesc, const HIP_RESOURCE_VIEW_DESC *pResViewDesc)
 
hipError_t hipTexObjectDestroy (hipTextureObject_t texObject)
 
hipError_t hipTexObjectGetResourceDesc (HIP_RESOURCE_DESC *pResDesc, hipTextureObject_t texObject)
 
hipError_t hipTexObjectGetResourceViewDesc (HIP_RESOURCE_VIEW_DESC *pResViewDesc, hipTextureObject_t texObject)
 
hipError_t hipTexObjectGetTextureDesc (HIP_TEXTURE_DESC *pTexDesc, hipTextureObject_t texObject)
 

Detailed Description



This section describes the texture management functions of HIP runtime API.

Function Documentation

◆ hipBindTextureToMipmappedArray()

hipError_t hipBindTextureToMipmappedArray ( const textureReference tex,
hipMipmappedArray_const_t  mipmappedArray,
const hipChannelFormatDesc desc 
)

◆ hipCreateTextureObject()

hipError_t hipCreateTextureObject ( hipTextureObject_t pTexObject,
const hipResourceDesc pResDesc,
const hipTextureDesc pTexDesc,
const struct hipResourceViewDesc pResViewDesc 
)

◆ hipDestroyTextureObject()

hipError_t hipDestroyTextureObject ( hipTextureObject_t  textureObject)

◆ hipGetChannelDesc()

hipError_t hipGetChannelDesc ( hipChannelFormatDesc desc,
hipArray_const_t  array 
)

◆ hipGetTextureObjectResourceDesc()

hipError_t hipGetTextureObjectResourceDesc ( hipResourceDesc pResDesc,
hipTextureObject_t  textureObject 
)

◆ hipGetTextureObjectResourceViewDesc()

hipError_t hipGetTextureObjectResourceViewDesc ( struct hipResourceViewDesc pResViewDesc,
hipTextureObject_t  textureObject 
)

◆ hipGetTextureObjectTextureDesc()

hipError_t hipGetTextureObjectTextureDesc ( hipTextureDesc pTexDesc,
hipTextureObject_t  textureObject 
)

◆ hipGetTextureReference()

hipError_t hipGetTextureReference ( const textureReference **  texref,
const void *  symbol 
)

◆ hipTexObjectCreate()

hipError_t hipTexObjectCreate ( hipTextureObject_t pTexObject,
const HIP_RESOURCE_DESC pResDesc,
const HIP_TEXTURE_DESC pTexDesc,
const HIP_RESOURCE_VIEW_DESC pResViewDesc 
)

◆ hipTexObjectDestroy()

hipError_t hipTexObjectDestroy ( hipTextureObject_t  texObject)

◆ hipTexObjectGetResourceDesc()

hipError_t hipTexObjectGetResourceDesc ( HIP_RESOURCE_DESC pResDesc,
hipTextureObject_t  texObject 
)

◆ hipTexObjectGetResourceViewDesc()

hipError_t hipTexObjectGetResourceViewDesc ( HIP_RESOURCE_VIEW_DESC pResViewDesc,
hipTextureObject_t  texObject 
)

◆ hipTexObjectGetTextureDesc()

hipError_t hipTexObjectGetTextureDesc ( HIP_TEXTURE_DESC pTexDesc,
hipTextureObject_t  texObject 
)

◆ hipTexRefSetAddressMode()

hipError_t hipTexRefSetAddressMode ( textureReference texRef,
int  dim,
enum hipTextureAddressMode  am 
)

◆ hipTexRefSetArray()

hipError_t hipTexRefSetArray ( textureReference tex,
hipArray_const_t  array,
unsigned int  flags 
)

◆ hipTexRefSetFilterMode()

hipError_t hipTexRefSetFilterMode ( textureReference texRef,
enum hipTextureFilterMode  fm 
)

◆ hipTexRefSetFlags()

hipError_t hipTexRefSetFlags ( textureReference texRef,
unsigned int  Flags 
)

◆ hipTexRefSetFormat()

hipError_t hipTexRefSetFormat ( textureReference texRef,
hipArray_Format  fmt,
int  NumPackedComponents 
)