@@ -4107,14 +4107,6 @@ hipError_t hipMalloc3D(hipPitchedPtr* pitchedDevPtr, hipExtent extent);
4107
4107
* @see hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipHostMalloc, hipHostFree
4108
4108
*/
4109
4109
hipError_t hipFreeArray (hipArray* array);
4110
- /* *
4111
- * @brief Frees a mipmapped array on the device
4112
- *
4113
- * @param[in] mipmappedArray - Pointer to mipmapped array to free
4114
- *
4115
- * @return #hipSuccess, #hipErrorInvalidValue
4116
- */
4117
- hipError_t hipFreeMipmappedArray (hipMipmappedArray_t mipmappedArray);
4118
4110
/* *
4119
4111
* @brief Allocate an array on the device.
4120
4112
*
@@ -4128,36 +4120,6 @@ hipError_t hipFreeMipmappedArray(hipMipmappedArray_t mipmappedArray);
4128
4120
*/
4129
4121
hipError_t hipMalloc3DArray (hipArray** array, const struct hipChannelFormatDesc * desc,
4130
4122
struct hipExtent extent, unsigned int flags);
4131
- /* *
4132
- * @brief Allocate a mipmapped array on the device
4133
- *
4134
- * @param[out] mipmappedArray - Pointer to allocated mipmapped array in device memory
4135
- * @param[in] desc - Requested channel format
4136
- * @param[in] extent - Requested allocation size (width field in elements)
4137
- * @param[in] numLevels - Number of mipmap levels to allocate
4138
- * @param[in] flags - Flags for extensions
4139
- *
4140
- * @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryAllocation
4141
- */
4142
- hipError_t hipMallocMipmappedArray (
4143
- hipMipmappedArray_t *mipmappedArray,
4144
- const struct hipChannelFormatDesc * desc,
4145
- struct hipExtent extent,
4146
- unsigned int numLevels,
4147
- unsigned int flags __dparm (0 ));
4148
- /* *
4149
- * @brief Gets a mipmap level of a HIP mipmapped array
4150
- *
4151
- * @param[out] levelArray - Returned mipmap level HIP array
4152
- * @param[in] mipmappedArray - HIP mipmapped array
4153
- * @param[in] level - Mipmap level
4154
- *
4155
- * @return #hipSuccess, #hipErrorInvalidValue
4156
- */
4157
- hipError_t hipGetMipmappedArrayLevel (
4158
- hipArray_t *levelArray,
4159
- hipMipmappedArray_const_t mipmappedArray,
4160
- unsigned int level);
4161
4123
/* *
4162
4124
* @brief Gets info about the specified array
4163
4125
*
@@ -5437,22 +5399,6 @@ hipError_t hipExtLaunchKernel(const void* function_address, dim3 numBlocks, dim3
5437
5399
* This section describes the texture management functions of HIP runtime API.
5438
5400
*/
5439
5401
5440
- /* *
5441
- * @brief Binds a mipmapped array to a texture.
5442
- *
5443
- * @param [in] tex pointer to the texture reference to bind
5444
- * @param [in] mipmappedArray memory mipmapped array on the device
5445
- * @param [in] desc opointer to the channel format
5446
- *
5447
- * @returns #hipSuccess, #hipErrorInvalidValue
5448
- *
5449
- */
5450
- DEPRECATED (DEPRECATED_MSG)
5451
- hipError_t hipBindTextureToMipmappedArray(
5452
- const textureReference* tex,
5453
- hipMipmappedArray_const_t mipmappedArray,
5454
- const hipChannelFormatDesc* desc);
5455
-
5456
5402
/* *
5457
5403
* @brief Creates a texture object.
5458
5404
*
@@ -5602,13 +5548,125 @@ hipError_t hipTexObjectGetTextureDesc(
5602
5548
HIP_TEXTURE_DESC* pTexDesc,
5603
5549
hipTextureObject_t texObject);
5604
5550
5551
+ /* *
5552
+ * @brief Allocate a mipmapped array on the device.
5553
+ *
5554
+ * @param[out] mipmappedArray - Pointer to allocated mipmapped array in device memory
5555
+ * @param[in] desc - Requested channel format
5556
+ * @param[in] extent - Requested allocation size (width field in elements)
5557
+ * @param[in] numLevels - Number of mipmap levels to allocate
5558
+ * @param[in] flags - Flags for extensions
5559
+ *
5560
+ * @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryAllocation
5561
+ *
5562
+ * @note This API is implemented on Windows, under development on Linux.
5563
+ *
5564
+ */
5565
+ hipError_t hipMallocMipmappedArray (
5566
+ hipMipmappedArray_t *mipmappedArray,
5567
+ const struct hipChannelFormatDesc * desc,
5568
+ struct hipExtent extent,
5569
+ unsigned int numLevels,
5570
+ unsigned int flags __dparm (0 ));
5571
+
5572
+ /* *
5573
+ * @brief Frees a mipmapped array on the device.
5574
+ *
5575
+ * @param[in] mipmappedArray - Pointer to mipmapped array to free
5576
+ *
5577
+ * @return #hipSuccess, #hipErrorInvalidValue
5578
+ *
5579
+ * @note This API is implemented on Windows, under development on Linux.
5580
+ *
5581
+ */
5582
+ hipError_t hipFreeMipmappedArray (hipMipmappedArray_t mipmappedArray);
5583
+
5584
+ /* *
5585
+ * @brief Gets a mipmap level of a HIP mipmapped array.
5586
+ *
5587
+ * @param[out] levelArray - Returned mipmap level HIP array
5588
+ * @param[in] mipmappedArray - HIP mipmapped array
5589
+ * @param[in] level - Mipmap level
5590
+ *
5591
+ * @return #hipSuccess, #hipErrorInvalidValue
5592
+ *
5593
+ * @note This API is implemented on Windows, under development on Linux.
5594
+ *
5595
+ */
5596
+ hipError_t hipGetMipmappedArrayLevel (
5597
+ hipArray_t *levelArray,
5598
+ hipMipmappedArray_const_t mipmappedArray,
5599
+ unsigned int level);
5600
+
5601
+ /* *
5602
+ * @brief Create a mipmapped array.
5603
+ *
5604
+ * @param [out] pHandle pointer to mipmapped array
5605
+ * @param [in] pMipmappedArrayDesc mipmapped array descriptor
5606
+ * @param [in] numMipmapLevels mipmap level
5607
+ *
5608
+ * @returns #hipSuccess, #hipErrorNotSupported, #hipErrorInvalidValue
5609
+ *
5610
+ * @note This API is implemented on Windows, under development on Linux.
5611
+ */
5612
+ hipError_t hipMipmappedArrayCreate (
5613
+ hipMipmappedArray_t* pHandle,
5614
+ HIP_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc,
5615
+ unsigned int numMipmapLevels);
5616
+
5617
+ /* *
5618
+ * @brief Destroy a mipmapped array.
5619
+ *
5620
+ * @param [out] hMipmappedArray pointer to mipmapped array to destroy
5621
+ *
5622
+ * @returns #hipSuccess, #hipErrorInvalidValue
5623
+ *
5624
+ * @note This API is implemented on Windows, under development on Linux.
5625
+ *
5626
+ */
5627
+ hipError_t hipMipmappedArrayDestroy (hipMipmappedArray_t hMipmappedArray);
5628
+
5629
+ /* *
5630
+ * @brief Get a mipmapped array on a mipmapped level.
5631
+ *
5632
+ * @param [in] pLevelArray Pointer of array
5633
+ * @param [out] hMipMappedArray Pointer of mipmapped array on the requested mipmap level
5634
+ * @param [out] level Mipmap level
5635
+ *
5636
+ * @returns #hipSuccess, #hipErrorInvalidValue
5637
+ *
5638
+ * @note This API is implemented on Windows, under development on Linux.
5639
+ *
5640
+ */
5641
+ hipError_t hipMipmappedArrayGetLevel (
5642
+ hipArray_t* pLevelArray,
5643
+ hipMipmappedArray_t hMipMappedArray,
5644
+ unsigned int level);
5645
+
5605
5646
/* *
5606
5647
*
5607
5648
* @addtogroup TextureD Texture Management [Deprecated]
5608
5649
* @{
5609
5650
* @ingroup Texture
5610
5651
* This section describes the deprecated texture management functions of HIP runtime API.
5611
5652
*/
5653
+
5654
+ /* *
5655
+ * @brief Binds a mipmapped array to a texture.
5656
+ *
5657
+ * @param [in] tex pointer to the texture reference to bind
5658
+ * @param [in] mipmappedArray memory mipmapped array on the device
5659
+ * @param [in] desc opointer to the channel format
5660
+ *
5661
+ * @returns #hipSuccess, #hipErrorInvalidValue
5662
+ *
5663
+ */
5664
+ DEPRECATED (DEPRECATED_MSG)
5665
+ hipError_t hipBindTextureToMipmappedArray(
5666
+ const textureReference* tex,
5667
+ hipMipmappedArray_const_t mipmappedArray,
5668
+ const hipChannelFormatDesc* desc);
5669
+
5612
5670
/* *
5613
5671
* @brief Gets the texture reference related with the symbol.
5614
5672
*
@@ -5878,7 +5936,6 @@ DEPRECATED(DEPRECATED_MSG)
5878
5936
hipError_t hipTexRefGetMipmapFilterMode(
5879
5937
enum hipTextureFilterMode* pfm,
5880
5938
const textureReference* texRef);
5881
- DEPRECATED (DEPRECATED_MSG)
5882
5939
/* *
5883
5940
* @brief Gets the mipmap level bias for a texture reference.
5884
5941
*
@@ -5888,6 +5945,7 @@ DEPRECATED(DEPRECATED_MSG)
5888
5945
* @warning This API is deprecated.
5889
5946
*
5890
5947
*/
5948
+ DEPRECATED (DEPRECATED_MSG)
5891
5949
hipError_t hipTexRefGetMipmapLevelBias(
5892
5950
float * pbias,
5893
5951
const textureReference* texRef);
@@ -6036,53 +6094,6 @@ hipError_t hipTexRefSetMipmappedArray(
6036
6094
struct hipMipmappedArray * mipmappedArray,
6037
6095
unsigned int Flags);
6038
6096
6039
- /* *
6040
- *
6041
- * @addtogroup TextureU Texture Management [Not supported]
6042
- * @{
6043
- * @ingroup Texture
6044
- * This section describes the texture management functions currently unsupported in HIP runtime.
6045
- */
6046
- /* *
6047
- * @brief Create a mipmapped array.
6048
- *
6049
- * @param [out] pHandle pointer to mipmapped array
6050
- * @param [in] pMipmappedArrayDesc mipmapped array descriptor
6051
- * @param [in] numMipmapLevels mipmap level
6052
- *
6053
- * @returns #hipSuccess, #hipErrorNotSupported, #hipErrorInvalidValue
6054
- *
6055
- */
6056
- DEPRECATED (DEPRECATED_MSG)
6057
- hipError_t hipMipmappedArrayCreate(
6058
- hipMipmappedArray_t* pHandle,
6059
- HIP_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc,
6060
- unsigned int numMipmapLevels);
6061
- /* *
6062
- * @brief Destroy a mipmapped array.
6063
- *
6064
- * @param [out] hMipmappedArray pointer to mipmapped array to destroy
6065
- *
6066
- * @returns #hipSuccess, #hipErrorInvalidValue
6067
- *
6068
- */
6069
- DEPRECATED (DEPRECATED_MSG)
6070
- hipError_t hipMipmappedArrayDestroy(hipMipmappedArray_t hMipmappedArray);
6071
- /* *
6072
- * @brief Get a mipmapped array on a mipmapped level.
6073
- *
6074
- * @param [in] pLevelArray Pointer of array
6075
- * @param [out] hMipMappedArray Pointer of mipmapped array on the requested mipmap level
6076
- * @param [out] level Mipmap level
6077
- *
6078
- * @returns #hipSuccess, #hipErrorInvalidValue
6079
- *
6080
- */
6081
- DEPRECATED (DEPRECATED_MSG)
6082
- hipError_t hipMipmappedArrayGetLevel(
6083
- hipArray_t* pLevelArray,
6084
- hipMipmappedArray_t hMipMappedArray,
6085
- unsigned int level);
6086
6097
// doxygen end deprecated texture management
6087
6098
/* *
6088
6099
* @}
0 commit comments