|
HIP: Heterogenous-computing Interface for Portability
|
This section describes the texture management functions of HIP runtime API. More...

Modules | |
| Texture Management [Deprecated] | |
Functions | |
| hipError_t | hipBindTextureToMipmappedArray (const textureReference *tex, hipMipmappedArray_const_t mipmappedArray, const hipChannelFormatDesc *desc) |
| Binds a mipmapped array to a texture. More... | |
| hipError_t | hipCreateTextureObject (hipTextureObject_t *pTexObject, const hipResourceDesc *pResDesc, const hipTextureDesc *pTexDesc, const struct hipResourceViewDesc *pResViewDesc) |
| Creates a texture object. More... | |
| hipError_t | hipDestroyTextureObject (hipTextureObject_t textureObject) |
| Destroys a texture object. More... | |
| hipError_t | hipGetChannelDesc (hipChannelFormatDesc *desc, hipArray_const_t array) |
| Gets the channel descriptor in an array. More... | |
| hipError_t | hipGetTextureObjectResourceDesc (hipResourceDesc *pResDesc, hipTextureObject_t textureObject) |
| Gets resource descriptor for the texture object. More... | |
| hipError_t | hipGetTextureObjectResourceViewDesc (struct hipResourceViewDesc *pResViewDesc, hipTextureObject_t textureObject) |
| Gets resource view descriptor for the texture object. More... | |
| hipError_t | hipGetTextureObjectTextureDesc (hipTextureDesc *pTexDesc, hipTextureObject_t textureObject) |
| Gets texture descriptor for the texture object. More... | |
| hipError_t | hipTexObjectCreate (hipTextureObject_t *pTexObject, const HIP_RESOURCE_DESC *pResDesc, const HIP_TEXTURE_DESC *pTexDesc, const HIP_RESOURCE_VIEW_DESC *pResViewDesc) |
| Creates a texture object. More... | |
| hipError_t | hipTexObjectDestroy (hipTextureObject_t texObject) |
| Destroys a texture object. More... | |
| hipError_t | hipTexObjectGetResourceDesc (HIP_RESOURCE_DESC *pResDesc, hipTextureObject_t texObject) |
| Gets resource descriptor of a texture object. More... | |
| hipError_t | hipTexObjectGetResourceViewDesc (HIP_RESOURCE_VIEW_DESC *pResViewDesc, hipTextureObject_t texObject) |
| Gets resource view descriptor of a texture object. More... | |
| hipError_t | hipTexObjectGetTextureDesc (HIP_TEXTURE_DESC *pTexDesc, hipTextureObject_t texObject) |
| Gets texture descriptor of a texture object. More... | |
| hipError_t | hipMipmappedArrayCreate (hipMipmappedArray_t *pHandle, HIP_ARRAY3D_DESCRIPTOR *pMipmappedArrayDesc, unsigned int numMipmapLevels) |
| Create a mipmapped array. More... | |
| hipError_t | hipMipmappedArrayDestroy (hipMipmappedArray_t hMipmappedArray) |
| Destroy a mipmapped array. More... | |
| hipError_t | hipMipmappedArrayGetLevel (hipArray_t *pLevelArray, hipMipmappedArray_t hMipMappedArray, unsigned int level) |
| Get a mipmapped array on a mipmapped level. More... | |
This section describes the texture management functions of HIP runtime API.
| hipError_t hipBindTextureToMipmappedArray | ( | const textureReference * | tex, |
| hipMipmappedArray_const_t | mipmappedArray, | ||
| const hipChannelFormatDesc * | desc | ||
| ) |
Binds a mipmapped array to a texture.
| [in] | tex | pointer to the texture reference to bind |
| [in] | mipmappedArray | memory mipmapped array on the device |
| [in] | desc | opointer to the channel format |
| hipError_t hipCreateTextureObject | ( | hipTextureObject_t * | pTexObject, |
| const hipResourceDesc * | pResDesc, | ||
| const hipTextureDesc * | pTexDesc, | ||
| const struct hipResourceViewDesc * | pResViewDesc | ||
| ) |
Creates a texture object.
| [out] | pTexObject | pointer to the texture object to create |
| [in] | pResDesc | pointer to resource descriptor |
| [in] | pTexDesc | pointer to texture descriptor |
| [in] | pResViewDesc | pointer to resource view descriptor |
hipCreateTextureObject will return hipErrorNotSupported. | hipError_t hipDestroyTextureObject | ( | hipTextureObject_t | textureObject | ) |
Destroys a texture object.
| [in] | textureObject | texture object to destroy |
| hipError_t hipGetChannelDesc | ( | hipChannelFormatDesc * | desc, |
| hipArray_const_t | array | ||
| ) |
Gets the channel descriptor in an array.
| [in] | desc | pointer to channel format descriptor |
| [out] | array | memory array on the device |
| hipError_t hipGetTextureObjectResourceDesc | ( | hipResourceDesc * | pResDesc, |
| hipTextureObject_t | textureObject | ||
| ) |
Gets resource descriptor for the texture object.
| [out] | pResDesc | pointer to resource descriptor |
| [in] | textureObject | texture object |
| hipError_t hipGetTextureObjectResourceViewDesc | ( | struct hipResourceViewDesc * | pResViewDesc, |
| hipTextureObject_t | textureObject | ||
| ) |
Gets resource view descriptor for the texture object.
| [out] | pResViewDesc | pointer to resource view descriptor |
| [in] | textureObject | texture object |
| hipError_t hipGetTextureObjectTextureDesc | ( | hipTextureDesc * | pTexDesc, |
| hipTextureObject_t | textureObject | ||
| ) |
Gets texture descriptor for the texture object.
| [out] | pTexDesc | pointer to texture descriptor |
| [in] | textureObject | texture object |
| hipError_t hipMipmappedArrayCreate | ( | hipMipmappedArray_t * | pHandle, |
| HIP_ARRAY3D_DESCRIPTOR * | pMipmappedArrayDesc, | ||
| unsigned int | numMipmapLevels | ||
| ) |
Create a mipmapped array.
| [out] | pHandle | pointer to mipmapped array |
| [in] | pMipmappedArrayDesc | mipmapped array descriptor |
| [in] | numMipmapLevels | mipmap level |
| hipError_t hipMipmappedArrayDestroy | ( | hipMipmappedArray_t | hMipmappedArray | ) |
Destroy a mipmapped array.
| [out] | hMipmappedArray | pointer to mipmapped array to destroy |
| hipError_t hipMipmappedArrayGetLevel | ( | hipArray_t * | pLevelArray, |
| hipMipmappedArray_t | hMipMappedArray, | ||
| unsigned int | level | ||
| ) |
Get a mipmapped array on a mipmapped level.
| [in] | pLevelArray | Pointer of array |
| [out] | hMipMappedArray | Pointer of mipmapped array on the requested mipmap level |
| [out] | level | Mipmap level |
| hipError_t hipTexObjectCreate | ( | hipTextureObject_t * | pTexObject, |
| const HIP_RESOURCE_DESC * | pResDesc, | ||
| const HIP_TEXTURE_DESC * | pTexDesc, | ||
| const HIP_RESOURCE_VIEW_DESC * | pResViewDesc | ||
| ) |
Creates a texture object.
| [out] | pTexObject | pointer to texture object to create |
| [in] | pResDesc | pointer to resource descriptor |
| [in] | pTexDesc | pointer to texture descriptor |
| [in] | pResViewDesc | pointer to resource view descriptor |
| hipError_t hipTexObjectDestroy | ( | hipTextureObject_t | texObject | ) |
Destroys a texture object.
| [in] | texObject | texture object to destroy |
| hipError_t hipTexObjectGetResourceDesc | ( | HIP_RESOURCE_DESC * | pResDesc, |
| hipTextureObject_t | texObject | ||
| ) |
Gets resource descriptor of a texture object.
| [out] | pResDesc | pointer to resource descriptor |
| [in] | texObject | texture object |
| hipError_t hipTexObjectGetResourceViewDesc | ( | HIP_RESOURCE_VIEW_DESC * | pResViewDesc, |
| hipTextureObject_t | texObject | ||
| ) |
Gets resource view descriptor of a texture object.
| [out] | pResViewDesc | pointer to resource view descriptor |
| [in] | texObject | texture object |
| hipError_t hipTexObjectGetTextureDesc | ( | HIP_TEXTURE_DESC * | pTexDesc, |
| hipTextureObject_t | texObject | ||
| ) |
Gets texture descriptor of a texture object.
| [out] | pTexDesc | pointer to texture descriptor |
| [in] | texObject | texture object |
1.8.18