From 28025f6a74f8b2f421b30a7df29e02c301d16e8d Mon Sep 17 00:00:00 2001 From: Peng Sun Date: Tue, 9 Feb 2016 10:58:23 -0600 Subject: [PATCH] Fix TODO-Doc in hip_texture.h --- include/hcc_detail/hip_texture.h | 42 +++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/include/hcc_detail/hip_texture.h b/include/hcc_detail/hip_texture.h index b71a54ed14..595d110274 100644 --- a/include/hcc_detail/hip_texture.h +++ b/include/hcc_detail/hip_texture.h @@ -112,9 +112,14 @@ hipChannelFormatDesc hipBindTexture(size_t *offset, struct textureReference *te #endif /* - * @brief hipChannelFormatDesc + * @brief Returns a channel descriptor with format f and number of bits of each ocmponent x,y,z and w. + * + * @par Parameters + * None. + * @return Channel descriptor + * + * **/ -// TODO template hipChannelFormatDesc hipCreateChannelDesc() { @@ -123,9 +128,18 @@ hipChannelFormatDesc hipCreateChannelDesc() } /* - * @brief hipBindTexture + * @brief hipBindTexture Binds size bytes of the memory area pointed to by @p devPtr to the texture reference tex. + * + * @p desc describes how the memory is interpreted when fetching values from the texture. The @p offset parameter is an optional byte offset as with the low-level + * hipBindTexture() function. Any memory previously bound to tex is unbound. + * + * @param[in] offset - Offset in bytes + * @param[out] tex - texture to bind + * @param[in] devPtr - Memory area on device + * @param[in] desc - Channel format + * @param[in] size - Size of the memory area pointed to by devPtr + * @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknown **/ -// TODO-doc template hipError_t hipBindTexture(size_t *offset, struct texture &tex, @@ -138,11 +152,18 @@ hipError_t hipBindTexture(size_t *offset, return hipSuccess; } - /* - * @brief hipBindTexture + * @brief hipBindTexture Binds size bytes of the memory area pointed to by @p devPtr to the texture reference tex. + * + * @p desc describes how the memory is interpreted when fetching values from the texture. The @p offset parameter is an optional byte offset as with the low-level + * hipBindTexture() function. Any memory previously bound to tex is unbound. + * + * @param[in] offset - Offset in bytes + * @param[in] tex - texture to bind + * @param[in] devPtr - Memory area on device + * @param[in] size - Size of the memory area pointed to by devPtr + * @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknown **/ -// TODO-doc template hipError_t hipBindTexture(size_t *offset, struct texture &tex, @@ -154,9 +175,12 @@ hipError_t hipBindTexture(size_t *offset, /* - * @brief hipUnbindTexture + * @brief Unbinds the textuer bound to @p tex + * + * @param[in] tex - texture to unbind + * + * @return #hipSuccess **/ -// TODO-doc template hipError_t hipUnbindTexture(struct texture *tex) {