MCPcopy Create free account
hub / github.com/ROCm/clr / ihipGetTextureObjectResourceDesc

Function ihipGetTextureObjectResourceDesc

hipamd/src/hip_texture.cpp:445–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445hipError_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
462hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc* pResDesc,
463 hipTextureObject_t texObject) {

Callers 4

hipTexRefGetArrayFunction · 0.85
hipTexRefGetAddressFunction · 0.85

Calls 2

getCurrentDeviceFunction · 0.85
infoMethod · 0.45

Tested by

no test coverage detected