| 3880 | } |
| 3881 | |
| 3882 | hipError_t hipArrayGetDescriptor(HIP_ARRAY_DESCRIPTOR* pArrayDescriptor, hipArray_t array) { |
| 3883 | HIP_INIT_API(hipArrayGetDescriptor, pArrayDescriptor, array); |
| 3884 | CHECK_STREAM_CAPTURE_SUPPORTED(); |
| 3885 | |
| 3886 | if (array == nullptr) { |
| 3887 | HIP_RETURN(hipErrorInvalidHandle); |
| 3888 | } |
| 3889 | |
| 3890 | if (pArrayDescriptor == nullptr) { |
| 3891 | HIP_RETURN(hipErrorInvalidValue); |
| 3892 | } |
| 3893 | |
| 3894 | HIP_ARRAY3D_DESCRIPTOR array3DDescriptor; |
| 3895 | hipError_t status = ihipArray3DGetDescriptor(&array3DDescriptor, array); |
| 3896 | |
| 3897 | // Fill each output parameter |
| 3898 | if (status == hipSuccess) { |
| 3899 | pArrayDescriptor->Width = array3DDescriptor.Width; |
| 3900 | pArrayDescriptor->Height = array3DDescriptor.Height; |
| 3901 | pArrayDescriptor->Format = array3DDescriptor.Format; |
| 3902 | pArrayDescriptor->NumChannels = array3DDescriptor.NumChannels; |
| 3903 | } |
| 3904 | |
| 3905 | HIP_RETURN(status); |
| 3906 | } |
| 3907 | |
| 3908 | hipError_t hipArray3DGetDescriptor(HIP_ARRAY3D_DESCRIPTOR* pArrayDescriptor, hipArray_t array) { |
| 3909 | HIP_INIT_API(hipArray3DGetDescriptor, pArrayDescriptor, array); |
nothing calls this directly
no test coverage detected