Surface/Image Query Memory

Query metadata (dimensions, format, etc.) of a surface/image resource.

Vendor-Neutral Definition

d = an attribute of the resource descriptor referenced by a (e.g. width, height, depth, number of mip levels), not data read through it.
⚠️ Cross-vendor mappings describe semantic relationships and are not guaranteed one-to-one compiler translations.
equivalent with restrictions Both query metadata about a bound image/surface resource rather than reading pixel data through it.
Property NVIDIA PTX AMDGPU
Instruction suq image_get_resinfo
ISA Layer Virtual Native
Data Types - -
Version / Target Introduced PTX ISA 1.5 -

Important Differences

  • The specific set of queryable attributes (width, height, depth, channel data type, number of mip levels, ...) and how they're selected differs between PTX's suq.attribute and AMDGPU's image_get_resinfo encoding - check both sources for the exact attribute list.

Source Evidence

Verification method: documentation