• Home
  • Raw
  • Download

Lines Matching refs:vkFormat

1209     VkFormat vkFormat;  in isFormatSRGB()  local
1210 if (!format.asVkFormat(&vkFormat)) { in isFormatSRGB()
1214 return format_is_srgb(vkFormat); in isFormatSRGB()
1218 VkFormat vkFormat; in isFormatCompressed() local
1219 if (!format.asVkFormat(&vkFormat)) { in isFormatCompressed()
1223 SkASSERT(GrVkFormatIsSupported(vkFormat)); in isFormatCompressed()
1225 return vkFormat == VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK; in isFormatCompressed()
1230 VkFormat vkFormat; in isFormatTexturableAndUploadable() local
1231 if (!format.asVkFormat(&vkFormat)) { in isFormatTexturableAndUploadable()
1235 uint32_t ctFlags = this->getFormatInfo(vkFormat).colorTypeFlags(ct); in isFormatTexturableAndUploadable()
1236 return this->isVkFormatTexturable(vkFormat) && in isFormatTexturableAndUploadable()
1241 VkFormat vkFormat; in isFormatTexturable() local
1242 if (!format.asVkFormat(&vkFormat)) { in isFormatTexturable()
1245 return this->isVkFormatTexturable(vkFormat); in isFormatTexturable()
1258 VkFormat vkFormat; in isFormatAsColorTypeRenderable() local
1259 if (!format.asVkFormat(&vkFormat)) { in isFormatAsColorTypeRenderable()
1262 const auto& info = this->getFormatInfo(vkFormat); in isFormatAsColorTypeRenderable()
1270 VkFormat vkFormat; in isFormatRenderable() local
1271 if (!format.asVkFormat(&vkFormat)) { in isFormatRenderable()
1274 return this->isFormatRenderable(vkFormat, sampleCount); in isFormatRenderable()
1283 VkFormat vkFormat; in getRenderTargetSampleCount() local
1284 if (!format.asVkFormat(&vkFormat)) { in getRenderTargetSampleCount()
1288 return this->getRenderTargetSampleCount(requestedCount, vkFormat); in getRenderTargetSampleCount()
1316 VkFormat vkFormat; in maxRenderTargetSampleCount() local
1317 if (!format.asVkFormat(&vkFormat)) { in maxRenderTargetSampleCount()
1320 return this->maxRenderTargetSampleCount(vkFormat); in maxRenderTargetSampleCount()
1347 VkFormat vkFormat; in supportedWritePixelsColorType() local
1348 if (!surfaceFormat.asVkFormat(&vkFormat)) { in supportedWritePixelsColorType()
1353 if (GrVkFormatNeedsYcbcrSampler(vkFormat)) { in supportedWritePixelsColorType()
1358 size_t offsetAlignment = align_to_4(GrVkBytesPerFormat(vkFormat)); in supportedWritePixelsColorType()
1360 const auto& info = this->getFormatInfo(vkFormat); in supportedWritePixelsColorType()
1405 VkFormat vkFormat; in onAreColorTypeAndFormatCompatible() local
1406 if (!format.asVkFormat(&vkFormat)) { in onAreColorTypeAndFormatCompatible()
1412 if (ycbcrInfo->isValid() && !GrVkFormatNeedsYcbcrSampler(vkFormat)) { in onAreColorTypeAndFormatCompatible()
1414 if (VK_FORMAT_UNDEFINED == vkFormat) { in onAreColorTypeAndFormatCompatible()
1420 const auto& info = this->getFormatInfo(vkFormat); in onAreColorTypeAndFormatCompatible()
1560 VkFormat vkFormat; in onGetConfigFromBackendFormat() local
1561 if (!format.asVkFormat(&vkFormat)) { in onGetConfigFromBackendFormat()
1566 return validate_image_info(vkFormat, ct, ycbcrInfo->isValid()); in onGetConfigFromBackendFormat()
1571 VkFormat vkFormat; in getYUVAColorTypeFromBackendFormat() local
1572 if (!format.asVkFormat(&vkFormat)) { in getYUVAColorTypeFromBackendFormat()
1576 switch (vkFormat) { in getYUVAColorTypeFromBackendFormat()
1618 VkFormat vkFormat; in getTextureSwizzle() local
1619 SkAssertResult(format.asVkFormat(&vkFormat)); in getTextureSwizzle()
1620 const auto& info = this->getFormatInfo(vkFormat); in getTextureSwizzle()
1631 VkFormat vkFormat; in getOutputSwizzle() local
1632 SkAssertResult(format.asVkFormat(&vkFormat)); in getOutputSwizzle()
1633 const auto& info = this->getFormatInfo(vkFormat); in getOutputSwizzle()
1646 VkFormat vkFormat; in onSupportedReadPixelsColorType() local
1647 if (!srcBackendFormat.asVkFormat(&vkFormat)) { in onSupportedReadPixelsColorType()
1651 if (GrVkFormatNeedsYcbcrSampler(vkFormat)) { in onSupportedReadPixelsColorType()
1656 size_t offsetAlignment = align_to_4(GrVkBytesPerFormat(vkFormat)); in onSupportedReadPixelsColorType()
1658 const auto& info = this->getFormatInfo(vkFormat); in onSupportedReadPixelsColorType()