Lines Matching defs:image
445 const Image* const image = dedicatedInfo && !!dedicatedInfo->image ? reinterpret_cast<const Image*>(dedicatedInfo->image.getInternal()) : DE_NULL;
462 if (image)
464 hwbufferDesc.width = image->getExtent().width;
465 hwbufferDesc.height = image->getExtent().height;
466 hwbufferDesc.layers = image->getArrayLayers();
467 switch (image->getFormat())
485 DE_FATAL("Unsupported image format for Android hardware buffer export");
488 if ((image->getUsage() & VK_IMAGE_USAGE_SAMPLED_BIT) != 0)
490 if ((image->getUsage() & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) != 0)
492 // if ((image->getFlags() & VK_IMAGE_CREATE_PROTECTED_BIT) != 0)
495 // Make sure we have at least one AHB GPU usage, even if the image doesn't have any
497 if ((image->getUsage() & (VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT)) == 0)
1238 const Image* image = reinterpret_cast<const Image*>(imageHandle.getInternal());
1243 if (isCompressedFormat(image->getFormat()))
1244 requirements->size = getCompressedImageDataSize(image->getFormat(), image->getExtent());
1245 else if (isYCbCrFormat(image->getFormat()))
1246 requirements->size = getYCbCrImageDataSize(image->getFormat(), image->getExtent());
1248 requirements->size = getPackedImageDataSize(image->getFormat(), image->getExtent(), image->getSamples());