Return a full copy of the ImageSpec of the designated subimage & level. If there is no such subimage and miplevel it returns an ImageSpec whose format returns true for isUnknown(). This default method assumes no subimages.
| 462 | // whose format returns true for isUnknown(). |
| 463 | // This default method assumes no subimages. |
| 464 | virtual ImageSpec spec (uint32_t /*subimage*/, uint32_t /*miplevel=0*/) { |
| 465 | ImageSpec ret; |
| 466 | if (curSubimage < images.size()) { |
| 467 | ret = images[curSubimage].spec; |
| 468 | } |
| 469 | return ret; |
| 470 | } |
| 471 | |
| 472 | // Return a copy of the ImageSpec but only the dimension and type fields. |
| 473 | // TODO: Determine if this is necessary. |
no test coverage detected