| 443 | } |
| 444 | |
| 445 | hipError_t ihipGetTextureObjectResourceDesc(hipResourceDesc* pResDesc, |
| 446 | hipTextureObject_t texObject) { |
| 447 | if ((pResDesc == nullptr) || (texObject == nullptr)) { |
| 448 | return hipErrorInvalidValue; |
| 449 | } |
| 450 | amd::Device* device = hip::getCurrentDevice()->devices()[0]; |
| 451 | const device::Info& info = device->info(); |
| 452 | if (!info.imageSupport_) { |
| 453 | LogPrintfError("Texture not supported on the device %s", info.name_); |
| 454 | return hipErrorNotSupported; |
| 455 | } |
| 456 | |
| 457 | *pResDesc = texObject->resDesc; |
| 458 | |
| 459 | return hipSuccess; |
| 460 | } |
| 461 | |
| 462 | hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc* pResDesc, |
| 463 | hipTextureObject_t texObject) { |
no test coverage detected