Lines Matching refs:imageDesc
67 bool GrVkImage::InitImageInfo(const GrVkGpu* gpu, const ImageDesc& imageDesc, GrVkImageInfo* info) { in InitImageInfo() argument
68 if (0 == imageDesc.fWidth || 0 == imageDesc.fHeight) { in InitImageInfo()
74 bool isLinear = VK_IMAGE_TILING_LINEAR == imageDesc.fImageTiling; in InitImageInfo()
80 if (!GrSampleCountToVkSampleCount(imageDesc.fSamples, &vkSamples)) { in InitImageInfo()
84 SkASSERT(VK_IMAGE_TILING_OPTIMAL == imageDesc.fImageTiling || in InitImageInfo()
88 VkImageCreateFlags createFlags = GrVkFormatIsSRGB(imageDesc.fFormat, nullptr) in InitImageInfo()
95 imageDesc.fImageType, // VkImageType in InitImageInfo()
96 imageDesc.fFormat, // VkFormat in InitImageInfo()
97 { imageDesc.fWidth, imageDesc.fHeight, 1 }, // VkExtent3D in InitImageInfo()
98 imageDesc.fLevels, // mipLevels in InitImageInfo()
101 imageDesc.fImageTiling, // VkImageTiling in InitImageInfo()
102 imageDesc.fUsageFlags, // VkImageUsageFlags in InitImageInfo()
119 info->fImageTiling = imageDesc.fImageTiling; in InitImageInfo()
121 info->fFormat = imageDesc.fFormat; in InitImageInfo()
122 info->fLevelCount = imageDesc.fLevels; in InitImageInfo()